Jump to content











- - - - -

Disable AutoPlay Script

win7pese

  • Please log in to reply
No replies to this topic

#1 Guest_Boot_Monkey_*

Guest_Boot_Monkey_*
  • Guests

Posted 05 July 2012 - 04:06 AM

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_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.






Also tagged with one or more of these keywords: win7pese

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users