Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Shortcut Icon
pkatsoulas
#1 Posted : Thursday, February 9, 2012 12:19:33 PM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

I am using the following url file to create a shortcut to my application.

[InternetShortcut]
URL=http://localhost:7756/GoToApplication.aspx?AppID=5802D60B-68D6-409B-9757-3AEFCAC57D9D

Is there a way to specify an icon to be used with the shortcut?

Any help would be appreciated.
Ultidev Team
#2 Posted : Thursday, February 9, 2012 1:29:17 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Yes, it's easy to do - take a look here. However, upcoming build 15 that is getting its finishing touches and testing, will create application shortcut icons when an application is registered. UWS.RegApp.exe will create icons by default, and UWS configuration API will do it if asked explicitly. UWS.RegApp.exe will get a few new command line switches to control creation of up two three shortcut icons during application registration.

Best regards,
ULtiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#3 Posted : Friday, February 10, 2012 5:39:07 PM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

Thanks for the reply. I am interested to know what happens if I enter the same icon twice but with different paths. Specifically, if the icon is not found in the first path will it look for it in the second path?
Ultidev Team
#4 Posted : Saturday, February 11, 2012 10:55:58 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

You will be able to specify up to three different paths for where shortcut icons will be created. If a path you specified is not found, the icon will not be created there. If you specify two paths for two icons, and both paths exist, two shortcuts will be created. However, better use of shortcuts is to create shortcuts for different URL hostnames, and to create separate URLs in case an application needs a separate initialization/configuration link.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#5 Posted : Tuesday, March 13, 2012 8:33:46 AM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

Now that build 15 is available, can you point me to documentation explaining the RegApp shortcut icon feature you mention above.
Ultidev Team
#6 Posted : Tuesday, March 13, 2012 11:07:57 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

Here it is: http://ultidev.com/Forum...l-Studio.aspx#post2804.

Please scroll down until you see multiple commands in the shortcutNxxxxx format, like SHORTCUT1LOCATION.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#7 Posted : Wednesday, March 14, 2012 1:40:56 PM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

I now run the following in my setup:

"[ProgramFilesFolder]\UltiDev\Web Server\UWS.RegApp.exe" /r /AppID="[UpgradeCode]" /aspnet:4 /defaultdoc:Default.aspx /vdir:KnowledgePLAN /path:"[TARGETDIR]KnowledgePLAN" /appname:"SPR KnowledgePLAN®" /appdesc:"SPR KnowledgePLAN® Enterprise" /shortcut1path:"[TARGETDIR]KnowledgePLAN\KnowledgePLAN Enterprise 1.0.0.url" /shortcut1icon:"[TARGETDIR]KnowledgePLAN\Images"

The KnowledgePLAN Enterprise 1.0.0.url is created in my target folder as expected. However, I cannot get my icon to be used. I always get the default. In the above shortcut1icon, I have used a path to a folder that has an .ICO file. This does not work. I have also tried appending the actual ICO file name to the path and it still does not work. What am I doing wrong?

Also, how can I get the shortcut to appear in the Start button "All Programs" menu?

Thanks.
Ultidev Team
#8 Posted : Wednesday, March 14, 2012 2:50:32 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

It's an issue of "smoke & mirrors" kind. It is actually working, but windows shell caches icon images for shortcuts of the same name. For example, if you create c:\short.url with some image, then delete it, and then create c:\short.url with another image, Windows will still show old icon for some time. If you change .URL file name to "c:\short1.url" or its folder location, you should see your actual icon right away.

You need to supply full path to an .ICO or an executable file, though, not a path to images folder.

Re Programs Menu: Please try using [ProgramMenuFolder] property, although depending on which tool you are using for authoring the installer, the property name could be different.

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#9 Posted : Wednesday, March 14, 2012 4:05:24 PM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

The problems have been solved by:

1. Using [ProgramMenuFolder] instead of [TARGETDIR] in the shortcut1path argument
2. Adding the name of the ICO file to the path in the shortcut1icon argument
3. Changing the name of the URL file.

Thanks for your help.
Ultidev Team
#10 Posted : Wednesday, March 14, 2012 8:15:12 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Great!

We are glad we were able to help.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.