Xeijin Posted February 4, 2007 Share Posted February 4, 2007 (edited) --- Edited February 10, 2018 by Xeijin Link to comment Share on other sites More sharing options...
Yzöwl Posted February 4, 2007 Share Posted February 4, 2007 From line 14 onwards, change:REG ADD %KEY%0nto:REG ADD %KEY%\0n Link to comment Share on other sites More sharing options...
Xeijin Posted February 4, 2007 Author Share Posted February 4, 2007 (edited) Hi Yzowl,My RunOnceEx.cmd already has the backslashes in the correct places, it seems that the Invision Board is parsing them or something??Anyway, I've attached my RunOnceEx.cmd as a txt file incase anyone wants to take a look. (See Original Post for Attachment)// Xeijin Edited February 4, 2007 by Xeijin Link to comment Share on other sites More sharing options...
Yzöwl Posted February 4, 2007 Share Posted February 4, 2007 First of all I hope that isn't a genuine serial number for Nero in your attachment.Secondly at lines 14 to 36 (incl), change:%PP%\Xto:%PP%X<Edit>If you prefer, I have included an example, which should correct the majority of your problems!@SETLOCAL@FOR %%? IN (CMDOW.EXE) DO @IF "%%~$PATH:?" NEQ "" (@%%~$PATH:? @ /HID) ELSE ( @ECHO OFF &SET "_=^>NUL")SET "PP=%SYSTEMDRIVE%\INSTALL"SET "KEY=HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNONCEEX"REG ADD %KEY% /V TITLE /D "Installing Applications"%_%REG ADD %KEY%\000 /VE /D "Symantec AntiVirus Corporate"%_%REG ADD %KEY%\000 /V 1 /D "%PP%\SAV\SAV.msi /QB!- RUNLIVEUPDATE=0 RUNSCAN=0 SYMPROTECTDISABLED=0 ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient"%_%REG ADD %KEY%\001 /VE /D "Updating Symantec AntiVirus"%_%REG ADD %KEY%\001 /V 1 /D "\"%PROGRAMFILES%\SYMANTEC ANTIVIRUS\VPDN_LU.EXE\" /S"%_%REG ADD %KEY%\002 /VE /D "Nero 7 Lite"%_%REG ADD %KEY%\002 /V 1 /D "%PP%\NERO\NERO_7751_ENGLISH_LITE.EXE /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LANG=ENGLISH /USER=\"Hassan Dar\" /COMPANY=\"X E I J I N | org\" /SERIAL=\"nnnn-nnnn-nnnn-nnnn-nnnn-nnnn-nnnn\""%_%REG ADD %KEY%\003 /VE /D "Mozilla FireFox"%_%REG ADD %KEY%\003 /V 1 /D "%PP%\FIREFOX\SETUP.EXE -ms"%_%REG ADD %KEY%\004 /VE /D "LimeWire Pro"%_%REG ADD %KEY%\004 /V 1 /D "%PP%\LIMEWIREPRO\LIMEWIREWIN.EXE /S"%_%REG ADD %KEY%\004 /V 2 /D "TASKKILL /F /IM LIMEWIRE.EXE"%_%REG ADD %KEY%\005 /VE /D "nVidia PureVideo Decoder"%_%REG ADD %KEY%\005 /V 1 /D "%PP%\PUREVIDEO\SETUP.EXE /S"%_%REG ADD %KEY%\006 /VE /D "uTorrent"%_%REG ADD %KEY%\006 /V 1 /D "%PP%\UTORRENT\UTORRENT_16.EXE /S"%_%REG ADD %KEY%\007 /VE /D "XPlay"%_%REG ADD %KEY%\007 /V 1 /D "%PP%\XPLAY\XPLAY.1033.MSI /quiet /norestart"%_%REG ADD %KEY%\008 /VE /D "Registering XPlay"%_%REG ADD %KEY%\008 /V 1 /D "REGEDIT /S %PP%\XPLAY\REGISTRATION\XPLAY.REG"%_%I say majority because, I have not looked at the correctness of your switches, just syntax errors within them.</Edit> Link to comment Share on other sites More sharing options...
Xeijin Posted February 4, 2007 Author Share Posted February 4, 2007 Oops, thanks for the heads up Yzowl, it seems I forgot to take it out, luckily it only had 1 download, so I guess your the only one that has it Thanks I'll try that a bit later on and get back to you, I'm using the RunOnceEx CMD Creator program so it's all been generated. I'll try your new and improved script however and get back to you!Thanks,// Xeijin Link to comment Share on other sites More sharing options...
Yzöwl Posted February 4, 2007 Share Posted February 4, 2007 Oops, I made a little error too!I forgot about the same unwanted code changes made by the forum software as already mentioned earlier in the thread.Its fixed in the previous post, but basically for any onlookers, what was happeninig was the following outputREG ADD %KEY /VREG ADD %KEY%01 /VREG ADD %KEY%02 /VREG ADD %KEY%03 /Vinstead ofREG ADD %KEY%\000 /VREG ADD %KEY%\001 /VREG ADD %KEY%\002 /VREG ADD %KEY%\003 /Vgo figure... Link to comment Share on other sites More sharing options...
Xeijin Posted February 5, 2007 Author Share Posted February 5, 2007 Yeah was just about to mention that, all good now though I've narrowed the problem down to nero now, I had a hunch as nero was the last program that came up in the window when installing the apps. So REM'd out the lines that install nero in RunOnceEx and hey presto everything else suddenly appeared.I thought it might have been a problem with the switches, that I'd made a mistake somewhere, but I don't think this is the case. I tried starting the installation from a cmd window using the exact same set of switches as in RunOnceEx.cmd (copied and pasted the nero bit) and it installed perfectly silently, but won't do the same thing when running from RunOnceEx! Link to comment Share on other sites More sharing options...
Yzöwl Posted February 6, 2007 Share Posted February 6, 2007 Well, if you really are using:/COMPANY=\"X E I J I N | org\"for a company name then that'll be your problem. The cmd interpreter will need your pipe symbol escaping:/COMPANY=\"X E I J I N ^| org\" Link to comment Share on other sites More sharing options...
Xeijin Posted February 9, 2007 Author Share Posted February 9, 2007 Sorry only just got to try this, thanks again yzowl its all working now! 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