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?
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.
Hiding MSI installer window.
Started by
antyagi
, Nov 09 2005 13:35
6 replies to this topic
Posted 09 November 2005 - 14:19
Did you try using the funcion Disable(BACKGROUND) from InstallScript?
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?
I do not want to use InstallScript at all.
Is there any way to get the handle of the window of installer?
ankur tyagi
Posted 30 November 2005 - 09:12
If you can do it from InstallScript it should also work from a DLL written in C.
Stefan Krüger
InstallSite.org twitter facebook
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 ??
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
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.
Stefan Krüger
InstallSite.org twitter facebook
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.
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.