I created a small Swing test app and deployed it with this JNLP file:<?xml version="1.0" encoding="UTF-8"?><jnlp spec="1.0+" codebase="http://stevesobol.com"> <information> <title>SS Test</title> <vendor>Steve Sobol</vendor> <homepage href="/blogged" /> <description>Test 1</description> <icon href="/content/test1.png"/> <icon href="/content/test1s.png" kind="splash"/> </information> <offline-allowed/> <security> <j2ee-application-client-permissions/> </security> <resources> <j2se version="1.4+" /> <jar href="/content/test1.jar"/> </resources> <application-desc main-class="net.justthe.pcregistry.Test" /></jnlp>How do I get the downloaded file to show up in Add/Remove Programs onWindows XP SP2 and Windows Vista?-- Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/WindowsVictorville, California PGP:0xE3AE35EDIt's all fun and games until someone starts a bonfire in the living room.
|
|
0
|
|
|
|
Reply
|
Steven
|
4/17/2007 10:03:52 PM |
|
Steven J. Sobol wrote:>I created a small Swing test app and deployed it with this JNLP file:..>How do I get the downloaded file to show up in Add/Remove Programs on>Windows XP SP2 and Windows Vista?JWS apps. are added/removed using the Java Control Panel.AFAIU there is the intention of integrating them into the usualWin. Add/Remove programs dialog eventually.-- Andrew Thompsonhttp://www.athompson.info/andrew/Message posted via http://www.javakb.com
|
|
0
|
|
|
|
Reply
|
Andrew
|
4/17/2007 11:43:26 PM
|
|
Andrew Thompson wrote:>>I created a small Swing test app and deployed it with this JNLP file:>..>>How do I get the downloaded file to show up in Add/Remove Programs on>>Windows XP SP2 and Windows Vista?>>JWS apps. are added/removed using the Java Control Panel.Not that for the purposes of devlopment, it is muchsimpler and easier to call the jws -uninstall optionto remove an application from the web start cache.-- Andrew Thompsonhttp://www.athompson.info/andrew/Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1
|
|
0
|
|
|
|
Reply
|
Andrew
|
4/18/2007 2:19:02 AM
|
|
In article <70dc46411f868@uwe>, Andrew Thompson wrote:> Steven J. Sobol wrote:>>I created a small Swing test app and deployed it with this JNLP file:> .>>How do I get the downloaded file to show up in Add/Remove Programs on>>Windows XP SP2 and Windows Vista?> > JWS apps. are added/removed using the Java Control Panel.> AFAIU there is the intention of integrating them into the usual> Win. Add/Remove programs dialog eventually.But I've seen JWS apps do it. I can do it with Microsoft .NET'sequivalent technology (Single-Click, I think it's called, I forget),but I'd much rather do it with Web Start.Sun's own Web Start demos install themselves into Add/Remove Programs,and the documentation I've seen says that is supposed to happen when auser deploys Web Start apps to his computer.I guess I'm a little confused.-- Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/WindowsVictorville, California PGP:0xE3AE35EDIt's all fun and games until someone starts a bonfire in the living room.
|
|
0
|
|
|
|
Reply
|
Steven
|
4/18/2007 4:09:39 AM
|
|
Steven J. Sobol wrote:>>>I created a small Swing test app and deployed it with this JNLP file:...>> AFAIU there is the intention of integrating them into the usual>> Win. Add/Remove programs dialog eventually...>I guess I'm a little confused.No. It's me that's confused! After your further description,I though to check some of my own JWS apps. (written by me), only to find they were also listed in the normal Windowsadd/remove programs dialog.So, after a bit more digging, I found that two that werelisted in the web start cache but not the Windows add/remove. The only consistent thing between them was that they did not suggest a desktop icon or menu item.Maybe that is the decider.-- Andrew Thompsonhttp://www.athompson.info/andrew/Message posted via http://www.javakb.com
|
|
0
|
|
|
|
Reply
|
Andrew
|
4/18/2007 6:41:08 AM
|
|
In article <70dfec0faf0e0@uwe>, Andrew Thompson wrote:> So, after a bit more digging, I found that two that were> listed in the web start cache but not the Windows > add/remove. The only consistent thing between them > was that they did not suggest a desktop icon or menu > item.> > Maybe that is the decider.Thanks. At least now I know I'm not crazy. :) I think I'll dig up myold Sun developer login and go ask on their forums.-- Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/WindowsVictorville, California PGP:0xE3AE35EDIt's all fun and games until someone starts a bonfire in the living room.
|
|
0
|
|
|
|
Reply
|
Steven
|
4/18/2007 2:20:34 PM
|
|
In article <70dfec0faf0e0@uwe>, Andrew Thompson wrote:> So, after a bit more digging, I found that two that were> listed in the web start cache but not the Windows > add/remove. The only consistent thing between them > was that they did not suggest a desktop icon or menu > item.Could you do me a huge favor... could you please post two of yourdeployment descriptors, one from a program that doesn't get added toadd/remove, and one that does. Either post here or email meout-of-band; the address I use to post is a deliverable address.Thanks in advance!-- Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/WindowsVictorville, California PGP:0xE3AE35EDIt's all fun and games until someone starts a bonfire in the living room.
|
|
0
|
|
|
|
Reply
|
Steven
|
4/18/2007 2:25:15 PM
|
|
Steven J. Sobol wrote:
> (Andrew T. wrote)
>> So, after a bit more digging, I found that two that were
>> listed in the web start cache but not the Windows
>> add/remove. The only consistent thing between them
>> was that they did not suggest a desktop icon or menu
>> item.
>
>..could you please post two of your
>deployment descriptors, one from a program that doesn't get added to
>add/remove, and one that does.
Not included in Win. add/remove programs.
<jnlp
spec="1.0"
codebase="http://www.physci.org/pc/"
href="http://www.physci.org/pc/jtest.jnlp">
<information>
<title>JTest Properties Application</title>
<vendor>PhySci - Andrew Thompson</vendor>
<homepage href="null"/>
<description>
Application form of the JTest properties inspector
</description>
<offline-allowed/>
</information>
<update check="timeout" policy="always"/>
<resources>
<java
href="http://java.sun.com/products/autodl/j2se"
version="1.2+"/>
<jar
href="http://www.physci.org/pc/JTest.jar"
download="eager"
main="false"/>
</resources>
<application-desc main-class="PropertiesApplet"/>
</jnlp>
Included in Win. add/remove programs.
<jnlp spec="1.0"
codebase="http://www.physci.org/jws/"
href="http://www.physci.org/jws/basicserv.jnlp">
<information>
<title>Basic Service</title>
<vendor>Andrew Thompson</vendor>
<homepage href="null"/>
<description kind="one-line">
Demo of the web-start BasicService
</description>
<shortcut online="false">
<desktop/>
</shortcut>
</information>
<update check="timeout" policy="always"/>
<resources>
<java version="1.2+"/>
<jar
href="http://www.physci.org/jws/basicserv.jar"
download="eager"
main="true"/>
</resources>
<application-desc main-class="test.BasicServiceDemo"/>
</jnlp>
If my latest theory is correct, it is the inclusion of..
<shortcut online="false">
<desktop/>
</shortcut>
..in the second launch file that makes the difference.
HTH
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via http://www.javakb.com
|
|
0
|
|
|
|
Reply
|
Andrew
|
4/18/2007 2:44:44 PM
|
|
Thank you, Andrew:
In article <70e424c7954e8@uwe>, Andrew Thompson wrote:
> <shortcut online="false">
> <desktop/>
> </shortcut>
> If my latest theory is correct, it is the inclusion of..
> <shortcut online="false">
> <desktop/>
> </shortcut>
> .in the second launch file that makes the difference.
That it is. I couldn't find a description of the shortcut element on
any of the tutorials, but in the JNLP 1.5 Specification it says
"The optional shortcut element can be used to indicate an
application's preferences for desktop integration. The shortcut
element and it's sub-elements provide hints that the JNLP Client may
or may not use. The shortcut element can contain the optional online
attribute, and the two optional sub-elements desktop and menu."
This puts shortcuts on the desktop, and in the My Corporation Apps
folder on the Start menu (from jnlp-1_5-mr-spec.pdf):
<shortcut online="false">
<desktop/>
<menu submenu="My Corporation Apps"/>
</shortcut>
"online" is either true or false depending on whether you want the app
to run online or not.
You can also use the shortcut element to associate your program with
certain MIME types and file extensions using <association>.
By using an empty shortcut element like this
<shortcut online="false"/>
I was able to get the program into Add/Remove without having to create
any shortcuts.
I'd suggest downloading the Java 1.5 JNLP specification PDF as it
documents all this, but none of the tutorials do, not even Sun's
tutorials!
http://java.sun.com/products/javawebstart/download-spec.html
--
Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
Victorville, California PGP:0xE3AE35ED
It's all fun and games until someone starts a bonfire in the living room.
|
|
0
|
|
|
|
Reply
|
Steven
|
4/18/2007 6:15:57 PM
|
|
|
8 Replies
496 Views
(page loaded in 0.134 seconds)
|