Jump to content

How to silent a reg file loaded from HKLM\....\run?


Recommended Posts

hi,

i need to silent a reg file and and exe installation

there is a way for to silent this reg file from regedit? :

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"BLABLA"="C:\\WINDOWS\\system\\aaa.reg"

???

another thing, i ve also tryed to put this path in another way:

"BLABLA"="%WINDOWS%\sistem\aaa.reg" doesnt work (doesnt run the file)

and in this way:

"BLABLA"="%systemroot%\system\aaa.reg" doesnt work too

anyway for to silent it i ve tryed:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"BLABLA"="C:\\WINDOWS\\system\\aaa.reg -silent"

but it doesnt work...

where i can find all the switch for this stuff?

I also need to know if in this way there is the possibility of install some programs, and the switch for just load an exe

thanks so much :)

p.s: seaching searching with google but... i didnt find the aswer yet :unsure:

EDIT:

1) The key that i need is RunOnce, because that ll start the file only one time, the Run key start it always, but the problem is the same

2) I know the way of running a batch file that silent a reg file, but i would like to know if it is possible to do it directly :)

thanks again :)

Edited by darafat
Link to comment
Share on other sites


Did you try to load the regfile with the appropriate program?

Regedit /s Regkeyfile.reg

where regkeyfile.reg would be aaa.reg in your case

so for the runonce in the registry:

[HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce]

"BLABLA"="regedit /s regkey.reg"

You also can run executables or batch script from the run or runonce key.

So if you for example would like to run Henk.exe the next time the computer is started you could add this to the registry:

[HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce]

"Henk"="C:\pathto\henk.exe"

Hope this helps

-Henk

Edited by Henkes
Link to comment
Share on other sites

oh man,

it just worked :thumbup

omg it was so simple, just run the correct program as you said :/

i was in the wrong way, because i saw in someg entry that there were some "switch" like -k (What is it? O.o)

for ex: in the "KernelFaultCheck" in the same key it gots:

%systemroot%\system32\dumprep 0 -k O.o

then i was thinking that there were some switch for to silent, somewhere in the web i found the -silent :/

thanks so much :thumbup

Link to comment
Share on other sites

Well switches are different for every executable so it's easy to get 'm mixed up...

Glad I could help!

cheers!

eheh you re right, eheh thanks again.

But i got i problem:

from RunOnceEx adding a key in the HKLM\...\run It works

from RunOnceEx adding a key in the HKLM\...\RunOnce It don't works

Why? Just because before the login, we can't add keys value in the HKLM\...\RunOnce ??

Maybe i can do something like, putting the key in HKLM\...\Run and at the end of the .reg file i ll put a line for to remove this entries. Any other idea?

Thanks so much :thumbup

Link to comment
Share on other sites

eheh,

it is like that. You can not add keys before the login (so with RunOnceEx) in the key HKLM\...\RunOnce :/ , fortunatelly you can add keys in the HKLM\...\Run xD

The confirmed become at the end of the RunOnceEx, then it made the firt logon and i serched the key HKLM\...\RunOnce,

and there were no subkeys.... Then i runned the .reg file that contains the subkeys for that key, and i ve looked again in the HKLM\...\RunOnce: the subkeys there were :rolleyes:

I ve made to work it in this way:

the RunOnceEx run the .reg that contains keys that must be installed after the first login (like to disable the screensaver)

This .reg contains keys for the HKLM\...\Run, who makes to run another reg file who contains the keys for HKLM\...\RunOnce (this file run after the reboot)

Now after the reboot there are key in the RunOnce (who will be delete at next boot), in that key there is a key for to disable the screensaver, and the last key removes the first reg key created in HKLM\...\Run lol

RunOnceEx

REG ADD %KEY%30 /V 4 /D "REGEDIT /S %CDROM%%\Install\RegTweaks\PostRegEntryes.reg" /f

PostRegEntries.reg:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"ForRunOnce"="regedit /s %CDROM%\Install\RegTweaks\forRunOnce.reg"

forRunOnce.reg:

;Disabilita Screen Saver

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"ScreenSaver"="regedit /s %CDROM%\Install\RegTweaks\DisabilitaScreenSaver.reg"

;Disabilita WFP Windows File Protection

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"WFP"="regedit /s %CDROM%\Install\RegTweaks\WindowsFileProtection.reg"

;Remove Run keys

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"ForRunOnce"=-

;Shutdown

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"ZShutdown"="%CDROM%\Install\shutdown.exe"

The file DisabilitaScreenSaver.reg:

;Disabilita screen saver

[HKEY_CURRENT_USER\Control Panel\Desktop]

"ScreenSaveActive"="0"

[HKEY_CURRENT_USER\Control Panel\Desktop]

"SCRNSAVE.EXE"=""

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]

"ScreenSaveActive"="0"

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]

"SCRNSAVE.EXE"=""

Before was not working, there were always the screensaver not disabled -.-

Now it works :thumbup

I hope that will help someone.

p.s: if i made errors is because here now it's 4 am xD

Edited by darafat
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...