MSFN Forum: RunOnceEX not working correctly! - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RunOnceEX not working correctly! Rate Topic: -----

#1 User is offline   BrandonS_Mil 

  • "You were the chosen one...."
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 20-October 04

Posted 23 October 2004 - 02:03 AM

I have my runonceex listed...
The arrow goes down the list....
NO APPLICATIONS INSTALLS, only the reg tweaks.

Please help

Attached File(s)




#2 User is offline   weist123 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 20-October 04

Posted 23 October 2004 - 02:23 AM

your RunonceEx code is here:

ps:you can post the code directly to your topic,if it's not long.

cmdow @ /HID
@Echo Off

rem PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Acrobat Reader 6.0.1" /f
REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\AdobeRdr\Rdr601.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.2" /f
REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\AdobeRdr\Install\rdr602up.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\003 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\Java\Java_142.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f

REG ADD %KEY%\004 /VE /D "Symantec Antivirus Corporate 9" /f
REG ADD %KEY%\004 /V 1 /D "%SystemDrive%\Install\SAV\SAVC.msi\" /qn RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\005 /VE /D "Importing Registry Tweaks..." /f
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\Registry\regtweaks.reg" /f

REG ADD %KEY%\006 /VE /D "Testing USB 2.0..." /f
REG ADD %KEY%\006 /V 1 /D "%SystemDrive%\Install\Registry\USB2Test.vbs" /f

REG ADD %KEY%\007 /VE /D "Cleaning Up and Rebooting..." /f
REG ADD %KEY%\007 /V 1 /D "%SystemDrive%\Install\cleanup.cmd" /f

EXIT


oh,i can't find any error . waiting for expert ...

perhaps,can .reg file and .vbs files run directly?

#3 User is offline   Tsunami 

  • Member
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 05-March 04

Posted 23 October 2004 - 02:35 AM

A .vbs file can run directly, but a .reg file will ask if you want to import it into the registry. Use this instead:

REGEDIT /S %SystemDrive%\Install\Registry\regtweaks.reg


#4 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 23 October 2004 - 03:09 AM

So long as you have OemPreinstall = Yes in winnt.sif. The software you have in $oem$\$1\Install will be copied to %systemdrive%.
I'm unsure if your adobe upgrade address is correct. I think you mixed up AdobeRdr folder with install folder?
Double check your cmdlines.txt, to ensure that it is addressed to execute this batch file in it's location.

#5 User is offline   Drac0 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 23-September 04

Posted 23 October 2004 - 03:19 AM

and you have a few un-escaped quote's there too, which would cause problems. Try...

Quote

cmdow @ /HID
@Echo Off

rem PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Acrobat Reader 6.0.1" /f
REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\AdobeRdr\Rdr601.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.2" /f
REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\Install\AdobeRdr\rdr602up.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\003 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\Java\Java_142.exe /s /v /qn ADDLOCAL=jrecore IEXPLORER=1" /f

REG ADD %KEY%\004 /VE /D "Symantec Antivirus Corporate 9" /f
REG ADD %KEY%\004 /V 1 /D "%SystemDrive%\Install\SAV\SAVC.msi /qn RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\005 /VE /D "Importing Registry Tweaks..." /f
REG ADD %KEY%\005 /V 1 /D "REGEDIT /S %SystemDrive%\Install\Registry\regtweaks.reg" /f

REG ADD %KEY%\006 /VE /D "Testing USB 2.0..." /f
REG ADD %KEY%\006 /V 1 /D "%SystemDrive%\Install\Registry\USB2Test.vbs" /f

REG ADD %KEY%\007 /VE /D "Cleaning Up and Rebooting..." /f
REG ADD %KEY%\007 /V 1 /D "%SystemDrive%\Install\cleanup.cmd" /f

EXIT

And make sure all the paths are correct.

#6 User is offline   BrandonS_Mil 

  • "You were the chosen one...."
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 20-October 04

Posted 23 October 2004 - 02:58 PM

OK, i added the "regedit" --- Thanks works great. :thumbup

Fixed the reader update command line -- thanks, i feel dumb for overlooking.

The list shows up, but still runs thru them like they werent there and none of the applications install.

Do i need to do like a batch file, and list a "start /wait " line in there???


PS: When i was making my RunOnceEX file... I used an utomated tool. I don't remember the website where i got it, but it made the code for me when i seleted the program i wanted installed. If anyone would like the program, email me. It's 1.16MB.

This post has been edited by BrandonS_Mil: 23 October 2004 - 09:18 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy