badoddbob
17th March 2006 08:59 UTC
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
OldGrumpy
17th March 2006 09:15 UTC
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 ;)