Uninstall nightmare - 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!

splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

Uninstall nightmare

Hey Guys,

We have bought this software under the name ( Enbu ).

I have been spending the last 5 hours trying to get this to install.

I changed some details in the setup and then went to run the msi, it goes off looking for previous versions of the software I am trying to install and tries to uninstall them, no prompt from me I might add.

During its uninstall, it tries running custom actions I made to run only during an install. Problem is, those custom actions take parameters from the UI during the install. Now the thing is looking for those paramters during the uninstall and they are not there so it just stops everything.

It has broken my heart and will cause me a lot of trouble with the boss here tomorrow.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please give more details about you are trying to do!

Please note that Advanced Installer uninstalls previous versions of the software you are installing. This is done because in the "Upgrades" page "Automatically upgrade older product version" is selected by default.
If you do not want this then you can select one of the other options.

You can read more about this here:
http://www.advancedinstaller.com/user-g ... rades.html

If you want AI to let the user choose the way he want the software to be installed (upgrade or side-by-side) then you can add the "UpgradeDlg" dialog in the "Dialogs" page.
Also make sure your custom actions are correctly set to run when installing the software! The condition you should use in order to run a custom action only on install is: NOT Installed

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

NOT INSTALLED

Hi,

Thanks for that I know the problem now.

In an older version I did not have the NOT INSTALLED property set on my custom action so when I went to install a new version, it was trying to execute the custom action on the uninstall of the last version, :!: tricky :!:

I am still a bit bewildered in the side by side installs, I have set "Allow side by side" upgraded the Version number and added the upgrade dialogue.

When I run it though its going straight to installation failed.

These are my setps
  • Version 1.0.0 is already installed
    I now build Version 1.0.1 which allows side by side but doesnt install
Thanks for the help, I'll get there soon.

:P
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
I am still a bit bewildered in the side by side installs, I have set "Allow side by side" upgraded the Version number and added the upgrade dialogue. Version 1.0.0 is already installed
I now build Version 1.0.1 which allows side by side but doesnt install

I cannot reproduce this behavior on my test machine. Please make sure you choose to generate a new product code (when prompted) after you change the version. (you can read more here: http://www.advancedinstaller.com/user-g ... rsion.html) Also note that you must select "Allow side by side installs of different product versions" before you change the version.

If the problem persists please send the .aip (if it doesn't contain confidential information) or a small test case reproducing this behavior to support at advancedinstaller dot com.

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

Return to “Common Problems”