From 784b582b1f2724b845277d3245d3d52f43943889 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 17 May 2013 13:38:45 +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/trunk@16352 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