Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Losing Focus of the ISP Window.


2 replies to this topic

SilentCry

SilentCry
  • Members
  • 43 posts

Posted 14 March 2002 - 22:01

Problem of the day..

ISP - 6.31
DemoShield 6.0

My application uses DemoShield which then calls the ISP project.  Here's what is currently happening.

Pop in the CD, DemoShield starts up.  Select Install, and ISP starts the installation.  Within my ISP Project I call another install for a project built in IS Express.

Now here's where things get weird.

On some machines, after the IS Express app is installed, it goes back to the ISP App.  On other machines, once the IS Express project is done, it goes back to the DemoShield.  The ISP Project is still running, as I can select it on my Windows Toolbar.

My Question: Has anyone encountered this?  
My 2nd Question: Is there a sort of SetFocus command to return Windows' focus to the ISP project?

Thanks..

SC



Ide Nentjes

Ide Nentjes
  • Members
  • 222 posts

Posted 18 March 2002 - 11:07

Hi SilentCry,

you might try:

SetFocus(GetWindowHandle (HWND_INSTALL));

Note: SetFocus is not documented in IS, GetWindowHandle is.

Enjoy, Ide

SilentCry

SilentCry
  • Members
  • 43 posts

Posted 20 March 2002 - 21:15

Hooray for Hidden Features..

In any case, it did not work, as my window still lost it's focus after calling the 3rd party app install.

Will look for something else..

SC