MSFN Forum: The software directory is not copied to HD! - MSFN Forum

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

The software directory is not copied to HD! Rate Topic: -----

#1 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 12:39 AM

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


#2 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 25 January 2005 - 01:28 AM

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


#3 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 03:00 AM

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

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

#4 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 25 January 2005 - 03:10 AM

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.ne...updatepack.html

Method 2: Manual Install - http://rapidshare.de...atches.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.ms...unonceex_cd.htm

#5 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 03:31 AM

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

#6 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 25 January 2005 - 03:33 AM

ahh your Arabic from lebanon

#7 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 03:35 AM

Arabic interface

#8 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 10:34 PM

OK, i'm back.. :)

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 .



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

#9 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 25 January 2005 - 11:09 PM

1. Thank you for the compliments.

2. Your Really :) hard headed aren't you. regarding the hotfixes.

i told u to use the integrate command but u wont listen. ;)

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

#10 User is offline   tester444 

  • Group: Members
  • Posts: 8
  • Joined: 19-December 03

Posted 25 January 2005 - 11:16 PM

ok Mr. astalavista considered done..

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

thanks again

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