Jump to content

Runonce help


Oliii

Recommended Posts

Hello again,

I made an $OEM$ folder in my xp install folder and in the $OEM$ folder I made a $1 folder and a $$ folder.

I put files under the K:\XPCD\$OEM$\$1\Apps folder.

Finally I made a bootable iso with nLite.

But it doesnt install any files to C:\Apps.

Thats why the Runonceex application says I dont have those files under C:\Apps and gives an error where I can hit Okay Button.

Did I misunterstand something about installing files under C:\ ??

Please help.

Thanks

Edited by Oliii
Link to comment
Share on other sites


I saw someone uses a %CDROM% variable instead of %systemdrive% why?

Because my .cmd looks like this :

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Apps\

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

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

REG ADD %KEY%\000 /VE /D "JAVA" /f
REG ADD %KEY%\000 /V 1 /D "%PP%JAVA.exe" /f

REG ADD %KEY%\001 /VE /D ".NET Framework 2.0" /f
REG ADD %KEY%\001 /V 1 /D "%PP%dotNET20.exe" /f

REG ADD %KEY%\002 /VE /D "DaemonTools" /f
REG ADD %KEY%\002 /V 1 /D "%PP%c38827.msi /quiet /passive /qn" /f

REG ADD %KEY%\003 /VE /D "Media Player 10" /f
REG ADD %KEY%\003 /V 1 /D "%PP%MP10.exe" /f

REG ADD %KEY%\004 /VE /D "Firefox" /f
REG ADD %KEY%\004 /V 1 /D "%PP%Firefox.exe -ms" /f

REG ADD %KEY%\005 /VE /D "Adobe Acrobat Reader" /f
REG ADD %KEY%\005 /V 1 /D "%PP%AdbeRdr75.exe -q /s /v/qn" /f

REG ADD %KEY%\006 /VE /D "XviD Video Codec" /f
REG ADD %KEY%\006 /V 1 /D "%PP%XviD.exe /VERYSILENT" /f

REG ADD %KEY%\007 /VE /D "QuickTime 7" /f
REG ADD %KEY%\007 /V 1 /D "%PP%QuickT.exe /S /v /qn" /f

REG ADD %KEY%\008 /VE /D "FlashFXP" /f
REG ADD %KEY%\008 /V 1 /D "%PP%FlashFXP.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\009 /VE /D "Winrar" /f
REG ADD %KEY%\009 /V 1 /D "%PP%wrar.exe /S" /f

REG ADD %KEY%\010 /VE /D "Msn Messenger 7.5" /f
REG ADD %KEY%\010 /V 1 /D "%PP%msn.msi /quiet /passive /qn" /f

REG ADD %KEY%\011 /VE /D "MsgPlus" /f
REG ADD %KEY%\011 /V 1 /D "%PP%MsgPlus.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\012 /VE /D "Finalizing Setup" /f
REG ADD %KEY%\012 /V 1 /D "%systemdrive%\Install\Cleanup.cmd" /f

EXIT

And one more thing I dont know why but it doesnt install the MSN messenger and msg plus and quicktime player...

Edited by Oliii
Link to comment
Share on other sites

I saw someone uses a %CDROM% variable instead of %systemdrive% why?

So the apps dont need to be copied to the hd, they can be installed straight from the disk... saves time, especially if you have a few hundred mb of apps....

You sound like you are just getting your bearings with regards to unattended cds, can I suggest you take a little time to look at the site that most have probably learnt from, myself included...

www.unattended.msfn.org

It covers the basics, and upto to expert....

Link to comment
Share on other sites

Yes I m beginner in making unattended discs but I m not a n00b !!

I ve already read that guide that is why I asked you about it.

The guide says I can find more info. on the forum about %CDROM% variable.

So could you please help me making programs install from Cdrom??

Please :blushing:

Many thanks

Edited by Oliii
Link to comment
Share on other sites

Then you would have come across this page which expains all about its use...

Making modifications to your existing RunOnceEx.cmd file

In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. Open RunOnceEx.cmd in Notepad, and include the following after @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:\CD.txt SET CDROM=%%i:

Create a blank text file called CD.txt and place this in the root of your Windows Setup Source folder. This allows the IF EXIST command to scan all the drive letters specified, then when it finds CD.txt it will set an environment variable of %CDROM% pointing to the correct drive letter.

The next thing to do is take all your software out of \$OEM$\$1\install\, and put it in \Software\ or a folder name of your choice.

Going back to the RunOnceEx.cmd file, we'll need to make further changes:

Change all instances of %systemdrive% to %CDROM%

Fix all the paths to the software installation file, i.e. "%CDROM%\Software\MSN_Messenger.msi /qn"

That's all you need to do! RunOnceEx.cmd will scan for the correct drive letter where your CD is in, sets that drive letter to the %CDROM% environment variable, and the drive letter will be imported to the registry. Give it a go and see for yourself! The end result should look something like this:

Taken from www.unattended.msfn.org...

I persobnally store all installers on a seperate drive, to reduce cd size, and install time...

GOOD LUCK :D

Edited by drscouse
Link to comment
Share on other sites

Ohh sorry Ive seen it too , its my fault .Im sorry...

Somehow I didnt noticed it because I dealt with the Windows Post Installer and I just skipped that point.

Im sorry again.....

But anyway thank you.

Link to comment
Share on other sites

This is getting frustrating.

I'm setting up an unattended install from CD.

I've done everything up to the point where I want to install third party apps that need to be copied from the install CD (so they also need to be there when I burn the install CD) to the HD.

I've set up the winnt.sif /winnt.bat file.

Here's where I'm stuck.

[GuiRunOnce]

Command0=RunOnceEx.cmd

I've got the "OemPreinstall=Yes" option on. Don't know it this helps.

in the RunOnceEx.cmd file I've got the following;

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:\CD.txt SET CDROM=%%i:

copy %CDROM%\Software\Stuff c:\Stuff

copy %CDROM%\Software\source\oem*.* c:\winnt\system32\oem*.*

copy c:\Software\stuff\stuff.ini c:\winnt\stuff.ini

copy c:\Software\services c:\winnt\system32\etc\services

EXIT

When I burn the CD I put the winnt.sif and winnt.bat files in the i386 directory. Oh btw it's slipstreamed with sp4 or sp3. I put the folder \Software\stuff\files.fle on the root of the CD and the RunOnceEx.cmd in the root as well.

Can someone please tell me what I might be doing wrong?

Thanks to anyone who can lend a helping hand!

Link to comment
Share on other sites

You dont have to use the %CDROM% variable if you want to install your apps to the hard drive. This is what you want, isnt it??

Just remove the [GuiRunonce] entries from the winnt.sif.

OemPreinstall must be set to yes.

And make an $OEM$ folder , inside it make a $1.

Everything in $1 folder will be installed to C:\.

Hope it helps

Link to comment
Share on other sites

The Windows Setup Source is the location on your HD of the OS you have copied/extracted/slipstreamed... the folder within which your OS files are, the ones you are working with.

The contents of which will be made into a bootable ISO and burned back to a disk, making your unattended install cd...

In their guides, they use X:\XPCD as the root folder within which you are working...

Link to comment
Share on other sites

Oliii wrote:

You dont have to use the %CDROM% variable if you want to install your apps to the hard drive. This is what you want, isnt it??

Just remove the [GuiRunonce] entries from the winnt.sif.

OemPreinstall must be set to yes.

And make an $OEM$ folder , inside it make a $1.

Everything in $1 folder will be installed to C:\.

Yes I went though and removed the [GuiRunonce] and created all the necessary folders inside $OEM$. I just tested it and it loaded the os just fine but did not copy anything from the $OEM$ folders.

Also, in the directions it states to create the cmdlines.txt file and include it in the $OEM$ folder with [COMMANDS] "RunOnceEx.cmd"

Now the "RunOnceEx.cmd" file has nothing to do since all the folders and files within the $OEM$ folder should be copied to the respective folders. So, do I leave the RunOnceEx.cmd out of the loop? And, why aren't the folders within the $OEM$ being copied to the hd when the system reboots?

Thanks for the help.

Ok I completely forgot to look at the winnt.sif for the following;

[unattended]

OemPreinstall=Yes

That was set to No. So I'm going to try it again. I'm still a bit concerned about the cmdlines.txt file that refers to the RunOnceEx.cmd that identifies what applications are being installed. If all the files are copied over I don't need to install them since they should already be installed. So with the OEMPreinstall=Yes then logically I shouldn't need the cmdlines.txt or the RunOnceEx.cmd files at all.

Am I just full of caca? or does this make sense?

Thanks

Link to comment
Share on other sites

So with the OEMPreinstall=Yes then logically I shouldn't need the cmdlines.txt or the RunOnceEx.cmd files at all.

Am I just full of caca? or does this make sense?

Thanks

As you said runonceex.cmd and the cmdlines.txt are for execute an application installer.

If you just want to have files on your hd then you just need to set it up in winnt.sif OEMPreinstall=Yes. -As you said above..

Anyway have you read the first part of this Guide except the RunOnceEx ???

http://unattended.msfn.org/intermediate/me...s/runonceex.htm

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