Autodesk 22906-010000-9325 Network Guide - Page 58

Appendix A, Use Scripts to Deploy the Program, For Single Network License Server

Page 58 highlights

' ' Source to install from (e.g. D: is assumed to be Install Media) strSourcePath = "D:\" ' ' Destination to install to strADSKPath = Shell.ExpandEnvironmentStrings("%ProgramFiles%") + "\" + "AutoCAD 2010" If strLocale "" Then strADSKPath = strADSKPath + " " + strLocale strADSKPath = strADSKPath + "\" '''''' Uncomment the relevant version of your installation - De fault is Standalone ' For Standalone RunStandaloneInstall() ' ' For Single Network License Server 'RunSingleLicenseServerInstall() ' ' End of Script Wscript.quit() ' Function RunStandaloneInstall shell.run DefaultCommand(),2,1 end function ' Function RunSingleLicenseServerInstall ' Update with the correct information for the license server strACADStandaloneNetworkType = "3" strADSKLicenseServerType = "Single Server License" strADSKLicenseType = "Network License" strADSKServerPath = "myFlexNetServer" ' HOSTID or MAC address strADSKServerHOSTID = "000000000000" ' ' Consolidate the two values strADSKServerPath = strADSKServerPath & " " & strADSKServerHOSTID shell.run MakeCommand(),2,1 end function ' 52 | Appendix A Use Scripts to Deploy the Program

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104

'
' Source to install from (e.g. D: is assumed to be Install Media)
strSourcePath = "D:\"
'
' Destination to install to
strADSKPath = Shell.ExpandEnvironmentStrings("%ProgramFiles%")
+
"\" + "AutoCAD 2010"
If strLocale <> "" Then strADSKPath = strADSKPath + " " + strLocale
strADSKPath = strADSKPath + "\"
'''''' Uncomment the relevant version of your installation - De
fault is Standalone
' For Standalone
RunStandaloneInstall()
'
' For Single Network License Server
'RunSingleLicenseServerInstall()
'
' End of Script
Wscript.quit()
'
Function RunStandaloneInstall
shell.run DefaultCommand(),2,1
end function
'
Function RunSingleLicenseServerInstall
' Update with the correct information for the license server
strACADStandaloneNetworkType = "3"
strADSKLicenseServerType = "Single Server License"
strADSKLicenseType = "Network License"
strADSKServerPath = "myFlexNetServer"
' HOSTID or MAC address
strADSKServerHOSTID = "000000000000"
'
' Consolidate the two values
strADSKServerPath = strADSKServerPath & " " & strADSKServerHOSTID
shell.run MakeCommand(),2,1
end function
'
52
| Appendix A
Use Scripts to Deploy the Program