Oliii
Nov 13 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
MHz
Nov 13 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
Oliii
Nov 14 2005, 12:01 PM
Thank you very much.
I didnt set it up , thats why it doesnt work.
Oliii
Nov 14 2005, 04:16 PM
I saw someone uses a %CDROM% variable instead of %systemdrive% why?
Because my .cmd looks like this :
CODE
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...
drscouse
Nov 14 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....
Oliii
Nov 15 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
Many thanks
drscouse
Nov 15 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
Oliii
Nov 15 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.
Elc0chin0
Nov 15 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!
Oliii
Nov 15 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
Oliii
Nov 15 2005, 04:07 PM
Windows Setup Source means X:\XPCD\.. ?
drscouse
Nov 15 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...
Oliii
Nov 16 2005, 02:56 AM
Okay thank you.
Elc0chin0
Nov 17 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
Oliii
Nov 17 2005, 12:43 PM
QUOTE (Elc0chin0 @ Nov 17 2005, 06:07 PM)

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 drscouse
Nov 17 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.
Elc0chin0
Nov 17 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?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.