From cd354d663420176e5acd3009456414f302239f78 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 17 May 2013 14:28:48 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs b/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs index 6ebcfc105..3080361e4 100644 --- a/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs +++ b/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs @@ -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