• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

What registry settings does API VerifyVersionInfo use to determine the OS?

Hi All,
I am looking for information on how the API VerifyVersionInfo determines the OS and Service Pack level.  I need to know which registry settings (or anything else) the API uses so I can fool an installer.  

Background:
I have an application with an installer that will only work with XP SP2, but I would like to have the installer work with XP SP3 also.  My idea was to create a script which will be ran XP SP3 systems prior to the applications installation which switches the registry settings the VerifyVersionInfo API uses to XP SP2 values.  After the application is installed, I would just run another script to return the registry settings back to their original XP SP3 values.

Thanks in advance for the help.
0
thesultanofswine
Asked:
thesultanofswine
  • 3
1 Solution
 
speshalystCommented:
Im not a coder myself.. but this shoud give u a better insight..
http://msdn.microsoft.com/en-us/library/ms724429(VS.85).aspx
http://www.freevbcode.com/ShowCode.asp?ID=986 
0
 
thesultanofswineAuthor Commented:
Thanks speshalyst, but those links do not involve the VerifyVersionInfo API or the OSVERSIONINFOEX class it returns.
0
 
thesultanofswineAuthor Commented:
Doesn't look like anyone has the answer.  Thanks for the try speshalyst.
0
 
thesultanofswineAuthor Commented:
No answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now