Jump to content

Help with RunOnceEx


Recommended Posts


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 by Xeijin
Link to comment
Share on other sites

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%\X
to:
%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

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 :P

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

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 output

REG ADD %KEY /V
REG ADD %KEY%01 /V
REG ADD %KEY%02 /V
REG ADD %KEY%03 /V

instead of

REG ADD %KEY%\000 /V
REG ADD %KEY%\001 /V
REG ADD %KEY%\002 /V
REG ADD %KEY%\003 /V

go figure...

Link to comment
Share on other sites

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

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

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...