Archive: picture in gradient


picture in gradient
is there any way of putting a picture in the gradiant window on the installer:D


Only by hacking up the existing NSIS...

- Hn3


So? Is anyone up to the task, or perhaps...

Could Justin add the option to use either a gradient or an image?


It's possible to hack up the splash so that it will stay on the background, someone already did this I can remember, so search the form for "splash" or something...

Good luck, Hn3.


Hi DexterHolland...

I've taken the liberty of finding the right thread for you.


Is there a way to find the user's desktop resolution?


For Win9x systems, check HKEY_CURRENT_CONFIG\Display\Settings\Resolution. No idea for Windows NT.


The only way I have found is with an extarnal DLL:

HDC hdc = GetDC(NULL); // retrieves the device context for the entire screen
if (hdc == NULL)
return WhatEverNSISgetsForICant;
return GetDeviceCaps(hdc, HORZRES); // return width, in pixels, of the screen.
or
return GetDeviceCaps(hdc, VERTRES); // return height, in raster lines, of the screen.


For a complete list of constant GetDeviceCaps knows to handle go to:
http://msdn.microsoft.com/library/en...vcons_88s3.asp

KiCHiK

or GetSystemMetrics