MSFN Forum: Newbie Needs Help With Runonceex.cmd - MSFN Forum

Jump to content



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

Newbie Needs Help With Runonceex.cmd Rate Topic: -----

#1 User is offline   redserpent 

  • Group: Members
  • Posts: 7
  • Joined: 27-February 05

Posted 27 February 2005 - 07:30 PM

This is my file, but Ive removed a few of the programs that have serials.

The problem is my Drivers & InstallApps dont work.

My paths are:

K:\XPUnattendCorp\$OEM$\$1\Drivers
K:\XPUnattendCorp\$OEM$\$1\InstallApps

If I moved the InstallApps to the root of the CDRom drive it works.

Any ideas, whats wrong?

I thought the $1 copied stuff to the hard disk but its not working (Im using VMWare).


cmdow @ /HID
@Echo Off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\InstallApps\

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

REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

REG ADD %KEY%\009 /VE /D "GetRight" /f
REG ADD %KEY%\009 /V 1 /D "%PP%GetRight.exe /S" /f
REG ADD %KEY%\009 /V 2 /D "taskkill /IM getright.EXE /F" /f

REG ADD %KEY%\019 /VE /D "WinRAR 3.42" /f
REG ADD %KEY%\019 /V 1 /D "%PP%winrar.exe /s" /f

REG ADD %KEY%\024 /VE /D "Google Toolbar" /f
REG ADD %KEY%\024 /V 1 /D "%PP%GoogleToolbarInst3.exe /s /qn" /f

EXIT


#2 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 27 February 2005 - 07:38 PM

Well if you want to install from the cd as you have indicated you will

need to move installapps to the root of the cd and not under $1, thats

my guess..........

BD

#3 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 February 2005 - 07:56 PM

You need to follow the unattended guide to the letter, found off the home page here. If your new to UA installs please conquer the batch file method then move onto RunonceEx & CD method from there. Best advice I can give ya & don't expect to happen in five minutes mines taken nearly 18 Months to conquer. Good luck.

#4 User is offline   keytotime 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 400
  • Joined: 05-October 04

Posted 27 February 2005 - 08:06 PM

You should have a folder called InstallApps in your cd root. Try to keep it more standard. Here's mine. I have a folder called Apps in the root of my cd.

cmdow @ /HID
@Echo Off
FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51 SET CDROM=%%d

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

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

REG ADD %KEY%\000 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\000 /V 1 /D "%CDROM%\Apps\acroread7.exe" /f
REG ADD %KEY%\000 /V 2 /D "REGEDIT /S %CDROM%\Apps\1.reg" /f


#5 User is offline   redserpent 

  • Group: Members
  • Posts: 7
  • Joined: 27-February 05

Posted 28 February 2005 - 07:20 AM

Thanks for your help guys.

But why isn't the $1 stuff working, correct me if im wrong but I thought it copys that directory over to the hard disk ?

K:\XPUnattendCorp\$OEM$\$1\Drivers
K:\XPUnattendCorp\$OEM$\$1\InstallApps

#6 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 February 2005 - 12:12 PM

redserpent, on Mar 1 2005, 12:20 AM, said:

Thanks for your help guys.

But why isn't the $1 stuff working, correct me if im wrong but I thought it copys that directory over to the hard disk ?

K:\XPUnattendCorp\$OEM$\$1\Drivers
K:\XPUnattendCorp\$OEM$\$1\InstallApps
<{POST_SNAPBACK}>


I guess you could post your winnit.sif without serial etc little difficult to analyze without it.

#7 User is offline   EdwardQ 

  • Group: Members
  • Posts: 7
  • Joined: 25-February 05

Posted 28 February 2005 - 10:32 PM

I think the $OEM$ is suppose to be under i386.

#8 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 28 February 2005 - 10:48 PM

Hi Redserpent

This is the first thing to do before posting :)

http://unattended.ms.../oemfolders.htm

hmmmm, why did you call %cdrom% when you are supposed to call it from %systemdrive%.. ( you dont wanna de apps on your HD?)

Good luck!

#9 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 01 March 2005 - 10:33 AM

OEMPreInstall=YES

Have that in your WINNT.SIF.

And read THIS if you read nother else : http://www.msfn.org/board/index.php?showto...ndpost&p=270687

Second, you're batch file is set to install from the CDROM, not HDD. That's why when moving InstallApps to the root of the CD, it work.

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:

Finds the CDROm

SET PP=%cdrom%\InstallApps\

If you don't know what that is, then don't use it.

And $OEM$ should go in the I386 folder ONLY when installing from a network share or similar. From CD installs, it goes along side the I386 folder.

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