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!

ales.hrodek
Posts: 65
Joined: Mon Jun 11, 2012 11:40 am

New version remove shorcut

Hi,

When I install new version over existing one then shortcut is lost. I have not found way how to fix it. Could you help me? I have created created sample project to replicate issue.

Conditions are:
a) different product/upgrade code
b) installation order "Install new version first and then uninstall old version"
c) different package organization (different feature/component)

I cannot do anything with a) and c) due to new package structure and content but main shortcut did not changed name. b) is there due to requirement to preserve pinned icon and I have not found any other way how to do that.
Attachments
test2.aip
Install over test1
(16.89 KiB) Downloaded 353 times
test1.aip
Install first
(16.21 KiB) Downloaded 368 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: New version remove shorcut

Hi Ales,

Please note that you should not change the GUIDs of the components from a version to another when you user the "Install new version first and then uninstall old version" option. This is mentioned on the Upgrades Page article:
  • The "Install new version first and then uninstall old version" option will work only if the files' components don't change from the old version to the new one (their names and GUIDs remain the same).
Also, you can take a look on the Windows Installer Upgrades article where is described how the upgrade is performed when that option is used.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ales.hrodek
Posts: 65
Joined: Mon Jun 11, 2012 11:40 am

Re: New version remove shorcut

Hi Eusebiu,

I found solution myself. Even component is part of different feature and pointing to different file and name is also different I set same GUID to component as old component had (containing different exe file but same shortcut name)

One comment to your post. My issue in real project is everything is changed except shortcut title. In your post (their names and GUIDs remain the same) is not exactly correct, that is good for my problem, as name is changed in my case. Fortunately keep GUID same is enough.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: New version remove shorcut

Hi Ales,

Indeed, it seems that the name can also be different, thank you for correcting me.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”