this is my GuiRunOnce: [GUIRunOnce] command1 = "%SystemDrive%\D\BTS_DPs_finish.cmd" command2 = "%systemroot%\system32\wpi.cmd" command3 = "%systemroot%\system32\regs.cmd" wpi.cmd is pretty much the standard WPI script: @ECHO OFF REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD. for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WPI.ico set CDROM=%%i: echo Found CD-Rom as drive %CDROM% REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%. set wpipath=%cdrom%\WPI_v4.3.8\ REM Hide this command window. %wpipath%Tools\cmdow.exe @ /hid REM Special registry tweak needed. regedit /s %wpipath%common\wpi.reg REM Make WPI directory the current directory. cd /d "%wpipath%" REM Start WPI and wait for its end wpi.hta REM Undo registry tweak. regedit /s %wpipath%common\undo.reg exit :end wpi.reg: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles] "MaxScriptStatements"=dword:ffffffff [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download] "CheckExeSignatures"="no" "RunInvalidSignatures"=dword:00000001 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments] "SaveZoneInformation"=dword:00000001 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] "LowRiskFileTypes"=".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov ;.mp3;.m3u;.wav;" undo.reg: Windows Registry Editor Version 5.00 [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] regs.cmd: @ECHO OFF REM Local Machine reg tweaks regedit /s %systemdrive%\HKLM.reg REM Current User Reg Tweaks regedit /s %systemdrive%\HKCU.reg exit :end HKLM.reg: Windows Registry Editor Version 5.00 ;----------------------- ;Operating System Tweaks ;----------------------- ;Speed up shutdown [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "WaitToKillServiceTimeout"="3000" ;Disables Error Reporting, but notifies when errors occur [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting] "DoReport"=dword:00000000 ;Do not use Simple File Sharing [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] "forceguest"=dword:00000000 HKCU.reg: Windows Registry Editor Version 5.00 ;---------------------------------------------- ;Tweaks to improve the functionality of Windows ;---------------------------------------------- ;Disable the Desktop Cleanup Wizard [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz] "NoRun"=dword:00000001 ;Change MenuShowDelay (Start Menu load speed) [HKEY_CURRENT_USER\Control Panel\Desktop] "MenuShowDelay"="200" ;Disable Recent Documents Menu [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoRecentDocsMenu"=hex:01,00,00,00 ;Remove "Shortcut to" on shortcuts [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] "link"=hex:00,00,00,00 ;Remove "set programs default" from startmenu [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoSMConfigurePrograms"=dword:00000001