Uninstall previously installed app - 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!

garddawg
Posts: 7
Joined: Thu May 18, 2006 5:56 am

Uninstall previously installed app

My company previously used InstallShield Express. We have recently purchased AI and would like to deploy are application.

The problem we have run into is distributing our application to our previous costumers who have installed an older version of our app which was distributed using InstallShield.

Is there anyway of updating an application that was installed using InstallShield?

And if that isn't possible is there a way to determine if an application is installed and if that application is found then uninstall it before continuing the AI installation package?

Thanks in advance
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

There is a post about this on the forum please take a look here:
http://www.advancedinstaller.com/forums ... +installer

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
garddawg
Posts: 7
Joined: Thu May 18, 2006 5:56 am

This link will not work in my situation because the install was created using InstallShield Express version 2.11 which doesn't use an MSI.

I would like to create a custom action in AI which will search for a registry entry namely HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\PROGRAM NAME\UninstallString

If this string exists then it will take this value returned and execute that value. Which will uninstall the application.

Is this possible? How do I accomplish this?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
If this string exists then it will take this value returned and execute that value. Which will uninstall the application.
Here is how you can do this:

1. Switch to "Search" page and create a "New Search->Add Location->Registry". Browse for the "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\PROGRAM NAME\UninstallString" key.
2. Switch to "Custom Actions" page and add a "Exe with Working Dir" custom action under the "InstallUISequence->CostFinalize". Use following options for the custom action:
2.1 Full Path: [RESULT_PROPERTY]
2.2 Execution Condition: (Not Installed) AND RESULT_PROPERTY
Were RESULT_PROPERTY is the property defined in the "Search" page. This property keeps the result of the registry search.

Hope this helps.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
garddawg
Posts: 7
Joined: Thu May 18, 2006 5:56 am

This proccess seems to work great! I have one more question. Now that I have added the costume action explained in step two above. I would like to add an error message just after this costum action which will check to see if the costum action complete succesfully. If this costume action was interupted then an error will be displayed and the installation will terminate.

My First idea was to re-check the [RESULT_PROPERTY] but it appears that this properity is only set at the begining of the installation process. Is there a way to check the return code of the costume action created in step 2 above or is there a way to re-check the existance of that registry key?

Thanks again
garddawg
Posts: 7
Joined: Thu May 18, 2006 5:56 am

I have solved my own problem. I checked to make sure the registry key was deleted using a VBScript. And displayed an error message if it still existed.

Having the ability to run VBScripts in this installer is very handy.

Thanks for the help.
SXP
Posts: 1
Joined: Fri Apr 29, 2011 5:52 am

Re: Uninstall previously installed app

Hello,

I have a similar problem. I tried the solution from above but i get an Error Message when i run the MSI-Package.

The Error message is:

error 1606 could not access network location

retry or abort

Any idea? It is very urgent!

Thx
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Uninstall previously installed app

Hi,

I am not sure what happens, can you please send us the aip file and a verbose log created while the error appears so we can analyze them to
support at advancedinstaller dot com.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”