Archive: minimize / restore setup window


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


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 ;)


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.


@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).


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!

Last NSIS versions can do this internaly, Manual 4.9.14.17
ShowWindow $HWNDPARENT ${SW_HIDE}


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?


Use it as a first line of the first section. BTW what you displays instead of installer' window?


Also if you aren't using Modern UI, make sure you have !include WinMessages.nsh

-Stu


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.