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

Hiding MSI installer window.


6 replies to this topic

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 09 November 2005 - 13:35

I have a setup that launches a configuration utility (an executable available on CD), thru a CA. I want to hide the MSI window when this CA executes. For this i need the handle of the MSI window. How can i get this handle?
  ankur tyagi

rpalladino

rpalladino
  • Members
  • 6 posts

Posted 09 November 2005 - 14:19

Did you try using the funcion Disable(BACKGROUND) from InstallScript?

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 29 November 2005 - 13:09

In InstallScript i could have used GetWindowHandle func.
I do not want to use InstallScript at all.

Is there any way to get the handle of the window of installer?
  ankur tyagi

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 November 2005 - 09:12

If you can do it from InstallScript it should also work from a DLL written in C.

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 30 November 2005 - 12:37

'GetWindowHandle' is an InstallScript func, it returns "handle of the main window of the installation".

What i am doing:
1. Save the output of GetWindowHandle func to a property, say WINDOW_HANDLE.
2. In dll convert the value of WINDOW_HANDLE to type "HWND'.
3. Use it as handle to installer window.

Problem (explained in more detail):
1. I do not want to include even a single line of InstallScript in my setup.
2. When InstallScript is not available GetWindowHandle func is also unavailable.
How to get the handle of window now ??
  ankur tyagi

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 December 2005 - 17:50

Sorry for the misunderstanding. I don't think the GetWindowHandle function will work in a Basic MSI project (from a InstallScript CA), only in InstallScript MSI and pure InstallScript. Not sure if there's a documented way (like a property) to get the MSI window handle. You may need to iterate through all winodws and compare the title.

cooki

cooki
  • Full Members
  • 35 posts

Posted 15 December 2005 - 17:26

I confirm what Stefan says. Once, i also needed the handle of the MSI window, and I didn't find another way than to use the title to find the handle of the window.
Warning : don't try to do anything funnier than hiding. Especially, changing the style of a control like a list in the window is impossible.