tcsdoc Posted September 5, 2003 Share Posted September 5, 2003 I just started learning about slipstreaming XP installation and have successfully created a CD to install XP, Drivers, Reg Tweaks, and my apps (Nero, Winrar, Acrobat Reader 6, and NaV). Two problems still plague me.1. After installation of Winrar I need my rarreg.key file copied to my Winrar folder on the hard drive. This is the command I use...ECHO Installing WinRAR 3.20ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar320.exe /sECHO.ECHO Copying WinRar Registration Key...COPY "%systemdrive%\Install\rarreg.key" "%systemroot%\Program files\Winrar" The rarreg.key is in the $OEM$\$1\Install folder. The error message is "Cannot find path specified". I thought %systemroot% variable is C:\2. I tried to follow the instructions provided by WebMedic for creating a User account but it didn't work. Probably because I don't understand what files are needed and where they should go. A more detailed explanation would be greatly appreciated.Thanks! Link to comment Share on other sites More sharing options...
b0r3d Posted September 5, 2003 Share Posted September 5, 2003 %systemdrive% = Root of where you installed Windows. Ie. C:\%systemroot% = the windows directory. Ie C:\WINDOWS\You need to use this line:COPY "%systemdrive%\Install\rarreg.key" "%systemdrive%\Program files\Winrar" Link to comment Share on other sites More sharing options...
webmedic Posted September 5, 2003 Share Posted September 5, 2003 OK here is a better way to describe how to do it. http://board.MSFN.org/index.php?showtopic=8427this is only for setting up your user though your apps are another story and you should look here for more info on how to do apps.http://board.MSFN.org/index.php?showtopic=7462 Link to comment Share on other sites More sharing options...
tcsdoc Posted September 5, 2003 Author Share Posted September 5, 2003 Thanks to b0r3d and webmedic for their quick help. Within 10 minutes of my post my questions are answered. I've got my slipstreamed XP cd burned and am currently installing XP. I really appreciate your help. Link to comment Share on other sites More sharing options...
Twisted Maniac Posted September 5, 2003 Share Posted September 5, 2003 use a .vbs script and call that in your guirunonce;script looks like this:Option Explicit' On Error Resume NextDim objComputer, objGroup, objUser, objWSHNetwork, strComputerName, strFullName, strPassword, strUserNameSet objWSHNetwork = WScript.CreateObject("WScript.Network")strComputerName = objWSHNetwork.ComputerNameSet objComputer = GetObject("WinNT://" & strComputerName)Set objGroup = GetObject("WinNT://" & strComputerName & "/Administrators")strUserName = "username"strFullName = "full name"strPassword = "password"Set objUser = objComputer.Create("User", strUserName)objUser.SetPassword strPasswordobjUser.FullName = strFullNameobjUser.SetInfoobjGroup.Add "WinNT://" & strComputerName & "/" & strUserNameobjUser.SetInfoThose " " have to stay..but i guess you figured that out allready Link to comment Share on other sites More sharing options...
webmedic Posted September 5, 2003 Share Posted September 5, 2003 to late in the process. The way I described loads the user settings much earler so that everything is setup correctly. guirunonce doesn't run till after the first login which will happen as admin and then the progies wont be installed as your user. Link to comment Share on other sites More sharing options...
Twisted Maniac Posted September 5, 2003 Share Posted September 5, 2003 well..the mehtod u discribe makes the user autologin, what i need is to have 3 users (including Admin) but NOT autologin and WITH classic log-in screen....and the only way i know how to do that is using the [GuiRunOnce] option. Link to comment Share on other sites More sharing options...
tcsdoc Posted September 5, 2003 Author Share Posted September 5, 2003 Hmmm, must be doing something wrong. The installation went well but upon booting I get an error message stating "The system could not log you on. Make sure your user name and domain are correct". Under Control Panel | Users the User account is not there. I created the account manually and the system boots fine. I've listed my four files and seperated them with a line. (the seperating line is not in my file) I would appreciate if someone could look these over and spot my mistake. Here are my files...Winnt.sif located in the i386 folder:;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=No UnattendSwitch="Yes" WaitForReboot="No" DriverSigningPolicy=Ignore OemPnPDriversPath="Drivers\Audio;Drivers\Video"[GuiUnattended] AdminPassword="*" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=20 OemSkipWelcome=1[userData] ProductID=***** (key not listed) FullName="User" OrgName="None" ComputerName="Computer"[Display] BitsPerPel=16 Xresolution=1024 YResolution=768 Vrefresh=70[RegionalSettings] LanguageGroup=1[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[GuiRunOnce] %systemdrive%\install\applications.cmd______________________________________________cmdlines.txt located in the $oem$ folder:".\user.cmd"______________________________________________User.cmd located in the $oem$ folder:CLS@ECHO OFFECHO Adding Default User...net user User /addnet localgroup "administrators" User /addECHO.ECHO Applying Root Registry Tweaks...REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.regECHO.EXIT______________________________________________Windows Registry Editor Version 5.00 ;This will allow you to autologin.;Replace InsertName value with the Username you want to autologin with.;Replace InsertPassword value with the password corresponding to the Username specified.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="User""DefaultPassword"="""AutoAdminLogon"="1"(There is no space between the quotes in DefaultPassword)I don't know if it helps but this is the Applications.cmd file I use:CLS@echo offECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.ECHO Installing Symantec Antivirus Corporate 8.1ECHO Please wait...start /wait %systemdrive%\install\Applications\NAV\savceclt.exe /qnECHO.ECHO Installing WinRAR 3.20ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar320.exe /sECHO.ECHO Copying WinRar Registration Key...COPY "%systemdrive%\Install\rarreg.key" "%systemdrive%\Program files\Winrar" ECHO.ECHO Installing Adobe Reader 6ECHO Please wait...start /wait %systemdrive%\install\Applications\AdobeReader6\AR6.msi /QBECHO.ECHO Installing Microsoft JavaVM - Build 3809ECHO Please wait...start /wait %systemdrive%\install\JavaVM\MSJavx86_3809full.exe /Q:A /R:NECHO.ECHO Updating Microsoft JavaVM to 3810ECHO Please wait...start /wait %systemdrive%\install\JavaVM\msjavwu_3810update.exe /Q:A /R:NECHO.ECHO Installing Nero Burning ROM v6.0.0.11ECHO Please wait...start /wait %systemdrive%\install\Applications\Nero\Nero60011.exe /silent /norebootECHO.ECHO Registering Nero Burning ROM...REGEDIT /S %systemdrive%\install\Applications\Nero\register.regECHO.ECHO Installing Windows Media Player 9ECHO Please wait...start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:NECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opkECHO.EXIT Link to comment Share on other sites More sharing options...
Twisted Maniac Posted September 5, 2003 Share Posted September 5, 2003 net user User /addnet localgroup "administrators" User /addas far as i know it should be:net user User pass /addnet localgroup Administrators /ADD User Link to comment Share on other sites More sharing options...
webmedic Posted September 5, 2003 Share Posted September 5, 2003 nope his problem is that the reg file goes under $OEM$\$1\installThe installer will not see it if you dont put it there.Not to mention that this would work just as well for setting up multpile accounts. You simply define your accounts in user.cmd like the first one is with the acception that you may not want them all to have admin rights. Then you will need some code to get the old style login like so.;Disable Welcome Screen and uses Classic Logon[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"LogonType"=dword:00000000now the final thing is that no matter what you have to login with at least one user to install your apps through guirunonce. So you will still want to use the login stuff I posted. Now you can always disable the autologin after the first boot in with another reg hack like so.;This will allow you to autologin.;Replace InsertName value with the Username you want to autologin with.;Replace InsertPassword value with the password corresponding to the Username specified.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="User""DefaultPassword"="""AutoAdminLogon"="0"I think that is it anyway it is untested by me. There you all go. Happy campers all. Link to comment Share on other sites More sharing options...
tcsdoc Posted September 5, 2003 Author Share Posted September 5, 2003 My bad, i didn't list the location of the Reg_Root_Tweaks.reg file. It is in the Install folder along with all my other reg files and the application.cmd file. I still have to manually create the User account. I tried the help offered by Twisted Maniac but it didn't work (thanks for trying). I've got everything else working, even added Alcohol 120% and the modified Winntbbu.dll (jlo) file.I don't see a typing error so it must be something in the way the files are located or the order of the commands in the files.Hope someone can point me in the right direction... Glad CD-r's are cheap... Link to comment Share on other sites More sharing options...
webmedic Posted September 5, 2003 Share Posted September 5, 2003 not sure if this would block oyu up but this [GuiUnattended]AdminPassword="*"should be [GuiUnattended]AdminPassword=*I'm not sure why taht would keep you from loging in though. let me know if this works for youand yea no kiding i've been through about 50 cd-r's or more. I'm doing installs in virtual pc now to save myself from wasting to many more cd's Link to comment Share on other sites More sharing options...
tcsdoc Posted September 5, 2003 Author Share Posted September 5, 2003 Still no luck on the creation of the User account. I'm made all the changes suggested by others (thanks for all the help so far!). XP completes the installation and all the software works but I'm still logged in as Administrator. I can manually create the account and get into the system but I was hoping to get over this one last hurdle.Please read my earlier posts in this thread and see if anyone can find my mistake.TIA! Link to comment Share on other sites More sharing options...
devil270975 Posted September 5, 2003 Share Posted September 5, 2003 net user User /addnet localgroup "administrators" User /addas far as i know it should be:net user User pass /addnet localgroup Administrators /ADD Usertwisted you are wrong, tcsdoc, you are rightto set up a user account from the command line isnet user name /add net localgroup administrators name /addif you are only setting up 1 account it will auto login AS LONG as you dont set a password if you need to add more users create another cmd script to add them at a later time after you have logged in and you dont need this code in the registry to auto login, no matter how many people say you do, you dont, if you dont specify a password you dont need to, to add a password later use net user name passwordWindows Registry Editor Version 5.00 ;This will allow you to autologin.!!!!!!!YOU DONT NEED THIS!!!!!!!!!!!!!!!!!!;Replace InsertName value with the Username you want to autologin with.;Replace InsertPassword value with the password corresponding to the Username specified.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="User""DefaultPassword"="""AutoAdminLogon"="1" Link to comment Share on other sites More sharing options...
webmedic Posted September 5, 2003 Share Posted September 5, 2003 I didn't mention paswords because he did not seem to hve any set in his scripts. Are you trying to tell me that if I dont use the reg hack that it will autologin as my user anyway and not the admin account to do the irst install stuff? At any rate it does work like it is. I'm wondering if maybe some of his other settings differ from mine in his winnt.sif but I dont see how that could be it as all the important stuff is looking like mine. 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