bmn Posted July 16, 2005 Posted July 16, 2005 hi this is my wpihttp://rapidshare.de/files/3094625/w.rar.htmlofcourse pretty old vesion.but i like simple version.iam facing problem with poping up of dos windows.i tried statx etc tools but no use.i even tried to convert wpi.cmd to exe file.then my wpi.exe stops saying wpi.hat not found.two windows r poping up while using wpi.exe,one is of wpi.cmd and othet one is shutdown.exe window.is it possible to eliminate these two.pls help me and feel free to edit above wpi.and another one is is it possible to place installation progress bar for applications while installation(in wpi).thanksbmn
blinkdt Posted July 17, 2005 Posted July 17, 2005 You can accomplish all of the above and more with AutoIt:You can completely hide batch files by calling them from within an AutoIt script:AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(1)Run( @ScriptDir & "\cleanup.cmd", "", @SW_HIDE)This AutoIt script will shut down the machine:AutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 4)BlockInput(1)Shutdown(1)AutoIt can be used to create installation progress indicators as well. The possibilities are endless. My advice: if you are going to play in the unattended world, get to know AutoIt. It's a great tool in your arsenal.
Kelsenellenelvian Posted July 17, 2005 Posted July 17, 2005 installation progress indicators???Really ? Please tell me more blinkdt.I do have a little exprience with auto-it.
blinkdt Posted July 17, 2005 Posted July 17, 2005 AutoIt v.3 has a "ProgressOn" function that "Creates a customizable progress bar window." The example fro the AutoIt help file:ProgressOn("Progress Meter", "Increments every second", "0 percent")For $i = 10 to 100 step 10 sleep(1000) ProgressSet( $i, $i & " percent")NextProgressSet(100 , "Done", "Complete")sleep(500)ProgressOff()Trouble is that you have to configure the timings manually in this example. I played with it once to get it working with an actual install, it was pretty messy in my case. You may want to check the AutoIt forum (not associated with MSFN) to see if someone has created a script that runs in conjunction with a running process, or contact MHz or NoLogic for help with this one. I did not enjoy the look and feel of this one and eventually punted, but it is a viable option.
bmn Posted July 17, 2005 Author Posted July 17, 2005 u mean progress bar for each application?@blinkdt:pls check PM
blinkdt Posted July 17, 2005 Posted July 17, 2005 u mean progress bar for each application?In theory, yes. In practice, however, the ProgressOn fuction just produces a neat little graphic. It is not tied to anything. So to have it function as a REAL progress feature you would have to contrive a way to tie it to a running process using AutoIt, probably all from within one script. And that defeats the six (6) cmd= feature of WPI, which in my opinion is WPI's real strength.That's the only way my feeble thinking can envision it working. Hard to explain, sorry. At the end of the day, the running list produced by RunOnceEx is a nice progress indicator anyway, don't you think?
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