Advertised Shortcut - Icon Missing
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?
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
Answers (11)
Please log in to answer
Posted by:
mekaywe
14 years ago
Posted by:
MSIPackager
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
MelbJim
14 years ago
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...
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...
Posted by:
shweta_kar
14 years ago
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.
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.
Posted by:
anonymous_9363
14 years ago
Posted by:
MelbJim
14 years ago
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...!
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...!
Posted by:
shweta_kar
14 years ago
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
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
Posted by:
mekaywe
14 years ago
Posted by:
anonymous_9363
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.