Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   minimize / restore setup window (http://forums.winamp.com/showthread.php?t=165595)

Brummelchen 19th January 2004 09:44

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 10:14

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 13:39

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 14:10

@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 10:21

Quote:

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 12:03

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

Tonnie Krijger 14th December 2005 12:23

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 12:47

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

Afrow UK 14th December 2005 12:49

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

-Stu

Tonnie Krijger 14th December 2005 13:06

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.


All times are GMT. The time now is 05:49.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.