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!

pnirenberg
Posts: 3
Joined: Mon Oct 22, 2012 6:00 pm

Installing second copy of program

Hi,

I'm not even sure how to accurately describe this. Here goes... My installer is basically installing a website to a folder which is used to create a web application. It works great. But I also want to install the same folders into a second directory so I can have two web apps running with different databases, web.config settings etc. I'd like c:\Web_A and c:\Web_B

But when I try to install the second time I get prompted with the Update/Modify/Remove dialog. I've even tried disabling those options in the Product Details page. I really just want to run the installer and select a new folder.

Any help is appreciated.

Thanks,

Peter
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installing second copy of program

Hello Peter,

This is happening because Windows Installer permits one instance of a product code to be installed per context. Please take a look on the Installing Multiple Instances of Products and Patches article which may be useful to you.
So, the solution is to create another instance of your product in the Multiple Instances page.

As you noticed, if you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. Please take a closer look on the Product Identification article.

Please note that the intended purpose for the related options is:
  • Disable Modify - Disables the "Change" option in the "Add or Remove Programs" applet in the Control Panel.
    Disable Repair - Disables the "Repair" button in the "Add or Remove Programs" applet in the Control Panel. This button is showed when you select the Click here for support information link.
    Disable Remove - Disables the "Remove" option in the "Add or Remove Programs" applet in the Control Panel.
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”