Have fixupunattend check the process, user, and system environment space for value before giving up (MS env handling is madness)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16352 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2a8e95b4e8
commit
784b582b1f
@ -15,6 +15,14 @@ Do While Not netuse.StdOut.AtEndOfStream
|
||||
Loop
|
||||
instdrv = myshell.ExpandEnvironmentStrings ( "%INSTALLTO%" )
|
||||
if InStr(instdrv,"%INSTALLTO%") Then
|
||||
Set myenv=wshShell.Environment("User")
|
||||
instdrv = myenv("INSTALLTO")
|
||||
End If
|
||||
if instdrv = "" Then
|
||||
Set myenv=wshShell.Environment("System")
|
||||
instdrv = myenv("INSTALLTO")
|
||||
End If
|
||||
if instdrv = "" Then
|
||||
instdrv = "0"
|
||||
End If
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user