Skip to content
⌘ NSIS Forum Archive

minimize / restore setup window

10 posts

Brummelchen#

minimize / restore setup window

Is it possible to minimize AND later restore a setup window (while executing some other shit)?

minimize found here:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


but how to restore?

Or do both via script? Possible?

thx
Vytautas#
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#
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#
@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).
Guest#
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#
Last NSIS versions can do this internaly, Manual 4.9.14.17
ShowWindow $HWNDPARENT ${SW_HIDE}
Guest#
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#
Use it as a first line of the first section. BTW what you displays instead of installer' window?
Guest#
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.