Solved

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

Posted on 2008-10-14
4
409 Views
Last Modified: 2008-11-09
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
Comment
Question by:thesultanofswine
  • 3
4 Comments
 
LVL 16

Expert Comment

by:speshalyst
ID: 22714933
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
 

Author Comment

by:thesultanofswine
ID: 22723890
Thanks speshalyst, but those links do not involve the VerifyVersionInfo API or the OSVERSIONINFOEX class it returns.
0
 

Author Comment

by:thesultanofswine
ID: 22840695
Doesn't look like anyone has the answer.  Thanks for the try speshalyst.
0
 

Accepted Solution

by:
thesultanofswine earned 0 total points
ID: 22840707
No answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now