Vectorferret Posted March 18, 2007 Share Posted March 18, 2007 (edited) I want to populate the Desktop and the My Documents folders of a user created in nLite's unattended install area. Is it as simple as just making the folders "$OEM$\userdir\Desktop" and "$OEM$\userdir\My Documents" and putting things in there? Or will those folders not be considered the same or copy at the wrong part of setup or something like that? If that won't work, how should I go about doing so?Edit - And am I also able to put things such as "My Music" or "My Pictures" inside that My Documents? Edited March 18, 2007 by Vectorferret Link to comment Share on other sites More sharing options...
strotee76 Posted March 19, 2007 Share Posted March 19, 2007 (edited) Create a batch file that does all the work for you. It will get launched at first login. You'll have to manually edit the WINNT.SIF file that's created once the Unattended part is complete in order for the batch file to run properly. In the batch file, have these lines:*assuming Bob is the name of the user you created@ehco offcopy %SYSTEMDRIVE%\temp\whatever_goes_on_desktop.abc "%SYSTEMDRIVE%\Documents And Settings\bob\desktop"copy %SYSTEMDRIVE%\temp\whatever_goes_in_mydocs.abc "%SYSTEMDRIVE%\Documents And Settings\bob\my documents"copy %SYSTEMDRIVE%\temp\whatever_goes_in_mymusic.abc "%SYSTEMDRIVE%\Documents And Settings\bob\my documents\my music"copy %SYSTEMDRIVE%\temp\whatever_goes_in_mypics.abc "%SYSTEMDRIVE%\Documents And Settings\bob\my documents\my pictures"rd /s /q %systemdrive%\tempOn the installation CD, create an $OEM$ folder at root level, then within that, create a $1 folder, then within that, create a temp folder. In this temp folder, place the items you need copied to desktop, my docs, my pictures, etc as well as the batch file. Call the batch file install.cmd and in the [GUIRunOnce] section of WINNT.SIF (if there is no GUIRunOnce section, then type it in at the bottom), include this:[GUIRunOnce]"%systemdrive%\temp\install.cmd" (leave quotes)Good luck. EDIT: Come to think of it, I believe there's a RunOnce tab in Unattended, just include the above line for where GUIRunOnce is and nLite should add it automatically. Of course, you'll still need to create the folders on the disc. Edited March 19, 2007 by strotee76 Link to comment Share on other sites More sharing options...
-I- Posted March 19, 2007 Share Posted March 19, 2007 dont use documents and settings - read about windows default stings like %windir% and %userprofiles% and all of those..... Link to comment Share on other sites More sharing options...
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