Jump to content

Problem with my RunOnceEx file


Recommended Posts

G'day everyone,

So I'm basically finished my unattended installation and you guys have been a great help. Only have a few small problem left to debug, and here is one of them.

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "kemicalXP Automatic Program Installaion" /f

REG ADD %KEY%\001 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"\" /f

REG ADD %KEY%\002 /VE /D "Microsoft JavaVM" /f

REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\JavaVM\MSJavx86_3809full.exe /Q:A /R:N" /f

REG ADD %KEY%\002 /V 2 /D "%systemdrive%\install\JavaVM\MSJavx86_3810update.exe /Q:A /R:N" /f

REG ADD %KEY%\003 /VE /D "Lavasoft Ad-Aware 6" /f

REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\Applications\AdAware\aaw6.exe /s" /f

REG ADD %KEY%\004 /VE /D "Kazza Lite 2.43" /f

REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\Applications\KazaaLite\klitekpp243e.exe /silent" /f

REG ADD %KEY%\005 /VE /D "MSN Messenger" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\006 /VE /D "WinRAR 3.00" /f

REG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar300.exe /s" /f

REG ADD %KEY%\007 /VE /D "Windows Media Player" /f

REG ADD %KEY%\007 /V 1 /D "%systemdrive%\install\hotfixes\Q817787.EXE /Q:A /R:N" /f

REG ADD %KEY%\008 /VE /D "MDAC HotfiX" /f

REG ADD %KEY%\008 /V 1 /D "%systemdrive%\install\hotfixes\Q832483.EXE /C:"dahotfix.exe /q /n" /q" /f

REG ADD %KEY%\009 /VE /D "Advanced Networking Pack" /f

REG ADD %KEY%\009 /V 1 /D "%systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /Z" /f

thats my runonceex.cmd and i get an error at the start concerning the Adobe Reader 6 switches, Im pretty sure it will have something to do with the \"s i have put in because after reading the guide on dealing with "s in RunOnceEx i had no real idea on what i was really doing.

Any help would be greatly appreciated,

Ashlin

Link to comment
Share on other sites


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "kemicalXP Automatic Program Installaion" /f

REG ADD %KEY%\001 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p -s /v\ /qn\" /f

this is what i've tried and it didn't work and produced the same error "Bad Command Line"

Link to comment
Share on other sites

click the link in my signature, where the red font is pointing 2, install adobe reader with that, choose silent install and no reboots, and just run the .exe no fance switches 2 play with :)

Link to comment
Share on other sites

i downloaded AutoIT and WinInstall.. but after having a bit of a look at em couldn't figure out how exactly to use them. :) don't supose you could give give us a run down on how to use em.

Link to comment
Share on other sites

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "kemicalXP Automatic Program Installaion" /f

REG ADD %KEY%\001 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe  /s /v\"/qn REBOOT=Suppress\" " /f

i've also used this set of switches and it still produces the "bad command line" error.

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