Jump to content

Six diffrente questions (cmd, exe & XP install)


Recommended Posts

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:

67855799ta8.png

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 by DJ_Shay
Link to comment
Share on other sites


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

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

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

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

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.sif
  • runonceex.ext
  • cmdlines.txt
  • svcpack.inf
  • dosnet.inf
  • txtsetup.sif
  • Listing of any addons/software included
  • Your CD-ROM file structure showing all the locations of the added files/directories
  • Any installation scripts you've created/modified

Link to comment
Share on other sites

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; <------- Problem
UnattendSwitch="Yes"
OemPreinstall="Yes"
OemSkipEula="Yes"
FileSystem=*
WaitForReboot="No"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
DriverSigningPolicy=Ignore
NonDriverSigningPolicy=Ignore

Please 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 by DJ_Shay
Link to comment
Share on other sites

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

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

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Run" /v command_0 /d "<command>" /f

Substitute 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...