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.

Commands in [GuiRunOnce] and disable first logon error in WINNT.SIF.

Featured Replies

What are the commands that can be used in [GuiRunOnce]? Help!!

Well. To be more specific to my question, I want to run a file called Install.cmd in a location if it exist only.

I input these lines in [GuiRunOnce] section but it did not work, in return, the error messages appear at first logon:

[GuiRunOnce]

Command1="If exist C:\Software\Install.cmd Install.cmd"

Command2="If exist D:\Software\Install.cmd Install.cmd"

Command3="If exist E:\Software\Install.cmd Install.cmd"

Command4="If exist F:\Software\Install.cmd Install.cmd"

......

The error messages I got are many "Windows cannot find the file "If" in..." ....

Before that, I try to input the lines:

Command1="C:\Software\Install.cmd"

Command1="D:\Software\Install.cmd"

......

But the error message is "Windows cannot find the file Install.cmd...", followed by the other file not found error message for other location. Then I know this means that the file must be found in the specific location.

So I try to disable first logon error message, but I don't know how to do that. I am not sure if it can be done in WINNT.SIF.

In WINNT.SIF, in the [PcHealth] section, there is an entry (ER_Display_UI=0) to disable error notification.

But it seems like it will not only disable error message at first logon, but forever unless you reactivate it...

So I would like to ask for your ideas and I would very appreciate that. Thank you guys!

Edited by Prober


I would make a cmd script like this

Runinstall.cmd

FOR %%i IN (D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) DO IF EXIST "%%i\Software\Install.cmd Install.cmd" "%%i\Software\Install.cmd Install.cmd"
exit

and call it in guirunonce

[GuiRunOnce]

Command1="%path%\runinstall.cmd" replace %path with the path to the runinstall.cmd

Can't answer you question avout disabling error reporting.

but I alsways disable it because I'd rather just look in event viewer

for any errors

EDIT: als have you had a look at http://unattended.msfn.org/unattended.xp/

Edited by jbm

  • Author

I have known this link very earlier.

I knew your method very well -- the calling method

But by using this method, Runinstall.cmd will not be deleted after it has done everything, OR if the Install.cmd do not exist.

So this don't reach the perfection that I have always like to practise. hahaha.....

One more thing, although it do call the Install.cmd (if it exist), there're still some problems arise.

I have got a resolution for this via our members. MSFN the best!

View this if you want to know the resolution

http://www.msfn.org/board/Problem-Cmdexe-c...728#entry728728

And a new question here.

In [GuiRunOnce] section in WINNT.SIF,

Which command can be used to run applications or .cmd files on the Windows Setup CD (where the WINNT.SIF above located) ?

Can I use this command:

Command1="..\i386\Runinstall.cmd" -------------- ?

Well I was only sure that this type of command can be used in CMDLINES.TXT.

..\i386\Runinstall.cmd -----> %CDROM%\i386\Runinstall.cmd

And a new question here.

In [GuiRunOnce] section in WINNT.SIF,

Which command can be used to run applications or .cmd files on the Windows Setup CD (where the WINNT.SIF above located) ?

Can I use this command:

Command1="..\i386\Runinstall.cmd" -------------- ?

Well I was only sure that this type of command can be used in CMDLINES.TXT.

..\i386\Runinstall.cmd -----> %CDROM%\i386\Runinstall.cmd

Don't know the answer to this question.

When I was using GUIRUNONCE iI had oempreinstall set to yes and just ran

everything from the harddrive. I use RUNONCEEX now.

I wdid find this install from cd using guirunonce

but that doesn't really answer you question

Edited by jbm

  • Author

hmm.. what I can say is this answer just don't meete my satisfication.

But anyway, thank you for kindly replying.

-------------------------------------------------------------------------------------------

Repeated question removed by Moderator

Edited by Yzöwl

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.