Code: Select all
Function set_hostname()
Set wshShell = CreateObject( "WScript.Shell" )
strComputerName = Session.Property("ProductVersion")
- Attached File: PATH TO VB.SCRIPT
- File Type: Visual Basic Script (.vbs)
- Function: set_hostname
- Action data: [|ProductVersion]
- Execution Time: When the system is being modified (deferred)
- Execution Options: Run under LocalSystem Account... AND Wait for custom action to finish before proceeding
- Execution Stage Condition: Install
FOLLOW US
Get the latest news in Application Packaging