Quantcast
Channel: WinBuilder
Viewing all articles
Browse latest Browse all 1056

Disable AutoPlay Script

$
0
0
I had a need to create this script as I could not find out how my builds ended up with AutoPlay being enabled

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_Default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDriveTypeAutoRun,255
RegHiveUnLoad,Tmp_Default
RegHiveLoad,Tmp_Software,%RegSoftware%
RegDelete,HKLM,Tmp_Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDriveTypeAutoRun
If,%version%,Smaller,80,RegWrite,HKLM,0x1,Tmp_Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Else,RegWrite,HKLM,0x0,Tmp_Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
RegHiveUnLoad,Tmp_Software


Viewing all articles
Browse latest Browse all 1056

Trending Articles