/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


How to Give a check condition in InstallShield 2012?

07/03/2013 4384 views

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

 

 

 

Answer Summary:
1 Comment   [ + ] Show comment

Comments

  • 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..

All 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.

Answered 08/27/2013 by: cne9999
Senior Yellow Belt

 
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