Ringfinger69 Posted January 18, 2005 Share Posted January 18, 2005 Quick question,Is there a way to make and out text file for an error log of everything that is going on during unattended install. Mainly for the silent install of all my applications. Instead of sitting and watching the whole process, I just want to view a log of everything that is going on. Any comments on my question(s) would be greatly appreciated. Thanks in advance! Link to comment Share on other sites More sharing options...
prathapml Posted January 18, 2005 Share Posted January 18, 2005 It is definitely possible. I already do it.link to postTake a look at tip #18 (logging a CMD file).Hoping this helps.... Link to comment Share on other sites More sharing options...
jquintino Posted January 18, 2005 Share Posted January 18, 2005 this works with runonceex? Link to comment Share on other sites More sharing options...
Ringfinger69 Posted January 18, 2005 Author Share Posted January 18, 2005 i'm curious whats supposed to be in the "postIns.cmd" Link to comment Share on other sites More sharing options...
prathapml Posted January 18, 2005 Share Posted January 18, 2005 jquintino, there's no need to use something like this with runonceEX. This logging does nothing except for taking the output of the .CMD file running and logging it to a text file.For example, echo this is a test >> %systemdrive%\temp\log.txtTry that, and you will see what I mean.Similarly, you can just run a command to send the ENTIRE batch-file's output into a text-file.start /b /wait %systemdrive%\install\filename.cmd >> %systemdrive%\temp\log.txtYou need to run that command from one batch-file to get another batch-file's output logged.Ringfinger, there's nothing special about postins.cmd - its just one of the batch-files being logged that's all. You can call your own batch-file by any name and log it. For example, let's say you have a batch-file called app-installs.cmd in your "$OEM$\$1\install\" folder on the CD. (I assume you know how it gets copied, and where it gets copied to.) So your main.cmd file would be run from GUIrunOnce (isn't it ?) and in turn it would call app-installs.cmd in the same CMD window and log its output.main.cmdstart /b /wait %systemdrive%\install\app-installs.cmd >> %systemroot%\temp\uA-log.txtYou can log it to anywhere you want.I hope I was able to explain clearly....Please post back with your results, and if you have anymore questions just ask! Link to comment Share on other sites More sharing options...
Ringfinger69 Posted January 18, 2005 Author Share Posted January 18, 2005 !!!!THANKS!!!! You've been most helpful 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