Brummelchen
19th January 2004 10:44 UTC
minimize / restore setup window
Is it possible to minimize AND later restore a setup window (while executing some other shit)?
minimize found here:
http://forums.winamp.com/showthread....light=minimize
but how to restore?
Or do both via script? Possible?
thx
Vytautas
19th January 2004 11:14 UTC
You should be able to do both in the script using the system plugin and the wright API functions. I do not know of the function(s) required from the top of my head but I believe that the search of MSDN would give you some clues.
Vytautas ;)
Joost Verburg
19th January 2004 14:39 UTC
To hide and show the installer window, you can use HideWindow and ShowWindow.
To minimize and maximize you will have to use the System plug-in.
Brummelchen
19th January 2004 15:10 UTC
@Joost
Thx a lot.
I just testet setup and i found out for this time that it is no necessary.
other "shit" is executed while "oninit" and in this moment nothing else is visible.
but i'll keep this info for future...
sorry for inconveniance but i was long away from nsis so i had to research some new settings (eg headerbitmap).
Tonnie Krijger
14th December 2005 11:21 UTC
Originally posted by Joost Verburg
To hide and show the installer window, you can use HideWindow and ShowWindow.
To minimize and maximize you will have to use the System plug-in.
Can somebody give me a example how to use the minimize function?
Thanks!
Takhir
14th December 2005 13:03 UTC
Last NSIS versions can do this internaly, Manual 4.9.14.17
ShowWindow $HWNDPARENT ${SW_HIDE}
Tonnie Krijger
14th December 2005 13:23 UTC
OK, I tried to use:
ShowWindow $HWNDPARENT ${SW_HIDE}
These lines are in a Function which is called as a pre function before the INSTFILES window.
It has no effect. Should it be called in a specific callback function?
Takhir
14th December 2005 13:47 UTC
Use it as a first line of the first section. BTW what you displays instead of installer' window?
Afrow UK
14th December 2005 13:49 UTC
Also if you aren't using Modern UI, make sure you have !include WinMessages.nsh
-Stu
Tonnie Krijger
14th December 2005 14:06 UTC
I use it now a first line in first section. It didn't work in the pre, because there was no window yet :)
But now I have a problem, because I'm using Modern UI it change some controls on the window when the installation is finished. So the window comes up again.
What I want to do is:
The first time the user is shown all steps of the wizards. Updates should be down automatically. This all works nice, but I also want to hide the setup windows, because I show a notify balloon in the systemtray. So if the user is interested in install details they can click the icon.