djsleepy Posted October 16, 2004 Posted October 16, 2004 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
Yzöwl Posted October 16, 2004 Posted October 16, 2004 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.SettingsAddReg = Reg.UninstallCopyFiles = Inf.Copy[DefaultUninstall]DelReg = Reg.SettingsDelReg = Reg.UninstallDelFiles = 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now