Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: installer Deployment
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 23:53pm
Edited 6-Oct-11 21:10pm
v9

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

  Print Answers RSS
0 OriginalGriff 275
1 DamithSL 265
2 CPallini 235
3 Maciej Los 185
4 George Jonsson 170
0 OriginalGriff 5,305
1 DamithSL 4,382
2 Maciej Los 3,760
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,901


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 7 Oct 2011
Copyright © CodeProject, 1999-2014
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