Hello Andy and welcome to our forums,
Thank you for your interest in Advanced Installer.
In order to change an installer property value you can use our predefined
Set installer property custom action from the
Custom actions page.
Please note that are predefined properties which you can use in order to see if the target machine Operating System is on
32 bit or on 64 bit.
So, the installer sets the
VersionNT64 property only if the system is running on a 64-bit computer. The property is undefined if the operating system is not 64-bit so you can use for the 32-bit computer something like
NOT VersionNT64.
Please note that the
Value field from the
Environment variable dialog is of
Formatted data data type so you can use a property in this field.
e.g. you can define a property in the
Install parameters page. (e.g.
osBitProp) with the
64Bit value.
Then, you can go in the
Environment page you can define your
environment variable like that:
Name: osBit
Value: [osBitProp]
So, on the 64-bit machine you will property create the environment variable with the according value, but this is not correct for the 32-bit machines.
In order to prevent this, you can go in the
Custom Actions page and add our predefined
Set installer property custom action
with sequence and set the
osBitProp property with the
32Bit value.
So you can have the
Set installer properties custom action's properties like that:
-Property: osBitProp
-Value: 32Bit
and add in the
Condition field the
NOT VersionNT64 argument in order to change the property's value just for 32-Bit machines.
Please let us know if that helped.
Best regards,
Dan