Page 1 of 1

RuntimeExecute, Windowhandle = 0

Posted: Fri Sep 12, 2008 6:58 am
by rcaspers
Hi there, I made myself a plugin, But when the runtimeexecute function is called the Window parameter is 0, Is there a way to work arround this?

Posted: Fri Sep 12, 2008 3:33 pm
by CandiceJones
An active window might not be showing then? Also try in a built setup run outside the IDE for more accurate results.

Posted: Sat Sep 13, 2008 5:00 am
by rcaspers
When i run the setup both in- en outside the IDE there is an active setup window. I used a messagebox to diaplay the window handle and in both cases it is 0.

Posted: Wed Sep 17, 2008 12:04 pm
by rcaspers
Also inside my project, when i display the WINDOWHANDLE variable with a messagbox it shows me 0

Posted: Tue Aug 04, 2009 3:32 pm
by cmwallace
I have also found the $WINDOWHANDLE$ value to be 0. This is a problem when attempting to call the ShowWindow API using Call DLL Function in an effort to minimize the installer. That, and I don't know what to pass the parameter as. An HWND is a struct, but having a $WINDOWHANDLE$ variable would indicate that perhaps it is supposed to be passed as a pointer to double word?

alternative way to find the window handle

Posted: Wed Aug 05, 2009 12:43 pm
by rcaspers
If found an alernative

FindWindow('TPoolTemplate','complete caption caption of the window ');

replace ''complete caption caption of the window ' by the caption
probably something like: $project name$ + ' - InstallAware Wizard'

Greetings

René Caspers

Posted: Wed Aug 05, 2009 1:05 pm
by CandiceJones
I believe this is fixed in InstallAware 9.

Yes it is

Posted: Tue Dec 15, 2009 2:03 pm
by rcaspers
I noticed that the problem is solved, thanks