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 6787131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:19:44+00:00 2026-05-26T17:19:44+00:00

I have a Visual Studio setup with a custom action written in C++. I

  • 0

I have a Visual Studio setup with a custom action written in C++. I need to launch a process from a custom action but both Install and Commit actions are run elevated and thus my process runs elevated too. I want the new process to run as a regular user.

I have seen Start exe after msi install but using current user privileges but it seems overly complicated and shows no code. I haven’t got the time to experiment with an unknown API.

Are there any easy ways? Can I use VS Setup to define a non-elevated custom action or do something from the elevated custom action?

  • 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-26T17:19:44+00:00Added an answer on May 26, 2026 at 5:19 pm

    Visual Studio setup projects do not support immediate custom actions. They are all deferred by default.

    So either you use custom code to impersonate the current user or you switch to another setup authoring tool which supports immediate actions.

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

Sidebar

Related Questions

I have created setup project with Visual Studio. I also need some custom actions
I have visual studio setup project with a custom RadioButtons dialog. How do I
I have created a custom dialog for Visual Studio Setup Project using the steps
I have a Visual Studio Setup Project that I use to install a fairly
I have a setup project created by Visual Studio 2005, and consists of both
I have a Visual Studio Setup project which has a Application Folder DefaultLocation set
I have created a setup project using Visual Studio 2008. After the application is
I have a dual setup development machine with Visual Studio 2003 and 2005. How
I have a fully working Setup project within Visual Studio 2008 that takes inputs
I'm using Visual Studio 2008 and have created a setup project for my application.

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.