MSFN Forum: Unattended istallation of programs - MSFN Forum

Jump to content



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

Unattended istallation of programs Rate Topic: -----

#1 User is offline   doc_ufo 

  • Group: Members
  • Posts: 5
  • Joined: 03-August 04

Posted 03 August 2004 - 08:28 AM

I've got a problem regarding installation of program....
i've followed the guide on writing RunOnceEx.cmd but all it seems to do is to copy all the software and put them in a folder called install without actually installing the soft ware into windows...

here's my RunOnceEx.cmd:
cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\005 /VE /D "Norton Antivirus 2003" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\010 /VE /D "Winzip" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\"Program Files"\winzip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\020 /VE /D "MSN Messanger" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\025 /VE /D "SunJava" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\030 /VE /D ".Net FrameWork" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi "/QB REBOOT=Suppress"" /f

REG ADD %KEY%\035 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /f

EXIT


Any one has any idea where i went wrong??


#2 User is offline   lpl 

  • what're you talking abt?
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 14-July 04

Posted 04 August 2004 - 10:42 AM

First of all, did you look here -
MSFN's Unattended XP CD

Is your runonceex.cmd together in $OEM$ folder with your cmdlines.txt?

Anyways, your backslashes are in the wrong places...i'm not an expert, but try this:

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\005 /VE /D "Norton Antivirus 2003" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NAV03\NAV.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\010 /VE /D "Winzip" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Program Files\winzip\winzip32.exe /noqp /autoinstall" /f

REG ADD %KEY%\015 /VE /D "Adobe Acrobat Reader 6.0" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\020 /VE /D "MSN Messanger" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\025 /VE /D "SunJava" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\SunJava\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\030 /VE /D ".Net FrameWork" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\NetFramework\netfx.msi /QB REBOOT=Suppress" /f

REG ADD %KEY%\035 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\cleanup.cmd" /f

EXIT


Now i'm not sure about the ADobe reader at all (one too many slashes) but mine executes from a MSI file. try and see if you can execute the file, and cancel out at the earliest time possible, and go to C:\windows\cache\ and see if you got a folder there for this.. if yes, copy the entire folder to your unattended cd and use that instead.

the switch should then look something like this:
REG ADD %KEY%\015 /V 1 /D "msiexec.exe /i \"%systemdrive%\install\Applications\AdobeReader6\Adobe Reader 6.0.1.msi\" /qb-" /f

hope it works!

#3 User is offline   doc_ufo 

  • Group: Members
  • Posts: 5
  • Joined: 03-August 04

Posted 05 August 2004 - 03:02 AM

lpl, on Aug 4 2004, 10:42 AM, said:

First of all, did you look here -
Anyways, your backslashes are in the wrong places...i'm not an expert, but try this:

yeah u r right....
my backslashes are all wrong...
fixed the problem already.... thanks for the help...

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