|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Cannot create Internet ShortcutI am trying to create an Internet Shortcut on Windows in the Start Menu that opens my Web application in the user's default browser. I am using the Shortcut Panel and the shortcutSpec.xml. But what I see created in the Start Menu is not an Internet Shortcut (a text file with extension .url) but a regular shortcut (a binary file with extension .lnk). Perhaps I'm not specifying something correctly, but I don't see anything in the current documentation or online about this. What should be specified for the target value, for example? Or is the Shortcut Panel not intended to create Internet Shortcuts on Windows right now? Here's what I have in the shortcutSpec.xml:
<shortcut name="My Web Application" programGroup="yes" desktop="no" applications="no" startMenu="no" startup="no" target="http://localhost:80/doc" iconFile="C:/favicon.ico" iconIndex="0" description="This opens my Web application in the user's default browser."> </shortcut> |
|
|
RE: Cannot create Internet ShortcutDavid,
This might be what you're looking for: 1) shortcutSpec.xml <shortcut name="Open MyApp" target="$INSTALL_PATH/MyApp.url" workingDirectory="$INSTALL_PATH" description="Open MyApp" createForAll="true" iconFile='$INSTALL_PATH/icons/myapp.ico' iconIndex="0" programGroup="yes" desktop="yes" applications="no" startMenu="no" startup="no"/> 2) MyApp.url (the following is the whole text for the file) [InternetShortcut] URL=http://localhost:$HTTP_PORT_NO/index.jsp 3) In the <pack> (this replaces the $HTTP_PORT_NO variable with the port chosen during installation. If you're always using 80 then this is unnecessary) <file src="MyApp.url" targetdir="$INSTALL_PATH" override="true"/> <parsable targetfile="$INSTALL_PATH/MyApp.url"/> Let me know if it works, good luck! Bar -----Original Message----- From: David Ngan [mailto:dngan@...] Sent: Tuesday, October 20, 2009 18:54 PM To: user@... Subject: [izpack-user] Cannot create Internet Shortcut I am trying to create an Internet Shortcut on Windows in the Start Menu that opens my Web application in the user's default browser. I am using the Shortcut Panel and the shortcutSpec.xml. But what I see created in the Start Menu is not an Internet Shortcut (a text file with extension .url) but a regular shortcut (a binary file with extension .lnk). Perhaps I'm not specifying something correctly, but I don't see anything in the current documentation or online about this. What should be specified for the target value, for example? Or is the Shortcut Panel not intended to create Internet Shortcuts on Windows right now? Here's what I have in the shortcutSpec.xml: <shortcut name="My Web Application" programGroup="yes" desktop="no" applications="no" startMenu="no" startup="no" target="http://localhost:80/doc" iconFile="C:/favicon.ico" iconIndex="0" description="This opens my Web application in the user's default browser."> </shortcut> -- View this message in context: http://www.nabble.com/Cannot-create-Internet-Shortcut-tp25978675p25978675.ht ml Sent from the izpack - users @ codehaus mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
RE: Cannot create Internet ShortcutThanks for your suggestion, Bar.
But this isn't doing what I had expected the ShortcutPanel to do. Using your shortcutSpec.xml, IzPack creates a binary file called "Open MyApp.lnk", which is not an Internet Shortcut (which is a text file with a .url extension). I had assumed (incorrectly now, it appears) that the ShortcutPanel would allow me to somehow create the Internet Shortcut file itself and its contents, i.e., the "MyApp.url" file that you refer to, and it would have in it the iconIndex and iconFile fields, etc., something like this: [InternetShortcut] URL=http://www.someaddress.com/ WorkingDirectory=C:\WINDOWS\ ShowCommand=7 IconIndex=0 IconFile=C:\WINDOWS\SYSTEM\url.dll Modified=20F06BA06D07BD014D HotKey=1601 In your suggested approach, how is the "MyApp.url" created? Would I create that file separately on my own? If so, then there's really no point in using the ShortcutPanel for this purpose. And I would end up with two files (a .lnk file and a .url file) instead of just one (a .url file).
|
|
|
RE: Cannot create Internet ShortcutDear David,
In my case at least, I created the .url file by hand myself and included it in the installation. The shortcutspec.xml creates a .lnk that then points to your .url file. For me, the using the shortcut panel and the <shortcuts> element in shortcutSpec.xml has been useful because it sets up the Program Group by its own, creates the .lnk and automatically places it in the program group, and because I also have some non-url links (to the uninstaller and the software manual) in the same program group. HTH, Bar -----Original Message----- From: David Ngan [mailto:dngan@...] Sent: Wednesday, October 21, 2009 18:57 PM To: user@... Subject: RE: [izpack-user] Cannot create Internet Shortcut Thanks for your suggestion, Bar. But this isn't doing what I had expected the ShortcutPanel to do. Using your shortcutSpec.xml, IzPack creates a binary file called "Open MyApp.lnk", which is not an Internet Shortcut (which is a text file with a .url extension). I had assumed (incorrectly now, it appears) that the ShortcutPanel would allow me to somehow create the Internet Shortcut file itself and its contents, i.e., the "MyApp.url" file that you refer to, and it would have in it the iconIndex and iconFile fields, etc., something like this: [InternetShortcut] URL=http://www.someaddress.com/ WorkingDirectory=C:\WINDOWS\ ShowCommand=7 IconIndex=0 IconFile=C:\WINDOWS\SYSTEM\url.dll Modified=20F06BA06D07BD014D HotKey=1601 In your suggested approach, how is the "MyApp.url" created? Would I create that file separately on my own? If so, then there's really no point in using the ShortcutPanel for this purpose. And I would end up with two files (a .lnk file and a .url file) instead of just one (a .url file). Bar Zecharya wrote: > > David, > This might be what you're looking for: > > 1) shortcutSpec.xml > <shortcut name="Open MyApp" target="$INSTALL_PATH/MyApp.url" > workingDirectory="$INSTALL_PATH" description="Open MyApp" > createForAll="true" iconFile='$INSTALL_PATH/icons/myapp.ico' iconIndex="0" > programGroup="yes" desktop="yes" applications="no" startMenu="no" > startup="no"/> > > 2) MyApp.url (the following is the whole text for the file) > [InternetShortcut] > URL=http://localhost:$HTTP_PORT_NO/index.jsp > > 3) In the <pack> (this replaces the $HTTP_PORT_NO variable with the port > chosen during installation. If you're always using 80 then this is > unnecessary) > <file src="MyApp.url" targetdir="$INSTALL_PATH" override="true"/> > <parsable targetfile="$INSTALL_PATH/MyApp.url"/> > > Let me know if it works, good luck! > Bar > > > -----Original Message----- > From: David Ngan [mailto:dngan@...] > Sent: Tuesday, October 20, 2009 18:54 PM > To: user@... > Subject: [izpack-user] Cannot create Internet Shortcut > > > I am trying to create an Internet Shortcut on Windows in the Start Menu > that > opens my Web application in the user's default browser. I am using the > Shortcut Panel and the shortcutSpec.xml. But what I see created in the > Start > Menu is not an Internet Shortcut (a text file with extension .url) but a > regular shortcut (a binary file with extension .lnk). Perhaps I'm not > specifying something correctly, but I don't see anything in the current > documentation or online about this. What should be specified for the > target > value, for example? Or is the Shortcut Panel not intended to create > Internet > Shortcuts on Windows right now? Here's what I have in the > shortcutSpec.xml: > > <shortcut > name="My Web Application" > programGroup="yes" > desktop="no" > applications="no" > startMenu="no" > startup="no" > target="http://localhost:80/doc" > iconFile="C:/favicon.ico" > iconIndex="0" > description="This opens my Web application in the user's default > browser."> > </shortcut> > > > -- > View this message in context: > > ml > Sent from the izpack - users @ codehaus mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/Cannot-create-Internet-Shortcut-tp25978675p25996295.ht ml Sent from the izpack - users @ codehaus mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |