Shortcuts appear after Update that weren't there before - Advanced Installer Community

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!

invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Shortcuts appear after Update that weren't there before

My project has the ShortcutsDlg. My user unchecks "Desktop" and "Quick Launch toolbar". The product installs fine and the two shortcuts DO NOT get created. Life is good.

My user runs the update (with /passive baked in) and after the dust settles "Desktop" and "Quick Launch toolbar" shortcuts appear.

How might I fix this problem?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Shortcuts appear after Update that weren't there before

Hello,

To preserve the shortcuts chosen by the user from one version to the next you can try the following:
1.In the original package:
  • create a registry entry containing the AI_SHORTCUTSREG property which contains the ShortcutsDlg selection
2.In the upgrade project:
  • do a search for that registry value
  • condition the search public property and if it exists => assign its value to AI_SHORTCUTSREG in a standard action scheduled somewhere after the RemoveExistingProducts standard action
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”