Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
PatHibulaire

Choose D: for ProgramFilesDir and ProfilesDir

Recommended Posts

Hi, I read attentively tutorial and posts to create an unattended install of Windows XP but I still have a few problems :

I have two hard drives and each one is separated in 4 partitions.

I would like to install Windows in first partition of first hard drive, "Document and Settings" and "Program Files" directories in the second partition of first hard drive.

So, in unattend.txt I set :

ProgramFilesDir="D:\Program Files"

CommonProgramFilesDir = "D:\Program Files\Common Files"

ProfilesDir="D:\Document and Settings"

When I launch the unattended install, all works fine but Windows install "Document and Settings" and "Program Files" in the first partition of second hard drive and call it D:

I saw many methods to change drive letters after the installation but not during the installation. Is there a way to force Windows to install "Document and Settings" and "Program Files" in the second partition of first hard drive ?

Thanks

Share this post


Link to post
Share on other sites

you can set this in your winnt.sif or by a number of other methods, including regtweaks. search it up

Share this post


Link to post
Share on other sites

Strange... Could you post the rest of your winnt.sif? (remove product keys and passwords)

Share this post


Link to post
Share on other sites

Sorry but I don't find a way to do it in winnt.sif but this would be the way I prefer. I'm going to look for regtweaks but it seems to me that it acts after the installation.

Share this post


Link to post
Share on other sites

Here is my winnt.sif file :

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   OemFilesPath="..\$OEM$"
   TargetPath=\WINDOWS
   Repartition=No
   FileSystem=NTFS
   UnattendSwitch=Yes
   WaitForReboot=No
   OemPnPDriversPath="drivers"
   DriverSigningPolicy=Ignore
   AutoActivate=No
   ProgramFilesDir="D:\Program Files"
   CommonProgramFilesDir="D:\Program Files\Common Files"
   KeyboardLayout="Fran‡ais"

[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=Yes
   OEMSkipRegional=1
   TimeZone=105
   OemSkipWelcome=0
   ProfilesDir= "D:\Documents and Settings\"

[UserData]
   ProductKey=*
   FullName="ABC"
   OrgName="DEF"
   ComputerName=smile

[Display]
   BitsPerPel=16
   Xresolution=800
   YResolution=600
   Vrefresh=60

[TapiLocation]
   CountryCode=33

[Identification]
   JoinWorkgroup=workgroup

[Networking]
   InstallDefaultComponents=Yes

[Components]
   Msnexplr=Off
   Msmsgs=Off

Share this post


Link to post
Share on other sites

Your winnt.sif file seems ok. (Looks a lot like mine)

You have remembered to format both the C: and D: disks before you start your install, right?

Try to set:

FileSystem=*

It is a long shot, but could perhaps work. Sometimes (often) windows works in mysterious ways...

Share this post


Link to post
Share on other sites

normal : ex if you have 2 HDDs with 3 partitions on each

c: 1st Principal Partition of 1st HDD

d: 1st Principal Partition of 2nd HDD

e: 1st logical of 1st HDD

f: 2nd logical of 1st HDD

g: 3e logical of 1st HDD

h: 1st logical of 2nd HDD

h: 2nd logical of 2nd HDD

etc ...

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...