bushidou Posted October 19, 2004 Share Posted October 19, 2004 I know from $OEM$ Distribution Folders that $Docs is 'Documents and Settings'. But what if I want to place something at the desktop? Is the username (accountname) requred or can I make folders like $OEM$\$Docs\%ALLUSERS%\%Desktop% ? Link to comment Share on other sites More sharing options...
evilvoice Posted October 19, 2004 Share Posted October 19, 2004 well, you shouldnt use %'s...$Docs translates to Documents and Settings, so from there on your current hard drive, youd have to figure out what username and folder after need to be in the path...I use $Docs\All Users\Desktop Link to comment Share on other sites More sharing options...
mmarable Posted October 19, 2004 Share Posted October 19, 2004 Don't use $Doc to place anything in a specific user's profile with the exception of All Users.What will happen is the folders and files get copied to the hard drive during text mode setup. Then when the user first logs in, Windows finds that there already exists a user profile with that name ("juser" for example) and since it wasn't created for the user currently logging in, it creates a new set of folders and names it something like "juser.000" (I'm not sure about the exact extension added).I tried it once and got burned by this. There may be a way to work around it, but I didn't bother trying to find it. Maybe there's ar Registy key that associates a given profile folder with a user name. What I did was to do a simple copy of the icon from a folder on the CD to the desktop of the user that I created and call it from GUIRunOnceEx. So, the user logs in, the correct profile is created and the copy job copies the icon(s) to the desktop like I wanted. Link to comment Share on other sites More sharing options...
Nomi Posted October 19, 2004 Share Posted October 19, 2004 to place any file at the desktop you have three optionsmake directories like$OEM$\$Docs\All Users\Desktopand place files that u want at the desktoporkeep your file somewhere in $OEM$\$1\Installcopy that file to desktop by using command in cleanup.cmdcopy %systemdrive%\Install\MyFile.txt %UserProfile%\Desktop /yormake your own desktop folder, place your all shortcuts in it and specify it as your desktop shell folder in regedit during RunoneEx (your specified desktop might be shown after rebooting)[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]"Desktop"="D:\MyProfile\Mydesktop" Link to comment Share on other sites More sharing options...
lodar123 Posted October 19, 2004 Share Posted October 19, 2004 Best option to add something on desktop is do it with a command filelike@copy %systemdrive%\Install\filename.ext %UserProfile%\Desktopwhere %UserProfile% = c:\Documents and Settings\<logged in user>You can also use %AllUsersProfile% which is the All users folderThis is the easiest way in my opinion to clean the desktop of useless shortcuts or add shortcuts after all the installations.Hope this helps 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