Jump to content

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


Recommended Posts

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


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

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

Link to comment
Share on other sites

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

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