PDA

View Full Version : Wait/No Wait



NewsArchive
10-20-1997, 12:00 AM
I can't get InstallShield to recognize when my extension application has
finished running unless I give a dialog box that the user can click.

I have put in a timer to have my extension app wait - thinking that
InstallShield just didn't have time to keep up - and that did not solve
the problem.

How can I have my app run, InstallShield wait, and then InstallShield
pick back up when my app is done? I need to do this because my app
sometimes will show a dialog box (depending on if the user has a
previous version installed) and other times will just continue (if there
is not a previous version installed).

Thanks for any help,
Brian

NewsArchive
10-20-1997, 12:00 AM
On Mon, 20 Oct 1997 16:14:05 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
wrote:
>I can't get InstallShield to recognize when my extension application has
>finished running unless I give a dialog box that the user can click.

You should have an option called "Wait for the program to finish before
returning to the installation". It should be checked. InstallShield uses
the Window handle to find out if that window is still active and hence your
extension still busy.

Stefan
ellipse data systems

NewsArchive
10-21-1997, 12:00 AM
I have tried it both ways and can't get it to do what I want.

My EXE does this:
If the user has a previous install it prompts the user to answer a question.
If the user does not have a previous install, it just continues without
prompting the user.

The problem is:
If I check "wait for the program..." and there is no previous install, then
InstallShield never starts back after my EXE is finished.
If I do not check "wait for the program..." and there is a previous install,
then InstallShield continues without waiting for the user to answer the prompt.

Maybe my question is: What Windows message does my application need to send
when it is complete so that InstallShield knows to continue?

Thanks for your help.

Brian

Stefan Paetow wrote:

> On Mon, 20 Oct 1997 16:14:05 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
> wrote:
> >I can't get InstallShield to recognize when my extension application has
> >finished running unless I give a dialog box that the user can click.
>
> You should have an option called "Wait for the program to finish before
> returning to the installation". It should be checked. InstallShield uses
> the Window handle to find out if that window is still active and hence your
> extension still busy.
>
> Stefan
> ellipse data systems

NewsArchive
10-21-1997, 12:00 AM
On Tue, 21 Oct 1997 07:59:20 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
wrote:
>If I check "wait for the program..." and there is no previous install, then
>InstallShield never starts back after my EXE is finished.
>If I do not check "wait for the program..." and there is a previous install,
>then InstallShield continues without waiting for the user to answer the prompt.

Ahh.... Have you taken a look at what your EXE returns as value? I presume
your application is written in C/C++.

>Maybe my question is: What Windows message does my application need to send
>when it is complete so that InstallShield knows to continue?

InstallShield uses the Window handle of your executable. There is no way
that you can send a response back. There is a Knowledge Base article on
this in the Express Knowledge Base.

Stefan
ellipse data systems

NewsArchive
10-23-1997, 12:00 AM
My EXE is written in Delphi 1.0 - 16 bit. The EXE doesn't return anything that I
know of. I guess I just need to leave in the user input dialog box so InstallShield
knows to pick back up. It is not so user friendly, but it works.

Thanks for your help.

Stefan Paetow wrote:

> On Tue, 21 Oct 1997 07:59:20 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
> wrote:
> >If I check "wait for the program..." and there is no previous install, then
> >InstallShield never starts back after my EXE is finished.
> >If I do not check "wait for the program..." and there is a previous install,
> >then InstallShield continues without waiting for the user to answer the prompt.
>
> Ahh.... Have you taken a look at what your EXE returns as value? I presume
> your application is written in C/C++.
>
> >Maybe my question is: What Windows message does my application need to send
> >when it is complete so that InstallShield knows to continue?
>
> InstallShield uses the Window handle of your executable. There is no way
> that you can send a response back. There is a Knowledge Base article on
> this in the Express Knowledge Base.
>
> Stefan
> ellipse data systems

NewsArchive
10-23-1997, 12:00 AM
On Thu, 23 Oct 1997 11:42:39 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
wrote:
>My EXE is written in Delphi 1.0 - 16 bit. The EXE doesn't return anything that I
>know of. I guess I just need to leave in the user input dialog box so InstallShield
>knows to pick back up. It is not so user friendly, but it works.

But your installation is a 32-bit installation? If so... then InstallShield
can not retrieve the Window handle. Otherwise we will have to look at your
problem again.

Stefan
ellipse data systems

NewsArchive
10-27-1997, 01:00 AM
Let me start over...
I am making a 16-bit app and 16-bit installation.
I am using extensions to check to see if the user has a previous version of my app
installed.
If the extension finds a previous version, it prompts the user to perform certain
operations.
If the extension does not find a previous version, I want my extension to exit without
prompting the user. Right now, InstallShield makes me prompt the user before exiting the
extension. If I do not prompt the user, InstallShield never starts back and I have to
use ALT F4 to exit.

So, I thought that maybe I have to notify InstallShield somehow that my extension is
finished - but I don't know how. It seems that my extension notifies InstallShield if my
extension forces user input.

I can set InstallShield to NOT WAIT but InstallShield will continue even when I want the
user's input during the extension. I need NO WAIT if there is no previous version and I
need WAIT if there is a previous version. So, I keep it at WAIT.

Don't worry too much about this but if you can figure out what I need to do (I'm pretty
sure it's me :)), I certainly would appreciate it.

Thanks,
Brian

Stefan Paetow wrote:

> On Thu, 23 Oct 1997 11:42:39 -0400, Brian Eidex <Brian.Eidex@ndcorp.com>
> wrote:
> >My EXE is written in Delphi 1.0 - 16 bit. The EXE doesn't return anything that I
> >know of. I guess I just need to leave in the user input dialog box so InstallShield
> >knows to pick back up. It is not so user friendly, but it works.
>
> But your installation is a 32-bit installation? If so... then InstallShield
> can not retrieve the Window handle. Otherwise we will have to look at your
> problem again.
>
> Stefan
> ellipse data systems

NewsArchive
10-27-1997, 01:00 AM
On Mon, 27 Oct 1997 11:34:34 -0500, Brian Eidex <Brian.Eidex@ndcorp.com>
wrote:
>If the extension does not find a previous version, I want my extension to exit without
>prompting the user. Right now, InstallShield makes me prompt the user before exiting the
>extension. If I do not prompt the user, InstallShield never starts back and I have to
>use ALT F4 to exit.

And you are using Delphi right? Can you send me a copy of your extension
that I can take a look at, e.g. the source etc? Mail me at the address that
is specified as my email.

I'll come back to you.

Stefan
ellipse data systems

NewsArchive
10-31-1997, 01:00 AM
I certainly appreciate your help - but don't think I'll send the source
code. It's just not that big of a deal.

If you are just curious, I'll get it for you - I'm at home and the
source is at work.

Thanks,
Brian

Stefan Paetow wrote:
>
> On Mon, 27 Oct 1997 11:34:34 -0500, Brian Eidex <Brian.Eidex@ndcorp.com>
> wrote:
> >If the extension does not find a previous version, I want my extension to exit without
> >prompting the user. Right now, InstallShield makes me prompt the user before exiting the
> >extension. If I do not prompt the user, InstallShield never starts back and I have to
> >use ALT F4 to exit.
>
> And you are using Delphi right? Can you send me a copy of your extension
> that I can take a look at, e.g. the source etc? Mail me at the address that
> is specified as my email.
>
> I'll come back to you.
>
> Stefan
> ellipse data systems

NewsArchive
11-01-1997, 01:00 AM
On Fri, 31 Oct 1997 22:39:17 -0500, Brian Eidex <brianeidex@mindspring.com>
wrote:
>I certainly appreciate your help - but don't think I'll send the source
>code. It's just not that big of a deal.

Brian,

I plan on resolving this issue one way or the other... I need that EXE of
yours to do it. What I will do is write a small bridging DLL that you can
call as an extension that will keep on looking for your EXE window.

Stefan
ellipse data systems

NewsArchive
11-06-1997, 01:00 AM
Are you still working on it or did you give up?

Stefan Paetow wrote:

> On Fri, 31 Oct 1997 22:39:17 -0500, Brian Eidex <brianeidex@mindspring.com>
> wrote:
> >I certainly appreciate your help - but don't think I'll send the source
> >code. It's just not that big of a deal.
>
> Brian,
>
> I plan on resolving this issue one way or the other... I need that EXE of
> yours to do it. What I will do is write a small bridging DLL that you can
> call as an extension that will keep on looking for your EXE window.
>
> Stefan
> ellipse data systems

NewsArchive
11-07-1997, 01:00 AM
On Thu, 06 Nov 1997 08:25:27 -0500, Brian Eidex <Brian.Eidex@ndcorp.com>
wrote:
>Are you still working on it or did you give up?

Still looking into it :)

I don't give up THAT easily Brian :)

Stefan
ellipse data systems