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!

davebrooks76
Posts: 1
Joined: Thu Aug 18, 2016 12:47 am

Question about Multi Instance and command line

Hello,

I have enterprise license, and I'm trying to do some automation of installing and uninstalling multiple instances. I'm able to get it working fine with the GUI, but I'm not sure how to accomplish it via the command line. The problem is, I'm creating new instances at install time which does a product code transform. The uninstall via command line seems to require the product code. Since I'm just providing an instance name at install time I don't know what the new product code is that I can pass to the installer for the uninstall step.

What is the best way to accomplish this?

Thanks!

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

Re: Question about Multi Instance and command line

Hi Dave and welcome to Advanced Installer forums,

You can uninstall an instance by using its product code. If you are creating new instances at install time (e.g. you enabled the Generate instances at install time option from the Multiple Instances page), you need to save the product code of each instance.

For example, you can write the product code of each installed instance in a file as in our How to write text to a file? article.

The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file. The ProductName and and ProductCode of each instance is written in a file that is created on the desktop.

Let me know if you have any questions.

Best regards,
Dan
Attachments
Sample project.zip
(3.79 KiB) Downloaded 194 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”