Upgrade without Upgrade code or MSI package - 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!

tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Upgrade without Upgrade code or MSI package

Hello,

I want my application to Upgrade an older version that has been made by other program instead of advanced installer. The older version hasn´t an Upgrade code and it's an .exe file so I don't have any MSI package. I wonder if it could be possible to upgrade it in any other way. Any idea?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade without Upgrade code or MSI package

Hi,

You can check if that is a .MSI based installation by verifying if the "msiexec.exe" process is initiated during the .EXE installation( you can use either the task manager, or the process explorer tool to verify ). If this is the case, you most probably can extract the .MSI from the .EXE and use its upgrade code in the Upgrades page. You should ask whoever authored the package on how to extract the .MSI.

Here is an user guide article to help with some other solution scenarios.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

Thank you mihai.petcu,

your response has been useful, but I still have some doubts.
The old version is "not MSI-based", so I have to create a custom action to uninstall it. In the custom actions part I put it in "RemovingExistingProducts" as the link you told me says. But I don´t Know how to make the installation recognize if the older version is installed to launch the custom action, because I don't have a upgrade code or something like that.

Thanks again.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrade without Upgrade code or MSI package

Hi,

You can try using a search to determine if the old version is installed or not. You can configure it to find a file or registry entry installed by your old version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

OK, I think I can do it this way.

Thanks a lot.
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

Hello again,

I've done it this way and it works fine, but I want to improve it more.
At the start of the installation it detects that the old version is installed (through the search) so the custom action calls the old version uninstaller. This unisntaller starts with a dialog asking if you are sure to uninstall, so if you answer 'yes' it uninstals, but if you do 'no' the installation of the upgrade continues without uninstalling the old version and this causes an error. Is there any way to uninstall it without this dialog or a way that if the user answers 'no' the installation is over?

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade without Upgrade code or MSI package

Hi,

Unfortunately you cannot set any events to be published if the user clicks "No" in that dialog.
However, you can try to use the search name in a custom launch condition. If you schedule the custom action that uninstalls the old application after AppSearch standard action, this should work.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

Hello,

I think I don't really understand this new way. If I create a launch condition that checks through the search if the old version is installed, the custom action will execute, but the launch condition will be always checked before it, so the installation will be aborted even you uninstall the old version or not.
Tell me what I've misunderstood, please.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade without Upgrade code or MSI package

Hi,

Actually, you are correct, I apologize for the misleading information.

As an alternative, you could try to create your own custom action that performs the search after your custom action is executed and before the LaunchConditions standard action. This custom action should set an installer property and you should create the custom launch condition according to that.

Another way would be to use an "Error Message" custom action later in the install sequence, conditioned in the same way.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

Hello,

that´s the way I have to do it, but I don't know how. Is it possible to make the search in two different moments during the installation? I only can make it during the "InstallUISecuence".
Other possibility you said was making my own custom action to search, but how can I made this?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade without Upgrade code or MSI package

Hi,
Is it possible to make the search in two different moments during the installation? I only can make it during the "InstallUISecuence".
Duplicating the AppSearch standard action is not possible.
Other possibility you said was making my own custom action to search, but how can I made this?
Unfortunately we don't have any search custom action samples and our support boundaries don't cover creating or debugging custom actions. Depending on the type of your search( file or registry ) and on the type of custom action you are willing to create( .DLL, .EXE, VBScript ), you can look on the Internet for starting point guidance.

For VBScript, here is a good place to start.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tolo1984
Posts: 34
Joined: Tue Jul 26, 2011 9:47 am

Re: Upgrade without Upgrade code or MSI package

OK. Thank you all for the help. :wink:

Return to “Common Problems”