installer change question - 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!

ci3
Posts: 16
Joined: Tue Jul 21, 2009 9:30 pm

installer change question

I'm creating a brand new install using AI. Our old installer used a different program then AI. So just wondering how to handle it when someone goes to load my new install with AI and they have the old program already using the old installer on their machine. (old install was made using an old old version of installshield)

I do have the GUID for the old installer. Should I make this new AI install have the same GUID? If nothing else could I make my install detect the old version is installed by its GUID or something and just have a message say please uninstall your old version before installing this new one?

Whats my best course of action in this scenerio?

Any advice appreciated
Mike
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: installer change question

Hi,

Advanced Installer has a feature designed to help in cases like yours. That is, you can use the Import MSI/MSM functionality to import your old MSI.

You can then continue your work, changing that imported MSI to create a newer version, build it and deploy it. The old msi must be added in the Upgrades page, so the new version will automaticaly upgrade it.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ci3
Posts: 16
Joined: Tue Jul 21, 2009 9:30 pm

Re: installer change question

Hi Gabriel,

I don't think this will work in my scenerio. There isn't an MSI for this old install it just created a "setup.exe" with some cab files beside it so not sure how i could do this. The install was created in InstallShield from around 6+ years ago maybe even 7-8 years ago and hasn't been updated. Not to mention I don't really want to build off this old one anyways i don't think it followed best practices. With this new install I'm making i have been able to eliminate all files that used to be just copied into the System folder and with the new AI install it is so much cleaner I'd really just like to start a new one.

So I guess maybe i should change my question to: Is there a way to just check a PC if this old package was installed by its GUID (or other method) and simply have a message tell the user to uninstall this old version before installing this new one and end the install process until its not detected? Or some other idea where I don't have to incorperate that old install but wouldn't allow my customers to install this new one over the top of that old one.

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

Re: installer change question

Hello,

It is not necessary to have the msi. On the Upgrades page, when pressing the New button, simply press cancel on the Browse dialog that pops up, then manually input your GUID in the Upgrade Code field. Leave the other fields blank, and press OK.
Perhaps this guide might help you:
http://www.advancedinstaller.com/user-g ... oduct.html

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ci3
Posts: 16
Joined: Tue Jul 21, 2009 9:30 pm

Re: installer change question

Perfect sounds like it can do exactly what I need according to the section: "The old package is created with another tool and it is not MSI-based"

However, I may need another nudge to put it all together. I did the step you mentioned in the “Upgrades” section where I manually added my GUID and then read and reread the sections corresponding to "Custom Actions" and "Upgrades" but I’m not understanding how it all connects together. I hate to make you spell it all out but I read and reread it all and tried to get something going on my end with no luck. Your help is much appreciated.

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

Re: installer change question

Hello,

The installer uses the Upgrade Code to determine if other versions of the product are installed.
It then does an automatic upgrade of those older versions.

Note that an executable installer might contain a .msi. This might be your case. If so, then all you need to do is make sure the GUID you have is an Upgrade Code, and place it on the Upgrades page in Advanced Installer.

If your .exe does not contain an msi, you will need to:
- use the Search page to search for your product and place the result in a property, let's say MY_RESULT
- create your own Custom Action under RemoveExistingProducts with the "(NOT Installed) AND MY_RESULT" condition. This custom action must do all the uninstallation of your previous product.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ci3
Posts: 16
Joined: Tue Jul 21, 2009 9:30 pm

Re: installer change question

Gabriel,

Sorry took me so long to respond I got pulled into another emergency project. Thanks for the response. I'll give your suggestions a try.

Thanks!
Mike

Return to “Common Problems”