How can I set the defaultlocation to UserProfile (ex:C:/user/user)?

Taehyun Lee 0 Reputation points
2024-01-02T14:49:01.24+00:00

Hi
I use visual studio 2022 setup project.
스크린샷 2024-01-02 233845

I search in MSDN, but I cannot find the path to environment variables %USERPROFILE%
How can I set the installation folder to the userprofile?
(ex:C:/users/user It is different from every user)

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,205 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
228 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,050 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 45,701 Reputation points
    2024-01-02T15:19:11.2433333+00:00

    I suggest you set the application folder as shown here -

    LocalAppDataFolder


  2. Taehyun Lee 0 Reputation points
    2024-01-03T04:28:29.3366667+00:00

    Using [%USERPROFILE] can set the path.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.