Krissam Posted March 28, 2004 Share Posted March 28, 2004 @echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExSET INST="D:\_Install"SET APPS="%INST%\Applications"SET DRIVERS="%INST%\Drivers"REG ADD %KEY% /V TITLE /D "Installerer Programmer" /fREG ADD %KEY%\001 /VE /D "Ad-Aware 6" /fREG ADD %KEY%\001 /V 1 /D "%APPS%\Adaware\aaw6.exe /s" /fREG ADD %KEY%\005 /VE /D "Alcohol 120" /fREG ADD %KEY%\005 /V 1 /D "%APPS%\alcohol\trial_setup.msi" /fREG ADD %KEY%\010 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\010 /V 1 /D "%DRIVERS%\dx9ntopk.exe" /fREG ADD %KEY%\015 /VE /D "FlashFXP 2.1" /fREG ADD %KEY%\015 /V 1 /D "%APPS%\flashfxp\flashfxp_21_setup.exe /s" /fREG ADD %KEY%\020 /VE /D "KLite Codecs 2.2.4 Beta" /fREG ADD %KEY%\020 /V 1 /D "%DRIVERS%\klcodec224b.exe /silent" /fREG ADD %KEY%\025 /VE /D "MSN Messenger 6.1" /fREG ADD %KEY%\025 /V 1 /D "%APPS%\MSN\MsnMsgs.msi /QB" /fREG ADD %KEY%\030 /VE /D "MyIE2" /fREG ADD %KEY%\030 /V 1 /D "%INST%\scripts\myie2.vbs" /fREG ADD %KEY%\035 /VE /D ".NET Framework v1.1" /fREG ADD %KEY%\035 /V 1 /D "%APPS%\NetFramework\netfx.msi /qb" /fREG ADD %KEY%\040 /VE /D "Dansk Sprogpakke til .Net" /fREG ADD %KEY%\040 /V 1 /D "%APPS%\NetFramework\langpack.msi /qb" /fREG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.0.0.9" /fREG ADD %KEY%\045 /V 1 /D "%APPS%\nero\nero6303.exe /silent /noreboot /no_ui /sn=1A23-0095-0030-1535-1156-1934 /write_sn" /fREG ADD %KEY%\050 /VE /D "RealAlternate Codec" /fREG ADD %KEY%\050 /V 1 /D "%Drivers%\realalt.exe /silent" /fREG ADD %KEY%\055 /VE /D "SunJava 1.4.2" /fREG ADD %KET%\055 /V 1 /D "%APPS%\SunJava\j2re-1_4_2_03-windows-i586-p.exe /s /v\"/qn ADDLOCAL=jrecore IEXPLORER=1\"" /fREG ADD %KEY%\060 /VE /D "WinRAR 3.30 DK" /fREG ADD %KEY%\060 /V 1 /D "%APPS%\WinRAR\wrar330dk.exe /silent" /fREG ADD %KEY%\065 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\065 /V 1 /D "%APPS%\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\070 /VE /D "Windows XP Hotfixes" /fREG ADD %KEY%\070 /V 1 /D "%INST%\scripts\hotfixes.cmd" /fREG ADD %KEY%\075 /VE /D "Anvender Reg Tweaks"REG ADD %KEY%\075 /V 1 /D "REGEDIT /S %INST%\Misc\tweaks.reg"REG ADD %KEY%\080 /VE /D "Cleaning Up & Rebooting" /fREG ADD %KEY%\080 /V 1 /D "%INST%\scripts\clean.cmd" /fi get "Fejl: Der er for mange kommandolinjeparametre." (Error: There's to many commandline paramterers" or something like that) on all the lines where i give paramters ex.REG ADD %KEY%\001 /V 1 /D "%APPS%\Adaware\aaw6.exe /s" /fREG ADD %KEY%\015 /V 1 /D "%APPS%\flashfxp\flashfxp_21_setup.exe /s" /fetc.can ne1 tell me whats wron Link to comment Share on other sites More sharing options...
Aaron Posted March 28, 2004 Share Posted March 28, 2004 This isn't a problem with RunOnceEx, but a problem in the application itself not allowing the /s switch for some reason.Do you still get the same error when you launch aaw6.exe /s from the Command Prompt? Link to comment Share on other sites More sharing options...
Krissam Posted March 28, 2004 Author Share Posted March 28, 2004 no, the problem seems to be the syntax,i could fix it by making a cmd file for all the programs that would just suck a**, but if ne1 can help me then please do Link to comment Share on other sites More sharing options...
Aaron Posted March 28, 2004 Share Posted March 28, 2004 Odd, RunOnceEx shouldn't be any different from batch files. The problem seems unheard of to me, so I can't help you. Sorry! 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