I seem to have a problem with WPS when creating advertised shortcuts in my MST.

When I makea shortcut an advertised shortcut it seems to lose the program icon and reverts to the default windows program icon. It launches the application just fine and it does what I am trying to achieve (the entry point initiates a repair which adds the HKCU registry keys required on launch) so I happy with the way it works except for the damn icon issue.

I have checked in the Shortcut table that the icon column matches the icon name in the Icon table. This tells me it is configured as it should be but still no dice. I know that when a shortcut is an advertised shortcut that it no longer points to the exe but it is still supposed to display the correct icon is it not?

I have seen this issue raised a few times in various forums (no definitive answer as far as I can make out) and just wondered if anyone has found a solution or if it is just WPS not working on this occasion?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Try to set the Icon once again.
If advertized shortcut is pointing to non-exe then it will not show the Icon.
Answered 02/08/2010 by: mekaywe
Brown Belt

Please log in to comment
0
Are you sure you are using the correct IconIndex reference number for your new shortcut table row?
Answered 02/09/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
This has been an issue with Wise since the year dot. I reported it as a bug in v5.6 so it's nice to see Symantec on top of the bug-fix list...

You can usually work around it by creating another, identical shortcut and then deleting the first.
Answered 02/09/2010 by: VBScab
Red Belt

Please log in to comment
0
Thanks for the suggestions guys.

VBScab/Mekaywe - I tried creating another shortcut pointing it to the exe and deleting the first but still no joy.

MSIPackager - I'm not sure what the correct IconIndex reference would be. The IconIndex for all the shortcuts is '0'.

I thought this issue had been raised in previous versions and subsequently fixed. I guess not. It's very annoying because after initial install the icon is correct but once the application is launched the icon returns back to the Windows generic program icon.

Hmmm, have to work out another way to apply HKCU at application launch...
Answered 02/10/2010 by: MelbJim
Senior Yellow Belt

Please log in to comment
0
What the shortcut is pointing to ?
Answered 02/10/2010 by: mekaywe
Brown Belt

Please log in to comment
0
Hi,
Try out this and check whether it works or not, hopefully it should.

1.Using Icon snatcher or icon finder browse to the exe and save the icon file or use the target exe (i.e if shortcut is pointing to java.exe then java.exe is your target exe)
2. Go to shortcut table and check what is the value for the column Icon then
in the icon table for that entry , double click the Binaray Data entry under Data Column. Choose 'Read the Binary from the file' option and browse to the icon file saved or the target exe.

Compile and test.
Answered 02/11/2010 by: shweta_kar
Blue Belt

Please log in to comment
0
Hmmm...OK, the other thing to try is to create an MSI out of your MSI/MST combination using Orca or, better, InstEdit. Load the MSI, apply the transform, then 'Save As' a new MSI. See if that works. Not ideal, I know, but as an exercise, see how it pans out.
Answered 02/11/2010 by: VBScab
Red Belt

Please log in to comment
0
Shweta_kar - I extracted the icon and browsed to it from the Binary Data column as suggested but that made no difference. I also tried just browsing to the exe without success.

VBScab - I tried applying the transform and saving as a new MSI using Orca but when testing the install I was getting the dreaded Error Code 2356. So as an exercise it probably introduced other problems to the MSI.

At least I had a few more things to try to get the advertised shortcut to work. I can try other ways to get the HKCU settings to apply but I just wanted to get this icon thing sorted. As is often the case the simplest things take the most time to work out.

In the meantime if any of you guys have any other suggestions then I'm all ears...!
Answered 02/11/2010 by: MelbJim
Senior Yellow Belt

Please log in to comment
0
MelbJim,

Add the following regitrsy entry in the application and check:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
Uninstall\[Product Code]

Name : DisplayIcon
Value : <path to the target exe>,<icon index>
for e.g C:\Program Files\CyberLink\PowerDVD\PowerDVD.exe,0

Type will be REG_SZ
Answered 02/11/2010 by: shweta_kar
Blue Belt

Please log in to comment
0
@Shweta_kar
I hope what you pointed out will display the Icon for ARP entry
Answered 02/11/2010 by: mekaywe
Brown Belt

Please log in to comment
0
Add the following regitrsy entryA kludge, for sure, but it would provide a QAD work-around.

BTW, FFR, you should avoid hard-coding paths: if the user chooses to install to, say, the D: drive, the icon will once again be missing. Use the formatted text syntax for the EXE's component instead.
Answered 02/12/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity