/build/static/layout/Breadcrumb_cap_w.png
07/03/2013 4280 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