If you are using a VS setup/deployment project, click on the Launch
Conditions editor button (the 6th button from the left on the solution
explorer - these buttons only appear you have the setup project selected
in the solution explorer).
After clicking this button, the launch conditions editor will appear in the
main document window.
Right click on the 'Launch conditions' node to add a new launch condition.
Select the new launch condition, then go to the properties window.
In the properties window, set the Condition property to VersionNT to check
for OS versions of Win2K and above and Version9X to check for OS versions
Hope this helps,
>Subject: Detecting OS for install project
>Date: Tue, 22 Apr 2003 10:21:14 -0400
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>NNTP-Posting-Host: 149-99-33-26.dsl.tor1.sprint-canada.net 18.104.22.168
>Xref: cpmsftngxa06.phx.gbl microsoft.public.vstudio.development:1713
> I think this is an easy question but I don't know the answer. I have a
>project I need to deploy but only for XP or 2000 system.
> I know I can use the 'search files or search registry' to detect what
>is present and set a flag as a precondition.... but I don't know what value
>in the registry to seach for to confirm the OS release? I find lots of
>to do this but nothing for the installer in VS?
> Can anyone let me know what registry field I search for to confirm the
>OS is XP or 2000 (basically I need to insure its Unicode compliant).
This posting is provided "AS IS" with no warranties, and confers no rights.