View forum topic
List of forum topicsSubject: Multi Software Build but how different source folders ?
Hello,
I created a "multi installation build" and I'm working with variables so that I don't need to change created setup file names etc. But can you tell me how can I add different source folders and desktop shortcuts for EACH software.
How I tried to solve it:
I added a source code step with the following code:
$body$
uint Software1 = 0
uint Software2 = 0
uint Software3 = 0
if "$appname$" == "Software 1"
{
Software1 = 1
}
if "$appname$" == "Software 2"
{
Software2 = 1
}
if "$appname$" == "Software 3"
{
Software3 = 1
}
Then in the Dialog Installation Processing I tried to check $SoftwareEasyInvoice$ for true/false (1/0) but it's not working.
Can you give me a hint please ? I would appreciate it. Thank you.
Charles
Use Set Variables command
Variable: SoftwareEasyInvoice
Value: 1
If Condition: "$appname$" == "Easy Invoice"
Variable: SoftwareVATValidator
Value: 1
If Condition: "$appname$" == "VAT Validator"
Variable: SoftwarePrinterAdmin
Value: 1
If Condition: "$appname$" == "Printer Admin"
Now you can use these variables in other commands.
How to specify different Installation Files.
Define some global variable in Preprocessor - Multi Build and assign it to corresponding source files
For example,
Variable: srcpath
Setup[default]: c:\Easy Invoice\*.*
Setup[2]: c:\VAT Validator\*.*
Setup[3]: c:\Printer Admin\*.*
Now, insert one Installation Files command with
Source Files as $srcpath$
Some useful links
http://www.createinstall.com/help/how-to-use-if.html
http://www.createinstall.com/help/global-local-variables.html
$varname$ is a global variablewhich you specify in Multi Build
but all other are local variables with #varname# as a value.
Thank you for your help !
Earlier I used another program and yours is much more powerful - love it. Great software.
January 16, 2025 Installer CreateInstall 8.11.1 was released.
June 19, 2024 Installer CreateInstall 8.11.0 was released. read more
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released.
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.