Is it possible to Include Files based on Compiler Variable ?
Posted: Fri Jan 12, 2007 10:38 am
Here is my problem
With the same Installation project I want to generate 2 different output based on compiler variable.
Let say that for my project1 I want to instal the following files
File1,
File2, (Readme located at c:\\Readme1\\Readme.txt)
File3,
For My project 2 I want to install the following files
File 1,
File2, (Readme located at c:\\Readme2\\Readme.txt)
I found out how not to install File3 in my second output based on a compiler variable but the problem is that the file is still being included in the resulting installation executable. Basically what I want is to prevent the file # 3 from being included in the resulting setup based on a Compiler variable. I absolutly need to do this in order to reduce the size of my second output. Is it possible to do this ? if yes how ? where should I put the code.
Also how can I change the source path of a file based on a compiler variable. As stated for file # 2 in my sample. I want to change the path of my readme file based on a compiler variable.
Is there anyway to achieve this ?
I hope Im clear enough
Thanks in advance for your help,
Ben
With the same Installation project I want to generate 2 different output based on compiler variable.
Let say that for my project1 I want to instal the following files
File1,
File2, (Readme located at c:\\Readme1\\Readme.txt)
File3,
For My project 2 I want to install the following files
File 1,
File2, (Readme located at c:\\Readme2\\Readme.txt)
I found out how not to install File3 in my second output based on a compiler variable but the problem is that the file is still being included in the resulting installation executable. Basically what I want is to prevent the file # 3 from being included in the resulting setup based on a Compiler variable. I absolutly need to do this in order to reduce the size of my second output. Is it possible to do this ? if yes how ? where should I put the code.
Also how can I change the source path of a file based on a compiler variable. As stated for file # 2 in my sample. I want to change the path of my readme file based on a compiler variable.
Is there anyway to achieve this ?
I hope Im clear enough
Thanks in advance for your help,
Ben