GuuZ Posted May 5, 2004 Share Posted May 5, 2004 For some reason everywhere I specify the command "regedit /s regfile.reg" from RunOnceEx it doesn't get executed while the rest does.I'll post most of the files I'm using here, PLEASE READ FURTHER BELOW THEM!!!$OEM$\cmdlines.txt[COMMANDS]"useraccounts.cmd""ProgramFiles.cmd""RunOnceEx.cmd"$OEM$\ProgramFiles.cmdcmdow @ /HID@echo off RRC search /text="%ProgramFiles%" /replace="C:\Program Files" /data /nopromptregedit /s D-schijf.reg$OEM$\D-schijf.reg -> Gets Inserted!Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]"ProgramFilesDir"="d:\\Applications""ProgramFilesPath"="%ProgramFiles%"$OEM$\RunOnceEx.cmdcmdow @ /HID@echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\001 /VE /D "Preparing Installation" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\prepare.cmd" /f REG ADD %KEY%\005 /VE /D "Abit EQ" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\AbitEQ\Setup.exe -s" /f REG ADD %KEY%\010 /VE /D "Adobe Reader 6.0" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\AdobeReader\Adobe_Reader_6.0.1.msi /qn" /f REG ADD %KEY%\015 /VE /D "BSPlayer" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\BSPlayer\bsplayer100.808.exe /S" /f REG ADD %KEY%\020 /VE /D "Daemon Tools" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\DaemonTools\daemon.msi Reboot=Suppress /qn" /f REG ADD %KEY%\025 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\Install\DirectX\DX9NTopk.exe" /f REG ADD %KEY%\030 /VE /D "FlashFXP 2.1" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\Install\FlashFXP\FlashFXP_21_Setup.exe /S" /f REG ADD %KEY%\035 /VE /D "GetDiz" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\Install\Getdiz\Getdiz.cmd" /f REG ADD %KEY%\040 /VE /D "Microsoft Java VM" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\Install\JavaVM\MSJavx86_3809full.exe /Q:A /R:N" /fREG ADD %KEY%\040 /V 2 /D "%systemdrive%\Install\JavaVM\MSJavx86_3810update.exe /Q:A /R:N" /f REG ADD %KEY%\045 /VE /D "Microsoft Office 2003" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\Install\Office2k3\setup.exe TRANSFORMS=UNATTENDED.MST /qb-" /f REG ADD %KEY%\050 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\MSNMessenger\MsnMsgs.msi /qn" /f REG ADD %KEY%\055 /VE /D "mIRC" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\Install\mirc\mirc.cmd" /f REG ADD %KEY%\060 /VE /D "Nero Burning Rom" /fREG ADD %KEY%\060 /V 1 /D "regedit /s %systemdrive%\Install\Nero\nero.reg" /fREG ADD %KEY%\060 /V 2 /D "%systemdrive%\Install\Nero\nero6316.exe /silent /noreboot" /f REG ADD %KEY%\110 /VE /D "Finalizing Installation" /fREG ADD %KEY%\110 /V 1 /D "%systemdrive%\Install\finalize.cmd" /f$OEM$\$1\Install\GetDiz\Getdiz.cmdcmdow @ /HID@echo off md d:\Applications\GetDizxcopy Files\*.* d:\Applications\GetDiz\*.* /e /h /yregedit /s getdiz.reg$OEM$\$1\Install\GetDiz\Getdiz.reg -> Does NOT get inserted!Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.diz]@="GetDiz.Document" [HKEY_CLASSES_ROOT\.nfo]@="GetDiz.Document" [HKEY_CLASSES_ROOT\Applications\GetDiz.exe] [HKEY_CLASSES_ROOT\Applications\GetDiz.exe\shell] [HKEY_CLASSES_ROOT\Applications\GetDiz.exe\shell\open] [HKEY_CLASSES_ROOT\Applications\GetDiz.exe\shell\open\command]@="\"D:\\Applications\\GetDiz\\GetDiz.exe\" \"%1\"" [HKEY_CLASSES_ROOT\GetDiz.Document]@="GetDiz Document" [HKEY_CLASSES_ROOT\GetDiz.Document\shell] [HKEY_CLASSES_ROOT\GetDiz.Document\shell\open] [HKEY_CLASSES_ROOT\GetDiz.Document\shell\open\command]@="\"D:\\Applications\\GetDiz\\GetDiz.exe\" \"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]"MSI Console"="Msifont.fon"$OEM$\$1\Install\mirc\mirc.cmdcmdow @ /HID@echo off md d:\Applications\mIRCxcopy Files\*.* d:\Applications\mIRC\*.* /e /h /yregedit /s mirc.reg$OEM$\$1\Install\mirc\mirc.reg -> Does NOT get inserted!Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\mIRC\License]@="xxx-xxxxxx" [HKEY_CURRENT_USER\Software\mIRC\UserName]@="GuuZ"$OEM$\$1\Install\Nero\nero.reg -> Does NOT get inserted![HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]"User"="Daniël van den Bosch""Company"="GuuZ Productions""Serial6"="xxxx-xxxx-xxxx-xxxx-xxxx"Ok! As you can see the first reg file that I call from cmdlines.txt gets inserted perfectly! No Problem there!!!Now in RunOnceEx.cmd I call a few .cmd files, they all get executed perfectly except for the regedit command. You could almost say it ignores the regedit commands. Same for the ner.reg I call straight from RunOnceEx.cmd doesn;t get inserted either.My first thought: regedit.exe doesn't excist yet. Well it has to excist else it wasn't able to import my very first regfile called from cmdlines.txt/me crys for helpI hope you guys can help me Link to comment Share on other sites More sharing options...
kenedy Posted May 5, 2004 Share Posted May 5, 2004 How about modifying the file to something like this:cmdow @ /HID@echo on md d:\Applications\GetDizxcopy Files\*.* d:\Applications\GetDiz\*.* /e /h /yregedit /s getdiz.regpauseNote "echo on" and "pause"Then you would see what happens at that moment.My guess - use full pathnames. Link to comment Share on other sites More sharing options...
GuuZ Posted May 5, 2004 Author Share Posted May 5, 2004 How about modifying the file to something like this:cmdow @ /HID@echo onmd d:\Applications\GetDizxcopy Files\*.* d:\Applications\GetDiz\*.* /e /h /yregedit /s getdiz.regpauseNote "echo on" and "pause"Then you would see what happens at that moment.My guess - use full pathnames.trying now thanx for the reply Link to comment Share on other sites More sharing options...
GuuZ Posted May 5, 2004 Author Share Posted May 5, 2004 Well I just tryed... It didn't give an error or something. Just looked like normal, but it still didn't get imported :@btw, how can I use full paths? Dos doesn't support vars like %systemdrive% and %systemroot% Link to comment Share on other sites More sharing options...
kenedy Posted May 5, 2004 Share Posted May 5, 2004 No error becouse of /s switch. Try to remove it.How about adding all the registry entries to 1st file and deleting all other .reg files? Link to comment Share on other sites More sharing options...
GuuZ Posted May 5, 2004 Author Share Posted May 5, 2004 looks like dos DOES support %systemdrive% and %systemroot% so I'm now trying with full pathnames.. see if that helpes. Link to comment Share on other sites More sharing options...
GuuZ Posted May 5, 2004 Author Share Posted May 5, 2004 Full Pathnames did work Thanx a lot m8 Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted May 5, 2004 Share Posted May 5, 2004 OR:When a batch file calls a file within the same folder, you can also use .\file_in_same_folder.xyz Link to comment Share on other sites More sharing options...
GuuZ Posted May 5, 2004 Author Share Posted May 5, 2004 OR:When a batch file calls a file within the same folder, you can also use .\file_in_same_folder.xyzWell probarly that wouldn't work either because you also can't name the file without any folder. This is probarly because it sets a total different default folder when executing from the RunOnceEX menu Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now