Installation of specific items using Installation Parameters - 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!

gkaip
Posts: 1
Joined: Sat Jan 15, 2011 12:45 am

Installation of specific items using Installation Parameters

Hi All,
I am new user of Advanced Installer. So far it looks very good. I am trying to do the following and was hoping would have done something similar and help me.

1. Create an MSI Package
2. This package will be installed from command line
3. This package would take Parameter ( for example: INSTALL_PRODUCT)
4. INSTALL_PRODUCT could have three values: 1, 2, 3
5. Based on the Parameter Value passed in for INSTALL_PRODUCT I would like to create .URL file on the desktop the URL would be something like
http://www.example.com?Product=1 OR http://www.example.com?Product=2 OR http://www.example.com?Product=3

It appears to me that this is definitely possible. I am not sure about how to go about doing it though. Any help would be greatly appreciated.

Regards,
gkotte@yahoo.com
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installation of specific items using Installation Parameters

Hello and welcome to the Advanced Installer Forums,

This should not be difficult. First of all you should add your URL files inside the Desktop folder form the Files and Folders page. Second, from the Install Parameters page you should define the public property you want to pass as a parameter( E.G. press [New] -> Name:INSTALL_PRODUCT ). Then, from the Organization page, you will need to create a component for each URL file, drag each file's resource to its corresponding component and condition each component.
For example, the condition for the component of the URL file that will be installed when passing INSTALL_PRODUCT=1, should be:

Code: Select all

INSTALL_PRODUCT=1
In the end all you need to do is install the package using the following command line:

Code: Select all

msiexec.exe /i "C:\YourSetup.msi" INSTALL_PRODUCT=1
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”