kenneth11zz Posted September 16, 2003 Share Posted September 16, 2003 Hi,I'm currently doing some testing using GreenMachine's script. Everything works fine except that creates the following user accounts in the Profile folder.All UsersAll Users.WindowsSkySky.Skyee2. Also, how do I prevent it from logging into the Adminstrator account and log into a selected user account?3. When I tried to create folders in "Start Menu > Programs" folder using this command in the Install.CMD "MKDIR "%DefaultUserProfile%\Start Menu\Programs\", I get access denied. Any reason why? Is this have to do with the fact it is trying to create it before first reboot?Here's sample of my test unattended files.cmdlines[COMMANDS]".\install.cmd"Install.CMD@ECHO OFFTITLE Installing default programs and settings to Default User.:: ---------- Update MS Components ECHO Starting DirectX 9 Install.START "" /WAIT ".\Install\directx\dxsetup.exe" /opkECHO.PAUSEECHO Press any key to continue...ECHO Installing Dot Net.START "" /WAIT ".\Install\NETFrame\netfx.msi" /QBECHO.PAUSEECHO Press any key to continue...ECHO Installing Windows Media Player 9.0ECHO Please wait...start "" /wait ".\Install\WMPlayer\mpsetupxp.exe" /Q:A /R:NECHO.PAUSEECHO Press any key to continue...:: ---------- Adjust the RegistryECHO Importing Registry Files. START "" /WAIT REGEDIT /S ".\Install\tweaks.reg"ECHO.PAUSEECHO Press any key to continue...COPY /y "%systemdrive%\Install\Windows\winxp.bat" "%ProgramFiles%"COPY /y "%systemdrive%\Install\Windows\winxp.reg" "%ProgramFiles%"COPY /y "%systemdrive%\Install\Windows\winxp.bat.lnk" "%DefaultUserProfile%\Start Menu\Programs\Startup\"ECHO.ECHO Creating default folders in Start Menu...MKDIR "%DefaultUserProfile%\Start Menu\Programs\Business"MKDIR "%DefaultUserProfile%\Start Menu\Programs\Internet"MKDIR "%DefaultUserProfile%\Start Menu\Programs\Media"MKDIR "%DefaultUserProfile%\Start Menu\Programs\Unsort"MKDIR "%DefaultUserProfile%\Start Menu\Programs\Utils"MKDIR "%DefaultUserProfile%\My Documents\Downloads"MKDIR "%DefaultUserProfile%\My Documents\My Files"ECHO.:: ---------- Add files I do likeECHO Installing Custom Windows Files.XCOPY /E /C /Y /Q /H ".\Install\Profiles\*.*" "%profilesdir%\"ECHO.PAUSEECHO Press any key to continue...ECHO Removing useless folders.RMDIR /S /Q "%systemdrive%\Program Files\ComPlus Applications"RMDIR /S /Q "%systemdrive%\Program Files\Online Services"RMDIR /S /Q "%systemdrive%\Program Files\Uninstall Information"ECHO.PAUSEECHO Press any key to continue...ECHO Removing HotFix Log Files.DEL /F /Q "%SYSTEMROOT%\*.log"DEL /F /Q "%SYSTEMROOT%\*.txt"DEL /F /Q "%SYSTEMROOT%\*.tmp"DEL /F /Q "%SYSTEMROOT%\TEMP\*.*"ECHO.PAUSEECHO Press any key to continue...EXITWINNT.SIF;SetupMgrTag[Data]AutoPartition=0MsDosInitiated="0"UnattendedInstall="Yes"[Unattended]AutoActivate=No;CrashDumpSetting="0";DisableDynamicUpdates=YesDriverSigningPolicy="Ignore";FileSystem=LeaveAlone;Hibernation=0NoWaitAfterTextMode=1NoWaitAfterGUIMode=1OemSkipEula=YesOemPreinstall=YesRepartition=NoTargetPath=\WINDOWSUnattendMode=FullUnattendedUnattendSwitch="Yes"WaitForReboot="No";OemPnPDriversPath="path1;path2;path3 ...etc."[GuiUnattended]AdminPassword=*;EncryptedAdminPassword=NoOEMSkipRegional=1TimeZone=4OemSkipWelcome=1;AutoLogon=No;AutoLogonCount=1;ProfilesDir="%systemdrive%\Documents and Settings\"[UserData]ProductKey=***FullName="Sky"OrgName="Home"ComputerName=Skyee;[Display];BitsPerPel=16;Xresolution=1024;YResolution=768;Vrefresh=70;[Regional Settings];LanguageGroup=15,7,8,10,1[Identification]JoinWorkgroup="WORKGROUP"[Networking]InstallDefaultComponents=Yes[TapiLocation]CountryCode=1Dialing=Tone;AreaCode=415;LongDistanceAccess="1"[Branding]BrandIEUsingUnattended=Yes;[URL];[Proxy][Components];MAIN SECTIONChat=offDialer=off;Fax ServicesFax=off;FrontPage ExtensionFP_Extensions=off;HyperTerminalHyperTrm=off;MSN Explorermsnexplr=off;Outlook ExpressOEAccess=off;Sound Recorderrec=off;volume Controlvol=on;Windows Messengermsmsgs=off;ACCESSORIES SECTION;Calcaulatorcalc=on;character Mapcharmap=on;Clipboard ViewerClipbook=off;Desktop Wallpapersdeskpaper=off;Document Templatestemplates=off;Mouse PointersMousePoint=off;Paintpaint=On;GAMES SECTIONFreecell=offHearts=offMinesweeper=offPinball=offSolitaire=offSpider=offZoneGames=off;HIDDEN COMPONENTS SECTION;Accessibility WizardAccessopt=on;Windows Automatic Update SericeAutoUpdate=off;Sample Sound Clipsmedia_clips=off;Utopia Sound Schememedia_utopia=on[Shell];DefaultStartPanelOff="No";DefaultThemesOff="No";CustomDefaultThemeFile="%systemroot%\Resources\Themes\MyTheme.theme"[GuiRunOnce]-Kenneth Link to comment Share on other sites More sharing options...
GreenMachine Posted September 16, 2003 Share Posted September 16, 2003 1) Not sure about the duplicate users. Looks like you're are on a server, no?2) Webmedic has an answer to this already posted here somewhere.3) DefaultUserProfile does not exist. PROFILESDIR exists during pre-gui reboot, ALLUSERSPROFILE exists after. You can use %PROFILESDIR%\Default User (wrapped in quotes) in your example. I would just create all your menu items. then xcopy, instead of making each directory. No need to install them to the HDD first: you can copy from where you are (CD:\$OEM$ at this point). Link to comment Share on other sites More sharing options...
webmedic Posted September 16, 2003 Share Posted September 16, 2003 well I have only seen this a few times and it happens when you dont delete your hard drive durring install. I delete my partitions and install fresh for testing right now but if you only delete your windows directory and do an install that way windows will delete your user accounts or move them out of the way like you see there and make new new ones from scratch.if you did something else I'm really baffled as to why you would get that but if you want a user setup durring install that works every time I use it try this thread.http://board.MSFN.org/index.php?showtopic=8632 Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 16, 2003 Author Share Posted September 16, 2003 I'm installing from a CD directly on the desktop computer. I did choose L to delete partition and then the next screen it said "deleting windows files". Maybe I have to format the partition. I'll test it again and see what happen.GreenMachine, if the "Default User" folder doesn't exist, how does the registry tweaks get applied to the "Default User" then? Looking at the User Profile folders now, I notice the "Default User" profile wasn't created after the installation. Only 5 user profiles is created:AdminstratorSkySky.SkyeeAll UserAll User.Windows-Kenneth Link to comment Share on other sites More sharing options...
GreenMachine Posted September 16, 2003 Share Posted September 16, 2003 Sorry, I'll try to clarify:The Variable DEFAULTUSERPROFILE never exists.The directory %PROFILESDIR%\Default User (Most likely C:\Documents and Settings\Default User) does exist, and contains a file named ntuser.dat. This dat file is where user specific registry settings are stored (The HOT_KEY_CURRENT_USER registry hive). If you want to reference this folder during setup (part 1), you may use the %PROFILESDIR% variable. There is no environment variable to reference this path after part 1 setup, or during normal operation. You can either derive it from ALLUSERSPROFILE, or assume it to be in %SYSTEMDRIVE%\Documents and Settings\Default User if you did not set the PROFILESDIR variable to something else in WINNT.SIF.You do not see the Default User directory if you have not selected to show hidden files.I have seen that All Users.WIndows thing before, and now that Webmedic has shaken the dust of ... I remember that this will happen if a directory of USERNAME already exists when the system attempts to create the user profile. You could conceivibly create the file C:\Documents and Settings\All Users\some.txt, and the system would not use the same directory to store a new profile of the same name. Quick and dirty workaround: delete the directories, and the system will re-create them with the correct directory names next logon of that user. Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 17, 2003 Author Share Posted September 17, 2003 You are right. I forgot to turn off the hidden system feature in Windows Explorer. I normally have that turn on. hehe...I just burn another copy and am doing a second test. But for some reason this time, I'm getting this error message when the setup is copying the setup files over to the hard drive."Setup cannot copy the file: bootcfg.exe"So I insert my orginal Windows Setup CD and it is fine but also complaints "Setup cannot copy the file..." for another file. And I have to switch back to the Unattended Setup CD and it copy it fine. Any reason why it is causing? I have check my cd-rw is good if I burn it another copy of the orginal Windows Setup CD. So, definitely, it's not the cd-rw disc that is causing the problem.The only difference is that I added the $OEM$ stuff and winnt.sif to i386 folder.Anyone else getting this error before. I tried to search this forum but no such luck.-Kenneth Link to comment Share on other sites More sharing options...
GreenMachine Posted September 17, 2003 Share Posted September 17, 2003 Strange as it may seem I had the exact same thing (with different files). I was convinced it should work, and I burned 3 bad CDs. Could not get those bad files on another CD drive, either. (Different files each time.) I lowered the burn speed from 52X to 32X, and it worked. It had been working at 52X for a while. Bottom line - one never knows! Best test would be to install to VirtualPC through a mounted ISO file. I vote for hardware failure, not software, and VirtualPC will tell you for sure. Link to comment Share on other sites More sharing options...
webmedic Posted September 17, 2003 Share Posted September 17, 2003 not only that but while working on cooker for mandrake the last few years we found out some cdrom droves dont like to boot from 700 meg iso's. Well that is if you have close to 700 megs of data on them as soon as we backed off to 650 meg iso's all was good again. Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 17, 2003 Author Share Posted September 17, 2003 Guess what, it seem the cause to my cd problem is that I was using WinISO to add files to the ISO which this time it didn't work. Guess the shortcut isn't foolproof. So I use the long method where u manually copy cd content to hd and then burn it with a bootable img. That solve the issues.-Kenneth 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