DJ_Shay Posted July 14, 2008 Share Posted July 14, 2008 (edited) Hi,I have six questions:1. How can I run a *.exe file from *.cmd file?2. Can I add a *.exe run command to the startup list?3. How can I register the name and password af the administrator during the unattended install? I get the following error:I do not mean to add a user, but to input the Admin data.I tried to install (the unattended XP) with MS Virtual PC 2007 but I got this error.4. How do I copy a single file from within a *.cmd file? [solved]5. Is it OK to add a comment after a command in a *.cmd in the same line? (e.g "RegEdit /S RegTweak.reg ;LOL!!!1!") [solved]6. Is there a difference between "OEM" and "$OEM$"?Thanks in advance Edited July 16, 2008 by DJ_Shay Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 15, 2008 Author Share Posted July 15, 2008 Someone, please answer me.. Link to comment Share on other sites More sharing options...
Martin H Posted July 15, 2008 Share Posted July 15, 2008 How about making just a little effort yourself...1. Read the MSFN 'Unattended Windows' guide. (linked at the top)2. Read/search on the forums/google.3. Post here if still unsure about something... Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 15, 2008 Author Share Posted July 15, 2008 I posted what I am not sure about..please, I need some help. Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 16, 2008 Author Share Posted July 16, 2008 2 of them solved, but about question 3 I have no idea..Its not in the guide.I can't even count how many time I've read that guide..And the other questions, they might be in the guide but if so, it just wasn't clear enough.Please answer my questions! Link to comment Share on other sites More sharing options...
Yzöwl Posted July 16, 2008 Share Posted July 16, 2008 3. What makes you think that the error message you see has got anything to do with an Administrator name and password?In order to help us solve your problem you will need to supply us with your full structure and your pertinent installation files etc.Due to the expected size(s) please ensure that anything you provide is attached as a compressed archive. Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 16, 2008 Author Share Posted July 16, 2008 3. What makes you think that the error message you see has got anything to do with an Administrator name and password?After I clicked "OK", this what I was asked to fill.In order to help us solve your problem you will need to supply us with your full structure and your pertinent installation files etc.What exactly do you need?.there are so much files.. Link to comment Share on other sites More sharing options...
Yzöwl Posted July 16, 2008 Share Posted July 16, 2008 The best way to catch errors is to start with a few files/mods etc. then keep on increasing until you have everything you need. However if you've added loads we're possibly going to need, (minus any keys/passwords):the winnt.sifrunonceex.extcmdlines.txtsvcpack.infdosnet.inftxtsetup.sifListing of any addons/software includedYour CD-ROM file structure showing all the locations of the added files/directoriesAny installation scripts you've created/modified Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 16, 2008 Author Share Posted July 16, 2008 (edited) I made this ISO with 2 stages.1. I added lots of stuff (tweaks, applications, etc and it worked).2. I tried to make it fully automated (and here is the problem).In my opinion, the source of the problem is in winnt.sif:[Unattended]UnattendMode=FullUnattended; <------- ProblemUnattendSwitch="Yes"OemPreinstall="Yes"OemSkipEula="Yes"FileSystem=*WaitForReboot="No"NoWaitAfterTextMode=1NoWaitAfterGUIMode=1DriverSigningPolicy=IgnoreNonDriverSigningPolicy=IgnorePlease note the marked line.I think I haven't supplied enough information for it to be fully automated..I used nLite again and made it fully automatic with it and then there where no error messages.Because I Re-edited using nLite it deleted some of my modifications, so it's not a good solution, but at least I know that it's fixable without starting all over again.What do you think? Edited July 16, 2008 by DJ_Shay Link to comment Share on other sites More sharing options...
Martin H Posted July 16, 2008 Share Posted July 16, 2008 Yes, as the error message states, then "unattended setup" cannot continue due to missing parameter(s), and since the unattended parameters are defined in winnt.sif, then please post the complete contents of that file(in codebox tags please).1. How can I run a *.exe file from *.cmd file?MSFN guide : http://unattended.msfn.org/unattended.xp/view/web/30/2. Can I add a *.exe run command to the startup list?If you mean installing apps during/after Windows setup, then it's here :MSFN guide : http://unattended.msfn.org/unattended.xp/view/web/32/6. Is there a difference between "OEM" and "$OEM$"?Yes, and the $OEM$ is described here :MSFN guide : http://unattended.msfn.org/unattended.xp/view/web/18/ Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 16, 2008 Author Share Posted July 16, 2008 2. Can I add a *.exe run command to the startup list?If you mean installing apps during/after Windows setup, then it's here :MSFN guide : http://unattended.msfn.org/unattended.xp/view/web/32/No, I meant that each time the computer is reboots or is turned on, the command will take place.See examples in: Start->Run->msconfig->Sturtup Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 17, 2008 Author Share Posted July 17, 2008 I solved the problem..It seems I was right, I added more info to the Winnt.sif file and the problem was gone.Now the only question that remained from the six is: how do I add a run command to the startup? Link to comment Share on other sites More sharing options...
Martin H Posted July 17, 2008 Share Posted July 17, 2008 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Run" /v command_0 /d "<command>" /fSubstitute with your own command(s), or batchfile to run...Note: if you need any extra quotes in those commands, then add a backslash before each extra quote...You could also make a batchfile with the commands and then get it copied over to the startup folder during Windows setup :Place the bachfile into : '$OEM$\$Docs\All Users\Start Menu\Programs\Startup\'.Also, for this you need to have 'OemPreinstall=Yes' in winnt.sif... Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 17, 2008 Author Share Posted July 17, 2008 (edited) Thanks..Now everything is working. Edited July 17, 2008 by DJ_Shay 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