WinBuilder Version: 082
Source I used: Windows 7 32Bit Enterprise
Project Used: Win7PE SE
Does it work on other projects? Have no idea
I place this script in a folder I call "Last_Run" and I make it for all the script that I need to run last
As you can see it's runs at level 6. So make a folder and call it what you want and place this script in that folder.
[main] Title=Disable AutoPlay Description=Disables AutoPlay Selected=True Level=6 Version=1 NoWarning=False Download_Level=1 Author=Boot_Monkey Contact= Credits= ChrisR, Nuno Brito and all the main devs that make Winbuilder such a great tool. Date=04/07/2012 [Process] Echo,"Importing Registry Entries ..." RegHiveLoad,Tmp_Default,%RegDefault% RegWrite,HKLM,0x4,Tmp_DefaultSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer,NoDriveTypeAutoRun,255 RegHiveUnLoad,Tmp_Default RegHiveLoad,Tmp_Software,%RegSoftware% RegDelete,HKLM,Tmp_SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer,NoDriveTypeAutoRun If,%version%,Smaller,80,RegWrite,HKLM,0x1,Tmp_SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer Else,RegWrite,HKLM,0x0,Tmp_SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer RegHiveUnLoad,Tmp_Software
Edited by Boot_Monkey, 05 July 2012 - 04:07 AM.