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!

Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

shortcut being removed when upgrading

Hello,

I have a shortcut that is created in the application's folder at runtime, that shortcut points to the location of the application's configuration file. When the application starts for the first time, a small wizard will set it up so it's not part of the installer itself.

However, when the application is uninstalled (not re-installed or upgraded), the shortcut dshould be removed.

I have created a "file removal" entry in AV with the following condition:

(REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE))

However, that doesn't seem to be working: the shortcut is still removed when the application is upgraded.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: shortcut being removed when upgrading

Hello,

We have tested your scenario but we could not reproduce your issue. Please take a look on the attached sample .AIP projects (old and upgrade). This example performs a file removal operation on uninstall, but not by an upgrade, on a file (txt.txt) created by user, located in the APPDIR.

Best regards,
Sorin
Attachments
sample.zip
(6.01 KiB) Downloaded 275 times
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”