cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbarton11
Level 5

Assigning Environment Variable to Property

Hi All,

I have an installer that is working well, would like to make a slight addition to it. I would like to obtain the COMPUTERNAME environment variable and assign it to IS_SQLSERVER_SERVER by default unless the user changes the server manually during the install. This would also apply to a silent install so that it would default to the current computername for the IS_SQLSERVER_SERVER public property so the installer would not have to include that unless they are making a different server the SQL server.

Is there a way to accomplish this? I was able to get the environment variable in my script but not sure how to assign it to IS_SQLSERVER_SERVER.

Thanks!
Labels (1)
0 Kudos
(1) Reply
TsungH
Level 12

To get value of an environment variable in MSI project types, please refer to Formatted. And you can have a custom action to set property's value.
0 Kudos