Jump to content

how to make a reg file to run first..


Recommended Posts

how to make a reg file to run first before RunOnceEx.cmd

becouse of the security warning...

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download]

"CheckExeSignatures"="no"

"RunInvalidSignatures"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{11D31951-7848-48E3-89C2-6762AF05C427}User\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]

"SaveZoneInformation"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]

"LowRiskFileTypes"=".exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;"

and should this reg file go here $$_system32

Link to comment
Share on other sites


You can try importing your reg file from cmdlines.txt:

Place your reg file in $OEM$

make a new text file named cmdlines.txt in $OEM$ and place this in the file:

[Commands]
"regedit /s regfile.reg"

At around T-13 during setup, the commands in cmdlines.txt will be executed; this is well before RunOnceEx entries are executed.

Link to comment
Share on other sites

You can try importing your reg file from cmdlines.txt:

Place your reg file in $OEM$

make a new text file named cmdlines.txt in $OEM$ and place this in the file:

[Commands]
"regedit /s regfile.reg"

At around T-13 during setup, the commands in cmdlines.txt will be executed; this is well before RunOnceEx entries are executed.

like this?

cmdlines.txt

[COMMANDS]

"regedit /s regfile.reg"

"RunOnceEx.cmd"

can i have both off them in same file..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...