/build/static/layout/Breadcrumb_cap_w.png

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

 

 

 


1 Comment   [ + ] Show comment
  • 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)

Answer Summary:
Posted by: cne9999 11 years ago
Senior Yellow Belt
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.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ