Jump to content

Recommended Posts

Posted

I have a very successful Unattended XP SP2 install DVD. Just to finish it off and make it 100% I would like to be able to specify the home directory and profile path for my new users...

For example, I have Dave (home \\server\users\dave\home)(profile \\server\users\dave\profile)

I have Peter (home \\server\users\peter\home)(profile \\server\users\peter\profile)

& John (home \\server\users\john\home)(profile \\server\users\john\profile)

They are all located on the same server, but have different paths for their profile/home directory..

How can I successfully do this via a unattended setup..

Thanks In Advance :thumbup


Posted

For the home, I'm assuming that's what would normally be 'My Documents' etc. you can probably use redirect.inf:

[Version]
Signature = $CHICAGO$

[DefaultInstall]
AddReg    = Reg.Settings
AddReg    = Reg.Uninstall
CopyFiles = Inf.Copy

[DefaultUninstall]
DelReg   = Reg.Settings
DelReg   = Reg.Uninstall
DelFiles = Inf.Copy

[Reg.Settings]
HKCU,%Folder%,Personal,0x00020000,"%PERSONAL%"
HKCU,%Folder%,My Pictures,0x00020000,"%PICTURES%"
HKCU,%Folder%,Favorites,0x00020000,"%FAVORITES%"
HKCU,%Folder%,My Music,0x00020000,"%MUSIC%"

[Reg.Uninstall]
HKCU,%Posn%\%NAME%
HKCU,%Posn%\%NAME%,DisplayName,,"%NAME%"
HKCU,%Posn%\%NAME%,UninstallString\
,,"Rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132"\
"%53%\Application Data\Custom\redirect.inf"

[Inf.Copy]
redirect.inf

[DestinationDirs]
Inf.Copy = 53,Application Data\Custom

[SourceDisksNames]
55 = %DISKNAME%

[SourceDisksFiles]
redirect.inf = 55

[Strings]
Folder    = "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
Posn      = "Software\Microsoft\Windows\CurrentVersion\Uninstall"
PERSONAL  = "\\server\users\%USERNAME%\My Documents"
PICTURES  = "\\server\users\%USERNAME%\My Documents\My Pictures"
FAVORITES = "\\server\users\%USERNAME%\Favorites"
MUSIC     = "\\server\users\%USERNAME%\My Documents\My Music"
NAME      = "Yzöwl's Folder Redirect"
DISKNAME  = "Setup Files"

You can add this from cmdlines.txt:

[Commands]
"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\redirect.inf"

Then for the profiles, i'm guessing you mean Documents and Settings I'm only assuming that you can add something like this to winnt.sif:

[GuiUnattended]
   ProfilesDir="\\server\users\%USERNAME%\profile\"

I say assuming since I dont know id winnt.sif will accept the environment variable. You could of course just change this location to \\server\users\profiles\ and it would automatically add the usernames to the end.

Hope the ideas help anyhow!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...