July 14, 200818 yr 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, 200818 yr by DJ_Shay
July 15, 200818 yr 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...
July 16, 200818 yr Author 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!
July 16, 200818 yr 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.
July 16, 200818 yr Author 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..
July 16, 200818 yr 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
July 16, 200818 yr Author 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, 200818 yr by DJ_Shay
July 16, 200818 yr 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/
July 16, 200818 yr Author 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
July 17, 200818 yr Author 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?
July 17, 200818 yr 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...
Create an account or sign in to comment