Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS installer and parsing environmental variables 1

Status
Not open for further replies.

kcstart

Technical User
Nov 6, 2000
1
US
I am attempting to install Citrix on NT4 machines using the SMSinstaller package to build the executable. The Citrix install asks for the machine name and places it in an ini file on the c:\ drive. How do you modify the SMS script to parse the machine name and then modify the ini file to use this parsed variable? Any help would be greatly appreciated.
 
You can use SMS Installer to pull the machine name from the registry and then place it into the INI file. Is this what you're looking for? The following SMS Installer script will do this:

item: Set Variable
Variable=ROOT
Value=C:end
item: Get Registry Key Value
Variable=COMPUTERNAME
Key=SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
Value Name=ComputerName
Flags=00000100
end
item: Edit INI File
Pathname=%ROOT%Test.INI
Settings=[INI_Section]
Settings=CurrentComputer = %COMPUTERNAME%
Settings=
end

Rod Trent
Microsoft SMS Installer ISBN:0072124474
Admin911:SMS ISBN:0072130229
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top