randalldale Posted March 9, 2007 Posted March 9, 2007 Ok Guys,I'm in the process of converting my old unattended XP SP2 install from WinPE 1.6 to WinPE 2.0 and it appears that the 'C:\i386\winnt32 /syspart:c: /tempdrive:c: /Unattend:C:\$OEM$\unattend.txt' after conversion no longer reboots the PC and begins the install.Previous solutions worked very well but with Vista on the horizon I needed to get into the new century and quit using batch files and switch to HTA files. Ok sothe batch files run in the back ground still To preface I want to say that I'm calling HTA files and using VBScripts so that the user interface is more pleasant and getting ready for a Vista deployment.Installation goes like this.1) Boot to DVD2) WinPE 2.0 loads and calls begin.hta3) Begin.hta request user input for end user name and pc name4) Then I dynamically create the unattend.txt file, copy some drivers and the i386.5) last thing is the switch (c:\i386\winnt32 /syspart:c: /tempdrive:c: /Unattend:C:\$OEM$\unattend.txt)Now in WinPE 1.6 when this switch was called the system rebooted and started the install.In WinPE 2.0 it ain't happen.... Tell me what I've missed guys or gals...I've tried adding shutdown.exe -r -f to the batch file. I've also used a VBScript inside my HTA file of objWShell.Run("cmd.exe shutdown.exe -r -f), 0I've also tried objWShell.SendKeys "exit" ..... I'm lost
Jazkal Posted March 9, 2007 Posted March 9, 2007 add this to the end of your script, right after your winnt32 setup command:Wpeutil.exe Restart
randalldale Posted March 9, 2007 Author Posted March 9, 2007 Actually had just found wpeutil while browsing the winpe boot command window and did a wpeutil /? to discover 'reboot', testing it right now.Oh and FYI 'restart' is not a command but instead need to use 'reboot' still thought you were right on with wpeutil.exe thanks. I will post the results.
randalldale Posted March 9, 2007 Author Posted March 9, 2007 FYI everyone I also added some scripting if anyone was looking for some addtional help'wpeutil.exe reboot' command inside your batch file will reboot WinPE 2.0 when you are done copying files.If anyone is interested you can also call wpeutil using vbs with the following line.<script language="vbscript" type="text/vbscript"> function abort() set objWShell = CreateObject("WScript.Shell") objWShell.Run ("wpeutil reboot") end Function</script>This line you can use if you need an exit from your HTA files with say a 'Reboot' or 'Abort' button. Just call the function with your onselect button. example: <input class="quitButton" type="button" name="quitButton" value="Abort" onclick="abort()"></td>most of all thanks again 'JazKal' and everyone else that has been so helpful.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now