Click here to Skip to main content
Sign Up to vote bad
good
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 4-Oct-11 22:53pm
Edited 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
Your Filters
Interested
Ignored
     
0 Christian Graus 514
1 Ron Beyer 296
2 OriginalGriff 248
3 samadhan_kshirsagar 229
4 Tadit Dash 213
0 Sergey Alexandrovich Kryukov 7,007
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,372
4 CPallini 2,975


Advertise | Privacy | Mobile
Web02 | 2.6.130617.1 | Last Updated 7 Oct 2011
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid