Help - Search - Members - Calendar
Full Version: The software directory is not copied to HD!
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
tester444
Greetings

Hi, i'm new here but i always read threads from time to time, and i always find the answers that helpme doing what ever i needed to do.. But i codn't solve this problem after days of trying till i giveup!!.. anyway..

My problem here is that:
After installing windows XP Home SP2 from an unattend installation CD i made the Batch file for application preinstallation doesn't work and the "Install" folder is not copied to the HardDisk...!

Keys:
1) I make an WinXP Home SP1 and i didn't have any problem in preinstallated softwares.
2) I used with SP2 CD the same batch/sif files and Directory structure i used with SP1 CD.
3) After installing from my SP1 CD i find a directory named "Install" in the HD which have my preinstalled softwares (Note: i didn't make any cleanup files) but with SP2 CD that directory in not been copied to the HD!
4) Files in folder "$$" are copied to hard disk but folder "$1" which have the "Install" folder NO.

Note:
1) I don't won't to use RunOnceEX.CMD to preinstall softwares
2) I'm using hotfixes.CMD to install software and hotfixes and it's worked fine with My SP1 CD.
3) I don't wish to change my folder structure unless its neccesary for SP2.


My Files:
==================
$OEM$\RunOnceEX.CMD
==================
QUOTE
cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

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%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\002 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\MSN\MsnMsgs.msi /qn" /f

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

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

EXIT
==================
$OEM$\CMDLINES.TXT
==================
QUOTE
[COMMANDS]
"RunOnceEx.cmd"



==================
$OEM$\$1\Install\prepare.cmd
==================
QUOTE
cmdow @ /HID

REM  --- REMOVE CURRENT USER STARTMENU \ PROGRAMS SHORTCUTS ---

DEL "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"
DEL "%UserProfile%\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk"
DEL "%UserProfile%\Start Menu\Programs\Accessories\Tour Windows XP.lnk"

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"

EXIT
==================
$OEM$\$1\Install\hotfixes\hotfixes.cmd
==================
QUOTE
@echo off

ECHO.
ECHO Installing Q823718 - MDAC
start /wait %systemdrive%\install\hotfixes\Q823718.exe /C:"dahotfix.exe /q /n" /q

ECHO.
ECHO Installing Q817778 - Advanced Networking Pack
start /wait %systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /Z

ECHO.
ECHO Installing WMFSDK - Windows Media Component Setup Application
start /wait %systemdrive%\install\hotfixes\WMFSDK.exe /Q:A /R:N

ECHO.
ECHO Installing Q831240 - HighMAT CD Writing Wizarde Setup
start /wait %systemdrive%\install\hotfixes\Q831240.exe

ECHO.
ECHO Installing Q820291...
start /wait %systemdrive%\install\Hotfixes\Q820291.exe /Q /M /Z

ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb
ECHO Installing .NET Framework v1.1 SP1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q

ECHO.
ECHO Installing Windows Media Player 10
ECHO Please wait...
start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"

ECHO.
ECHO Installing WinRAR 3.20
ECHO Please wait...
start /wait %systemdrive%\install\WinRAR\wrar342.exe /s
ECHO.
ECHO Registering Flashget 1.65...
COPY %systemdrive%\install\WinRAR\rarreg.key %systemdrive%\PCArtSoft Files\WinRAR

ECHO.
ECHO Installing Flashget 1.65
ECHO Please wait...
start /wait %systemdrive%\install\flashget\fg165.exe /S
ECHO.
ECHO Registering Flashget 1.65...
REGEDIT /S %systemdrive%\install\flashget\register.reg

ECHO.
ECHO Installing ACDSee PowerPack v7.0
ECHO Please wait...
start /wait %systemdrive%\Install\ACDSee\ACDSee.msi /QB PIDKEY=4X7DFK-BYFFN-3YMRBM-4Z657ST LICENSE_MODEL=Full
ECHO.
ECHO Deleting Shortcuts and Applying Tweaks
del "%AllUsersProfile%\Desktop\ACD FotoSlate 3.1.lnk"
del "%AllUsersProfile%\Desktop\ACD Photo Editor 3.1.lnk"
REGEDIT /S %systemdrive%\Install\ACDSee\register.reg

EXIT



==================
i386\WINNT.SIF
==================
QUOTE
[Data]    AutoPartition=0
    MsDosInitiated=0
    UnattendedInstall=Yes

[Unattended]
    DriverSigningPolicy=Ignore
    UnattendMode=ProvideDefault
    OemSkipEula=Yes
    OemPreinstall=Yes
    ProgramFilesDir="C:\PCArtSoft Files"
    CommonProgramFilesDir="C:\PCArtSoft Files\Common Files"
    TargetPath=\WINDOWS
    FileSystem=*
    WaitForReboot=No

[GuiUnattended]
    AdminPassword=pcarts
    TimeZone=150
    ProfilesDir="C:\User Documents"
    OemSkipWelcome=1
    OEMSkipRegional=1
    AutoLogon=Yes

[UserData]
    FullName="Owner"
    ComputerName=PCArts_Code_000001

[Display]
    Xresolution=800
    Yresolution=600
    BitsPerPel=16

[TapiLocation]
    CountryCode=966
    Dialing=Tone
    AreaCode=02

[RegionalSettings]
    LanguageGroup=13
    SystemLocale=00000401
    UserLocale=00000401
    InputLocale=0409:00000409

[Identification]
    JoinWorkgroup=PCArt_Group

[Networking]
    InstallDefaultComponents=Yes

[Components]
    AccessOpt=Off
    fax=On
    hypertrm=Off
    media_utopia=On
    WMAccess=Off
    WMPOCM=Off
    zonegames=Off
    MousePoint=On
    Vol=On
    msmsgs=Off

[Shell]
    DefaultStartPanelOff=Yes
    CustomDefaultThemeFile="%SYSTEMROOT%\Resources\Themes\ForeverBlue.Theme"

[GuiRunOnce]
    Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"

----------------------

Thank you for your time...

Best Regards
Astalavista
Rule #0

Post in the correct forum. This should be in the Unattended section, reported and will be move later

Rule #1

dont post your serial

Rule #2

dont post code that long. place it in a text file and attach it.

QUOTE
[GuiRunOnce]Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"


that is an outdated method of installing hotfixes

a simpler method of doing this.

hotfix.exe /integrate:x:\xp-cd\

is your install folder located in xp-cd\$oem$\$1\Install ?

why would u want to copy your files to your hard disk?

why not leave the software on your CD or DVD?

in runonceEX.cmd all u need to do is replace

%systemdrive% with %cdrom%

and add to the top of RunonceEX.cmd
CODE
for %%i 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 %%i:\WIN51 set CDROM=%%i:
tester444
First:
Thanks for your quick responce

About Rules:
Rule #0
I was thinking which forum to post it's an unattend question but it's about Preinstalled Applications, so i decide wrong apparently.. smile.gif

Rule #1
Done Editied and deleted

Rule #2
Excuse me but it's my first Post, but considered done.. (Next time)
-----

About your question:

1) The new hotfix install method: hotfix.exe /integrate:x:\xp-cd\
I need more information about the line:
a- In which file i put this line?
b- What is the perpuse of the switch "/integrate"?
c- What is letter "x" how do i preffer to a CD drive which is changed from computer to another?
d- I'm not installaing from a network to use a folder like "xp-cd"


2) Is your install folder located in \$oem$\$1\Install ?
a- Yes, it is.


3) why would u want to copy your files to your hard disk?
a- It's not what i wont i saw what my SP1_CD made, i saw the "install" directory copied from the CD: "$oem$\$1\Install" to HD: "Install"
b- remember in my "winnt.sif" file i have a refrence:
QUOTE
[GuiRunOnce]Command0="%systemdrive%\Install\hotfixes\hotfixes.cmd"

* since i use %systemdrive% term it will lead to the my HD.
* i read from yours unattend site "http://unattended.msfn.org/" that the files will automatically copied to the HD intalled drive!!!

4) why not leave the software on your CD or DVD? in runonceEX.cmd all u need to do is replace %systemdrive% with %cdrom%
a- sorry but now i'm totally LOST!.. i have read a topic in this forum that says there is no term such as "%cdrom%" because of that we need to have the directories beening copied which is automatically done.
b- If i put the lines u said in the "runonceEX.cmd" file, what about the command in the "winnt.sif" file, is this the way i should right it:
QUOTE
[GuiRunOnce]Command0="%cdrom%\Install\hotfixes\hotfixes.cmd"

but in the "runonceEX.cmd" the term %cdrom% will be define, but in the "winnt.sif" how it will work??


5) pls read this link ... it will do u good
http://www.msfn.org/board/index.php?showtopic=37499
a- i'm reading some pages, but i need to tell u i can't use some premerged hotfixes files because i'm not using English Interface..


Thanks a lot again, hope u can help me...
Astalavista
QUOTE
1) The new hotfix install method: hotfix.exe /integrate:x:\xp-cd\
I need more information about the line:
a- In which file i put this line?
b- What is the perpuse of the switch "/integrate"?
c- What is letter "x" how do i preffer to a CD drive which is changed from computer to another?
d- I'm not installaing from a network to use a folder like "xp-cd"
use the seach several topics exist on this.

Step 2: [ Integrating Hotfixes and Patches ]

Method 1: RyanVM XP Post - SP2 Update Pack http://www.ryanvm.net/msfn/updatepack.html

Method 2: Manual Install - http://rapidshare.de/files-en/426277/SP2_patches.rar.html

QUOTE
4) why not leave the software on your CD or DVD? in runonceEX.cmd all u need to do is replace %systemdrive% with %cdrom%
a- sorry but now i'm totally LOST!.. i have read a topic in this forum that says there is no term such as "%cdrom%" because of that we need to have the


READ link below
http://unattended.msfn.org/xp/runonceex_cd.htm
tester444
ok.. u know i tried to find the topic that said there is no "%cdrom%" term, but i didn't find it maybe in other forum..!.. anyway..

I will try the new steps u gave me tomorrow i want to sleep smile.gif .. thanks in advance..


I still wondering: why it's worked for SP1? why the "Install" folder copied to HD in SP1 not SP2?

Note: i cann't use the premerged files like "RyanVM XP" because i Don't use English Interface..


See u tomorrow..
Astalavista
ahh your Arabic from lebanon
tester444
Arabic interface
tester444
OK, i'm back.. smile.gif

I used some of the advises Mr. astalavista gave me and almost everything is looking goood..

1) In Winnt.sif file i tried this:

a- I used the code:
QUOTE
[GuiRunOnce]Command0="%cdrom%\Install\hotfixes\hotfixes.cmd"

It didn't worked at all, because as i said before the term %cdrom% isn't defined how the system will excute the file!

b- i defined the term %cdrom% in the RunonceEX.cmd file and put the defined term in the winnt.sif file, the same problem it didn't worked..

c- Finally i just removed the part [GuiRunOnce] from the winnt.sif completely.. i figured out that i don't needed at all in SP2

Note: The [GuiRunOnce] section contains commands to execute the first time an end user logs on to the computer after GUI-mode Setup completes... but the RunonceEX.cmd could do this maybe this is worked only in SP2.. i think..



2) In RunOnceEX.cmd file:

a- I put the code astalavista gave me to define the cdrom for the setup which is:
QUOTE
for %%i 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 %%i:\WIN51 set CDROM=%%i:
and i put it in the begaining of the file, after that i put the line:
QUOTE
SET SOFTWARE=%CDROM%\Install

which define the folder "install" in the cdrom to the term %software%

b- Now i added the following lines to run the batch (named hotfixes) i made to excute my preinstalled softwares from within the RunOnceEX.cmd file:
QUOTE
REG ADD %KEY%\005 /VE /D "Software Installation..." /f
REG ADD %KEY%\005 /V 1 /D "%software%\hotfixes\hotfixes.cmd" /f
it's worked fine thumbup.gif .



3) In hotfixes.cmd file (Note: Just a name i choosed for my batch file):

a- i re-enter the cdrom definition codes as i putted in the RunOnceEX.cmd:
QUOTE
FOR %%a 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 %%a:\WIN51 SET CDROM=%%a:

SET SOFTWARE=%CDROM%\Install

it didn't worked without reputing them!!.. i put them in the start of the batch file.

b- i used the term %software% i just defined in the start of the patch before the software switch.. example:
QUOTE
@echo off

FOR %%a 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 %%a:\WIN51 SET CDROM=%%a:

SET SOFTWARE=%CDROM%\Install

ECHO.
ECHO Installing Q817778 - Advanced Networking Pack
start /wait %software%\hotfixes\Q817778.exe /Q /O /N /Z

ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %software%\NetFramework\netfx.msi /qb
ECHO Installing .NET Framework v1.1 SP1
ECHO Please wait...
start /wait %software%\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q

ECHO.
ECHO Installing Windows Media Player 10
ECHO Please wait...
start /wait %software%\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"


======


Now every thing is good thanks Mr. astalavista..

But...

I still have one more question about .NET Framework, i used the switch u just seen above, but it asked to Insert .NET Disk!!!!... how could i solve that???

Thanks..


Note: I do a search and i found some who get the same problem with .NET, this is the link: http://www.msfn.org/board/index.php?showto...74&hl=framework
you know what was the answer "ryanvm" excuse me but i like to know and learn not to just use...


Best Regards
Astalavista
1. Thank you for the compliments.

2. Your Really smile.gif hard headed aren't you. regarding the hotfixes.

i told u to use the integrate command but u wont listen. newwink.gif

u need to download all this hotfixes if u already patch with sp2

KB834707.exe
KB873339.exe
KB884020.exe
KB885222.exe
KB885626.exe
KB885835.exe
KB885836.exe
KB886185.exe
KB886677.exe
KB887797.exe
KB888240.exe
KB890175.exe

download them in your language when u hv finish PM me.
I will write a batch for you.

tell me where is your XP cd located.
example c:\xpcd or d:\xpcd or e:\xpcd


Edit your first post to reflect what u hv now. it is very confusing
tester444
ok Mr. astalavista considered done..

and yes i Really hard headed with this and sometimes get sooo realmad.gif ... but i love to learn i love to fail and then try and then win... thumbup.gif .. it's feel greate.. biggrin.gif

thanks again




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.