Wondering whether environment variables set in one task will persist across subsequent tasks?
I'm thinking of creating a task at the start of some packages that set some environment variables based on the hostname of the machine being installed to - and then use those variables in the parameters string of the installation (for example for defining license server names, serial numbers, etc for MapInfo).
E.g. in the first task have a series of IF statements -
IF %COMPUTERNAME%=Computer1 SET MySerial=12345678
IF %COMPUTERNAME%=Computer2 SET MySerial=87654321
Then in a subsequent task, enter %MySerial% into the parameters of the installer where one would normally enter the serial number.
Of course still need to test that the various installers can take environment variables in the parameters - but first step is whether or not the concept itself is doable.
Please sign in to leave a comment.