Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6807677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:51:41+00:00 2026-05-26T19:51:41+00:00

I am creating a visual studio set up project to be installed on XP,

  • 0

I am creating a visual studio set up project to be installed on XP, Vista and Windows 7.
In order for my program to be installed successfully on Vista and Seven, it needs to be installed in:

c:\ProgramData

I pointed the installation path of Application Folder as follow
default location:

[CommonAppDataFolder][Manufacturer]\[ProductName] 

and as the condition I put:

VersionNT>=600

However, I want my program to be installed in:

c:\programfiles\Manufacturer

… for XP. I added a special folder which was pointing to ProgramFilesFolder and in the condition I put:

VersionNT<600

However it seems this condition is not being checked and it always tries to install in *C:\Documents and Settings\All Users\Application Data\mySoftware* for XP.

I am not sure if I am missing anything here.
I really appreciate any help and suggestion.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:51:42+00:00Added an answer on May 26, 2026 at 7:51 pm

    This is not supported by Visual Studio setup projects, but it can be done with other setup authoring tools. The general approach is this:

    • create a type 51 custom action (property set with formatted text)
    • schedule it before CostInitialize action in InstallUISequence
    • configure it to set your installation folder property to the custom XP installation folder
    • condition this action to run only on XP

    This way your package will use the Windows 7 install path by default and the XP path only when your custom action is executed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating windows installer project using Visual Studio 2005. Is there an option
When creating a set-up project in Visual Studio 2008, I am trying to create
I am creating a visual studio set-up project. I need to test to see
I currently use visual studio 2008 for creating projects that can run on windows.
When I am creating a test project in Visual Studio, do I just create
By default, when creating a project, Visual Studio defines the Debug and Trace constants
I'm creating a web project for one of my uni modules using Visual studio
I'm creating my first program in Visual Studio C++ 2008, coming from VB.NET -
I just set up my machine to code Windows Azure apps in Visual Studio
I am creating a Visual Studio 2010 Setup project for installing my application. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.