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

  • SEARCH
  • Home
  • 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 7575845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:46:44+00:00 2026-05-30T16:46:44+00:00

As far as I understood it is not possible to rise privileges within the

  • 0

As far as I understood it is not possible to rise privileges within the running process. Hence – as suggested here – from my MainApp (deployed through ClickOnce) I’m currently launching a separate Process (a signed exe let’s call it Foo.exe) used to run activities requiring admin privileges:

Process p = new Process();
p.StartInfo.FileName = "Foo.exe";
p.StartInfo.Arguments = "args...";
p.StartInfo.UseShellExecute = true;
p.StartInfo.Verb= "runas";
p.Start();
p.WaitForExit();

Now I would like to make this procedure as friendly as possible for the user. I’ve two main concerns.

  1. The user is prompted with the UAC window showing:

    Program Name: Foo
    Publisher: OurCompany
    File Origin: Hard drive on this computer
    Program Location: %path% + %arguments%

    I need to hide the arguments (there is some sensible information not so crucial but showing it so easily is not good) and possibly I would like also to change the Program Name to MainApp so that the user recognize the app name he is used to.

  2. I would like to make the main form in Foo the child of the main form in MainApp so that for instance I can easily display the main form in Foo in the center of its parent
  • 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-30T16:46:45+00:00Added an answer on May 30, 2026 at 4:46 pm

    I would suggest launching a second copy of your application with the elevated privleges.. then use SendMessage and WM_COPYDATA (or some user-defined offset above WM_USER) to post a message/s to the new instance instructing it what to do (pass those args, tell it where to center itsself, etc). Or use some other form of IPC (inter-process communication: windows messages, named piped, memory mapped files, tcp/ip, etc…)

    In this manner you can retain the application name, the signature, the program location.. everything looks normal to the user.

    You may go so far as to launch the form from the un-elevated process and only handle data processing on the elevated side – passing data via your coice of IPC.

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

Sidebar

Related Questions

As far as I've understood, it is not possible to link libraries that use
As far as I understood the static initialization block is used to set values
As far as I understood it, BigInts are usually implemented in most programming languages
As far as I understand from the documentation the QUdpSocket are async but, still,
I'm trying to understand if it's possible to access a Google Drive from a
Is it possible to rename directory in svn repository. Not create new revision in
I am learning about the builder pattern, and so far I understood that, it
As far as I understand Facebook allowes you (through the API) to post on
As far as I understand, https is http plus SSL/TLS. What do I need
As far as I understand, the onchange event of a text input element is

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.