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:
jbjohnso 2013-05-17 13:38:45 +00:00
parent 2a8e95b4e8
commit 784b582b1f

View File

@ -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