remming out that line seems to work OK
Is it still set to 1 in the running PE registry at boot? That is needed for loading certain services at boot. It is usually done in PECMD.ini and not from within a plugin.
An example from a XPE PECMD.ini
Code:
////////////////////////////////////////////////////////////////////////////////////////////////
_SUB NetInit
REGI #HKLM\SYSTEM\Setup\SystemSetupInProgress=0
EXEC !=%WinDir%\System32\Net.exe Start netprofm
REGI #HKLM\SYSTEM\Setup\SystemSetupInProgress=1
// Load Network drivers at startup
I would say maybe change it for when the service starts. I dont fully understand what was done for this plugin but it appears it can be done in the batch section. (if it is needed)
Change this..
Code:
Set,%IPD%,%Gtarget_Sys%\InstallPrintDriver.cmd
If,Not,ExistFile,%IPD%,FileCreateBlank,%IPD%
TXTAddLine,%IPD%,"@Echo Off",APPEND
TXTAddLine,%IPD%,"X:\windows\system32\wbem\mofcomp.exe X:\windows\system32\wbem\win32_printer.mof",APPEND
TXTAddLine,%IPD%,"X:\windows\system32\wbem\mofcomp.exe X:\windows\system32\wbem\PrintManagementProvider.mof",APPEND
TXTAddLine,%IPD%,"net start spooler",APPEND
TXTAddLine,%IPD%,"PnPutil.exe -i -a #$pWindir#$p\inf\usbprint.inf",APPEND
TXTAddLine,%IPD%,"timeout /t 135 >nul",APPEND
TXTAddLine,%IPD%,"drvload.exe #$pWindir#$p\inf\printqueue.inf",APPEND
TXTAddLine,%IPD%,Exit,APPEND
To this..
Code:
Set,%IPD%,%Gtarget_Sys%\InstallPrintDriver.cmd
If,Not,ExistFile,%IPD%,FileCreateBlank,%IPD%
TXTAddLine,%IPD%,"@Echo Off",APPEND
TXTAddLine,%IPD%,"X:\windows\system32\wbem\mofcomp.exe X:\windows\system32\wbem\win32_printer.mof",APPEND
TXTAddLine,%IPD%,"X:\windows\system32\wbem\mofcomp.exe X:\windows\system32\wbem\PrintManagementProvider.mof",APPEND
TXTAddLine,%IPD%,"REG ADD HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 0 /f",APPEND
TXTAddLine,%IPD%,"net start spooler",APPEND
TXTAddLine,%IPD%,"PnPutil.exe -i -a #$pWindir#$p\inf\usbprint.inf",APPEND
TXTAddLine,%IPD%,"timeout /t 135 >nul",APPEND
TXTAddLine,%IPD%,"drvload.exe #$pWindir#$p\inf\printqueue.inf",APPEND
TXTAddLine,%IPD%,"REG ADD HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 1 /f",APPEND
TXTAddLine,%IPD%,Exit,APPEND