Skip to content
⌘ NSIS Forum Archive

System requirements

3 posts

badoddbob#

System requirements

The software I'm creating has minimum system requirements of the following:
- IE 6 or above
- Adobe Reader 6 or above
- Screen resolution of 1024 by 768 or above
- Windows 2000 or XP (already sorted out with exitsing script)

What I'd like to do is a check before the software installs and pop-uip a message to the user if they don't meet these requirements.

Can anyone point me in the right direction?

Thanks
kichik#
Search the Wiki for "internet explorer" and "resolution" and find:




Search the forum for "acrobat" and find:

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.

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.
OldGrumpy#
Internet Explorer 6 is easy: check for a string value named "Version" under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer.
If it starts with "6." or higher, you got IE6 or higher 🙂

Similar for Adobe Reader: Check HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader - on my system (version 7 installed), there is a sub-key named "7.0". Just enum the subkeys and see if their names suit your sysreqs.
The screen resolution seems to be a bit trickier.
I could imagine using the system call plugin and calling the functions GetDesktopWindow() to get a handle to the desktop and then GetWindowRect() to get the x1/x2/y1/y2 coordinates. The rest is just a bit of math 🙂
You could encapsulate that into a plugin dll if scripting isn't your favorite thing 😉