Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Six diffrente questions (cmd, exe & XP install)

Featured Replies

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

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...

  • Author

I posted what I am not sure about..

please, I need some help.

  • 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!

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.

  • 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..

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

  • 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; <------- 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

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/

  • 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

  • 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?

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...

  • Author

Thanks..

Now everything is working.

Edited by DJ_Shay

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.