Prober Posted January 12, 2008 Share Posted January 12, 2008 (edited) 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 January 12, 2008 by Prober Link to comment Share on other sites More sharing options...
jbm Posted January 12, 2008 Share Posted January 12, 2008 (edited) I would make a cmd script like thisRuninstall.cmdFOR %%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"exitand call it in guirunonce[GuiRunOnce]Command1="%path%\runinstall.cmd" replace %path with the path to the runinstall.cmdCan't answer you question avout disabling error reporting.but I alsways disable it because I'd rather just look in event viewerfor any errorsEDIT: als have you had a look at http://unattended.msfn.org/unattended.xp/ Edited January 12, 2008 by jbm Link to comment Share on other sites More sharing options...
Prober Posted January 14, 2008 Author Share Posted January 14, 2008 I have known this link very earlier.I knew your method very well -- the calling methodBut 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 resolutionhttp://www.msfn.org/board/Problem-Cmdexe-c...728#entry728728And 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 More sharing options...
jbm Posted January 14, 2008 Share Posted January 14, 2008 (edited) 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.cmdDon't know the answer to this question.When I was using GUIRUNONCE iI had oempreinstall set to yes and just raneverything from the harddrive. I use RUNONCEEX now.I wdid find this install from cd using guirunoncebut that doesn't really answer you question Edited January 14, 2008 by jbm Link to comment Share on other sites More sharing options...
Arie Posted January 15, 2008 Share Posted January 15, 2008 See the Unattended Guide. Link to comment Share on other sites More sharing options...
Prober Posted January 15, 2008 Author Share Posted January 15, 2008 (edited) 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 January 15, 2008 by Yzöwl Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now