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/branches/2.8@16354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-05-17 14:28:48 +00:00
parent 5562af5751
commit cd354d6634

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