ON ERROR RESUME NEXT
'Joe Ostrander '2012.02.18 strServer = "yourserver.yourcompany.com" strSerial = "123-12345678" strProductKey = "123d1" SourceDir = replace(WScript.ScriptFullName,WScript.ScriptName,"") strRegVal = "REG.EXE ADD ""HKCU\Software\Autodesk\Moldflow Adviser\2012\Preferences\Internet"" /v AutoUpdate /t REG_DWORD /d 0" strCMD = Chr(34) & SourceDir & "amapc.exe"" /sn=""" & strSerial & """ /pk=""" & strProductKey & """ /license=""network"" /networks=""" & strServer & """ /installnlm=""no"" /eulalang=""enu"" /verysilent" Set WshShell = CreateObject("WScript.Shell") Set fso = CreateObject("Scripting.FileSystemObject") 'If running 32bit, relaunch 64bit... so we edit 64bit registry If fso.FileExists("c:\windows\sysnative\wscript.exe") Then '32 on 64...relaunch WshShell.run "c:\windows\sysnative\wscript.exe //nologo " & Chr(34) & wscript.scriptfullname & Chr(34),,True Wscript.quit End If 'Disable Updates using (HKCU setting) using Active Setup WshShell.Run strCMD,0,True WshShell.RegWrite "HKLM\Software\Microsoft\Active Setup\Installed Components\GracoMoldFlowUpdatesOff\StubPath",strRegVal WshShell.RegWrite "HKLM\Software\Microsoft\Active Setup\Installed Components\GracoMoldFlowUpdatesOff\Version","1"
amapc.exe /sn="123-12345678" /pk="123d1" /license="network" /networks="yourserver.yourcompany.com" /installnlm="no" /eulalang="enu" /verysilent
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.