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!

ysimeoni
Posts: 3
Joined: Thu Oct 25, 2012 10:22 am

how to do a full re-install insteand of maintnance ?

Hello,

We handle upgrade and downgrade in the same way:
  • Display all user Dialogs (prefiled with previous install PROPERTIES)
  • Installer remove previous files (and delete shortcut, ...)
  • Installer install new files (and create shortcut, ...)
This works fine.

We would like to do the same when the user install the same version (same MSI file).
The problem is that we go in maintenance mode.

Is it possible to remove and re-install (like in "major upgrade") instead of a maintenance ?
This way the install sequence will be use insteand of maintenance sequence.

Again, we are very happy about the upgrade way, we just want to generalize it to the re-install mode.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: how to do a full re-install insteand of maintnance ?

Hello,

In order to achieve what you want you can use our "Multiple Instances" feature. Here are the steps to proceed:
- Go to "Multiple Instances" page and add a new instance (i.e. named Default).
- Go to "Upgrades" page and check the "Customize Advanced Installer upgrades rules" option.
- In the "Upgrades" group add an additional upgrade rule using the "New..." context menu option.
- In the "Product Info" tab of the "New Upgrade" dialog set the following option:
  • Upgrade Code: [|UpgradeCode]
    Min. Version: [|ProductVersion]
    Include minimum version in range - checked
    Max. Version: [|ProductVersion]
    Include maximum version in range - checked
-Build and run your project.

Also, using this scenario you will be able to remove your application using the EXE installer package with the "Maintain or upgrade an already installed instance".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thony
Posts: 2
Joined: Fri Nov 16, 2012 11:45 am

Re: how to do a full re-install insteand of maintnance ?

Hi Daniel,

Thanks for your previous answer !!

I have an other request concerning this topic :

When we use "Multiple instances" page, it creates a first view and we have to choose between
"Install new Instance" OR
"Maintain or Upgrade an already installed instance"

Can we force one of these options by certain conditions and possibly not display the Multiple instance view ?

The behavior we want is the following:
Installing the same MSI package => Automatically choose "Install new Instance" option.
Upgrading => Automatically choose "Maintain or Upgrade an already installed instance" option.

Regards, Thony.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: how to do a full re-install insteand of maintnance ?

Hello Thony,

You're welcome.
Can we force one of these options by certain conditions and possibly not display the Multiple instance view ?
I'm afraid we don't have support for this. However, we have added an improvement on our TODO list which will add this capability and it will be available in a future version of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”