hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Uninstallpreviousversions-error?

Hello,

since an update (I don't know which) the DoAction "uninstallpreviousversions" runs a second installation.
Why? Is this an error from the newer versions?
I want to uninstall my previousversion silent.

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

Re: Uninstallpreviousversions-error?

Hello,

There were no modifications concerning this custom action in the latest releases. This custom action uses the Upgrade Code so you should make sure that the new package uses the same code as your previous versions.
runs a second installation
This custom action performs an uninstall of previous versions, not an install. Can you please be more specific regarding this behavior?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstallpreviousversions-error?

Hello,

okay, it starts a second deinstallation. (Like if i remove it under "Software" but it's very, very slowly!)
I thinked it was silent without any dialogs, or? Why are here the standard deinstallationdialogs in my case?

If it's correct that it isn't silent, how can i remove it silent? (without dialogs)

thank you, hallolu
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstallpreviousversions-error?

Hello,

Unfortunately, this custom action is designed to run with basic UI everytime, so the uninstall cannot be silent.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstallpreviousversions-error?

Hello,

Okay, is there an other method to uninstall it? Silent?
Then not, okay..

all the best, hallolu :)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstallpreviousversions-error?

Hello,

You can try to schedule a "Launch File or Open URL" predefined custom action with the following command line:

Code: Select all

msiexec.exe /x <path_to_MSI> /qn
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstallpreviousversions-error?

Hello,

now have only one question :)

Code: Select all

msiexec.exe /x <path_to_MSI> /qn
Should be this the path of the old MSI to uninstall it? So, i must move this MSI during the installation into the applicationfolder to run it after a new version comes and i want to uninstall it?

all the best, hallolu :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstallpreviousversions-error?

Hi,

I think he meant this command line:

Code: Select all

msiexec.exe /x <old_msi_ProductCode> /qn
where you use the actual Product Code of the old MSI. You can get it by opening the old MSI with Orca and checking the Property table.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”