How to Give a check condition in InstallShield 2012?
I am trying to add diiferrent registries for different computernames
If computer name starts with A001---> add reg x
If computer name starts with A002---> add reg y
How ca that be done.
Thanks
-
Use system search to get the computer name..ie read the env variable.. then use a vb script to write registry depending on the computer name.. - ZODvk 11 years ago
Answers (1)
The best method is always to go native.
Create two components with your own naming convention. For example:
A001RegistryData – containing the registry data for A001 computers
A002RegistryData – containing the registry data for A002 computers
Create a condition on each as follows:
For the component named A001RegistryData
Put a condition of: ComputerName << A001
-------------------------------------------------- -
For the component named A002RegistryData
Put a condition of: ComputerName << A002
-------------------------------------------------- -
<< means the left string starts with the right string.
This is a native method that requires no scripting, custom actions and is simple to do and
Should work fine.
Bill
BTW: ComputerName is a standard MSI private property, no system search required.