We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Iron_Chef
Posts: 6
Joined: Thu Apr 12, 2007 12:49 am

Create Shorcut to External File - loses icons

Hi there,

I am creating an installer thatt does the following.

Installs files to a temp directory, then runs an exe (custom action) to backup some files, then calls another exe and copies files over from the temp directory to the [AppDIR]. I am using "Create shortcuts to External File" to be able to specify the final [AppDIR] path for the shortcut.

Every thing works fine EXCEPT the icons I assign to the shortcut do not get used when I run the installer - the shortcut targets and working directories are fine and all works great but no icons for shortcuts.

I think this has something to do with the fact that I have selected "Do not register the product with windows installer". I am creating Start Menu shortcuts manually and using my own uninstaller so I did not think I needed to register it. If I register it, the icons show up fine.

Any ideas?

Thanks

Iron Chef
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Iron,
Every thing works fine EXCEPT the icons I assign to the shortcut do not get used when I run the installer
This is an effect of not registering the product with WI. Not registering the product with WI (not my recommendation) means that you cannot remove, repair, or reinstall the application by using the Control Panel, or the Windows Installer command-line options, or the Windows Installer application programming interface (API).

Icon for shortcuts are stored in the Icon table and this table is referred to when the PublishProduct action (action that manages the advertisement of the product information with the system) is executed:
http://msdn2.microsoft.com/en-us/library/aa369210.aspx

Also you can read more about product registration here:
http://msdn2.microsoft.com/en-us/library/aa371162.aspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Iron_Chef
Posts: 6
Joined: Thu Apr 12, 2007 12:49 am

Thank you for the reply Gigi.

Time to rethink my strategy. :D

Return to “Common Problems”