RuntimeExecute, Windowhandle = 0

Interested in developing new plug-ins? Got one to share? Post here!
rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

RuntimeExecute, Windowhandle = 0

Postby rcaspers » Fri Sep 12, 2008 6:58 am

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?

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Fri Sep 12, 2008 3:33 pm

An active window might not be showing then? Also try in a built setup run outside the IDE for more accurate results.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

Postby rcaspers » Sat Sep 13, 2008 5:00 am

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.

rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

Postby rcaspers » Wed Sep 17, 2008 12:04 pm

Also inside my project, when i display the WINDOWHANDLE variable with a messagbox it shows me 0

cmwallace
Posts: 16
Joined: Fri Nov 14, 2008 1:12 pm

Postby cmwallace » Tue Aug 04, 2009 3:32 pm

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?

rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

alternative way to find the window handle

Postby rcaspers » Wed Aug 05, 2009 12:43 pm

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

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Aug 05, 2009 1:05 pm

I believe this is fixed in InstallAware 9.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

Yes it is

Postby rcaspers » Tue Dec 15, 2009 2:03 pm

I noticed that the problem is solved, thanks


Return to “Plug-In Development”

Who is online

Users browsing this forum: No registered users and 18 guests