darafat Posted August 13, 2007 Posted August 13, 2007 (edited) hi,i need to silent a reg file and and exe installationthere 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 tooanyway 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 exethanks so much p.s: seaching searching with google but... i didnt find the aswer yet 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 same2) 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 August 13, 2007 by darafat
Henkes Posted August 13, 2007 Posted August 13, 2007 (edited) Did you try to load the regfile with the appropriate program?Regedit /s Regkeyfile.regwhere regkeyfile.reg would be aaa.reg in your caseso 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 August 13, 2007 by Henkes
darafat Posted August 13, 2007 Author Posted August 13, 2007 oh man,it just worked 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.othen i was thinking that there were some switch for to silent, somewhere in the web i found the -silent :/thanks so much
Henkes Posted August 13, 2007 Posted August 13, 2007 Well switches are different for every executable so it's easy to get 'm mixed up...Glad I could help!cheers!
darafat Posted August 14, 2007 Author Posted August 14, 2007 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 worksfrom RunOnceEx adding a key in the HKLM\...\RunOnce It don't worksWhy? 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
darafat Posted August 15, 2007 Author Posted August 15, 2007 (edited) 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 xDThe 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 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 RunOnceExREG ADD %KEY%30 /V 4 /D "REGEDIT /S %CDROM%%\Install\RegTweaks\PostRegEntryes.reg" /fPostRegEntries.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 I hope that will help someone.p.s: if i made errors is because here now it's 4 am xD Edited August 15, 2007 by darafat
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now