Creating an update to my application - 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!

KMoore
Posts: 5
Joined: Wed Oct 21, 2009 9:29 pm

Creating an update to my application

Hi,

In the past I have used a VS.Net setup project to release my application. I am evaluating AI to see if I can replace my Setup Project.

When I wanted to release an update to my application, I would load the VS.Net Setup Project and change the Product Version property, I would be prompted to changed the ProductCode Guid and I would respond yes. When I released my application, all my users have to do is double-click on the MSI and walk through the installation process and my updates are applied to the PC.

I also have a link to a web-page on my site come up if a user uninstalls my application.

With AI, everything seems similar except that when I run the MSI to apply the update, I get the uninstall link to my web-page and I would prefer that this web-page not come up with I am applying an update, but I want it to come up if the app is being uninstalled.

How do I change AI so that the uninstall link doesn't appear if i am updating my application but it does appear if I am uninstalling?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Creating an update to my application

Hello,

Thank you for trying out Advanced Installer.
This is easy. Simply condition your custom action that is launching the webpage using the UPGRADINGPRODUCTCODE property. This property is set during an upgrade.
The condition would look something like:

Code: Select all

(NOT UPGRADINGPRODUCTCODE) AND (REMOVE = "ALL")
This conditions the custom action to run during an uninstall only when not upgrading.

Do let me know how this worked for you.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
KMoore
Posts: 5
Joined: Wed Oct 21, 2009 9:29 pm

Re: Creating an update to my application

Gabriel,

I did end up attempting to add the condition as you suggested and unfortunately it still didn't work.

I was thinking that the issue might be because I was moving from a VS.Net MSI to the AI MSI and that caused the problem, any ideas?

Kevin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Creating an update to my application

Hi Kevin,

I'm not sure whether this is the case or not. I would have to study the .aip project file. Please send it to support at advancedinstaller dot com.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”