James S. Martin wrote:
>I'm so glad you asked this question. I was banging my head on this all last
>week and figured a few things out. To my knowledge there is no perl module
>that will show you what child processes were spawned from a particular
>parent process. I was trying to accomplish the same thing as you, getting
>the status of a sliently installed application (InstallShield install
>right?)
>setup -s -f1 setup.iss
>and it spawns a process with a ._MP extension.
>Now here's the cool part, it seems InstallShield actually does display the
>progress of the install, but it's a HIDDEN window! So, by writing a very
>simple script, I was able to tell Windows to make the HIDDEN window VISIBLE.
>BAM! Now I have a complete progress indicator for whatever app was being
>silently installed. (In this case, Cold Fusion). Here's my code:
[snip]
Well, that's pretty cool. Also, when you run:
setup -s -f1 setup.iss
InstallShield writes a setup.log file with the following at the end:
ResultCode=X
where X can be:
Result Code Meaning
0 Success.
-1 General error.
-3 Required data not found in the SETUP.ISS file.
-4 Not enough memory available.
-5 File does not exist.
-6 Cannot write to the response file.
-9 Not a valid list type (string or number).
-10 Data type is invalid.
-11 Unknown error during setup.
-12 Dialogs are out of order.
So, I just check for the existence of the file and parse out the
ResultCode.
cheers,
-mm
--
Martin A. Miller, Systems Programmer, Bon Vivant At-Large & Stunt Borg.
Walgreens Corporate IT: Integration Architecture
---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]