MSFN Forums: Runonce help - MSFN Forums

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

Runonce help Rate Topic: ****- 1 Votes

#1 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 13 November 2005 - 03:32 PM

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

This post has been edited by Oliii: 13 November 2005 - 03:33 PM


Ad Bot #1 User is online   Sponsor Icon

  • Advert Bot
  • Group: Ad Bots
  • Posts: 0
  • Joined: --

Warn Status

Warning level: 0%

0
  • +
  • -

#2 User is offline   MHz 

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

Posted 13 November 2005 - 10:34 PM

You may not have OEMPreInstall = Yes in your Winnt.sif. More reference to Winnt.sif options can be found here. The Winnt.sif is located in the I386 folder.

HTH
:)

#3 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 14 November 2005 - 12:01 PM

Thank you very much.
I didnt set it up , thats why it doesnt work.

This post has been edited by Oliii: 15 November 2005 - 02:24 PM


#4 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 14 November 2005 - 04:16 PM

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

This post has been edited by Oliii: 14 November 2005 - 04:15 PM


#5 User is offline   drscouse 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 03-January 04

Posted 14 November 2005 - 04:30 PM

Quote

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

#6 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 15 November 2005 - 02:22 PM

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

This post has been edited by Oliii: 15 November 2005 - 03:12 PM


#7 User is offline   drscouse 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 03-January 04

Posted 15 November 2005 - 03:13 PM

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

Quote



Quote

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

This post has been edited by drscouse: 15 November 2005 - 03:18 PM


#8 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 15 November 2005 - 03:28 PM

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.

#9 User is offline   Elc0chin0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-November 05

Posted 15 November 2005 - 03:29 PM

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!

#10 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 15 November 2005 - 03:41 PM

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

#11 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 15 November 2005 - 04:07 PM

Windows Setup Source means X:\XPCD\.. ?

This post has been edited by Oliii: 15 November 2005 - 04:07 PM


#12 User is offline   drscouse 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 03-January 04

Posted 15 November 2005 - 04:45 PM

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

#13 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 16 November 2005 - 02:56 AM

Okay thank you.

#14 User is offline   Elc0chin0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-November 05

Posted 17 November 2005 - 11:07 AM

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

#15 User is offline   Oliii 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 12-November 05

Posted 17 November 2005 - 12:43 PM

View PostElc0chin0, on Nov 17 2005, 06:07 PM, said:

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.ms...s/runonceex.htm

#16 User is offline   drscouse 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 03-January 04

Posted 17 November 2005 - 02:20 PM

Im not too sure if I understand some of your points...

Quote

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

Quote

If all the files are copied over I don't need to install them since they should already be installed


Although the files/folders will be opied across, they will not be installed... Installing them is a physical process not achieved by just copying them to the HD, which is th job of the ROE whether run from cmdlines.txt or GUIRUNONCE.

#17 User is offline   Elc0chin0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-November 05

Posted 17 November 2005 - 02:38 PM

drscourse actually no. The files within the folders are the application. There is nothing that has to be done with the exception of running them. They do not touch the reg files or do anything. All the files can be contained within the $OEM$.

However, I am still running into a prob.

Using the $OEM$ directory structure, I'm trying to place a shortcut in the $docs\All Users\Desktop with no sucess. The file is there on the CD when I've burned it. But it's not there after the install. Any ideas. I've even tried moving it to the" \All Users\Start Menu" and still no luck.

Any suggestions?

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


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