Click here to Skip to main content
13,201,934 members (72,025 online)
Rate this:
Please Sign up or sign in to vote.
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.

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


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 4-Oct-11 22:53pm
Updated 6-Oct-11 20:10pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 7 Oct 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100