Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a parameter that would be passed during the installation from console application.
I have created the folder and files in the Deployment MSI Installer Folder.

Issue:
Currently all these files and folders are created on my local machine during installation.

Requirement:

If the value of the parameter passed is equal to the name of the folder in 'MSI Installer Folder' only that folder needs to be created on local machine during installation.

How can I pass this parameter value to the CONDITION property of the MSI Installer Folder. or any other way achieve the requirement?

For example:

I have parameter named "ENVIRONMENT" that is passed from the console application which invokes the MSI also I have files named dev.config, uat.config in the 'MSI Installer Folder'.

I understand that we can set some syntax in the CONDITION property of the file so that it can be installed or not.

How should I write the syntax in the Condition property of the file dev.config and uat.config, so that If the value in the parameter "ENVIRONMENT" is 'dev' then only the dev.config is installed on the local machine and not the uat.config.
Posted
Updated 6-Oct-11 20:10pm
v9

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900