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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:02:09+00:00 2026-06-02T03:02:09+00:00

Before I begin let me apologize for my nearly nonexistent knowledge of programing for

  • 0

Before I begin let me apologize for my nearly nonexistent knowledge of programing for UAC. That said…

I have a c# application that starts the setup.exe of a totally different program. Its main purpose is to help that second program run under UAC. So in a nutshell it runs that programs setup.exe file under an elevated command prompt. I have no control over that second program, so getting it to be UAC compatible is not an option. I wrote my program when Vista was first released and there was little UAC info to be found. Now keep in mind that running that setup.exe file this way in fact works, and allows the program to be run with UAC on. But part of my program also adds a “theirapp.exe.manifest” file with “requireAdministrator” as the Execution level. So my question is this, do I even need that file when the program I’m ultimately trying to run is a non-managed application (CBuilder C++). Somewhere along the way I believed a manifest file was needed. But now I’m told they only work for .NET apps.

Thanks

EDIT: To sum it up… Is manifest file needed to run a non-managed program under UAC?

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel
        level="requireAdministrator"
        uiAccess="false"/>
    </requestedPrivileges>
  </security>
</trustInfo>

EDIT: My main method for running the OTHER programs setup.exe

private void RunElevated()
{
    ProcessStartInfo processInfo = new ProcessStartInfo("cmd.exe", @"/C " + AppDomain.CurrentDomain.BaseDirectory + @"setup.exe");
    processInfo.Verb = "runas";

    try
    {
        Process.Start(processInfo);
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message.ToString());
    }
}
  • 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-06-02T03:02:10+00:00Added an answer on June 2, 2026 at 3:02 am

    This link answers my question. I suppose the fact that it refers to a manifest file for an un-managed DLL threw off my search.

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

Sidebar

Related Questions

Before I begin, let me just say that I know my question is almost
Before the "beating a dead horse" comments begin, let me clarify what I am
I have images with same width but different heights... I have seen that before
Let's say I have my vision and now my product backlog of items. That
Let's say I have a container (std::vector) of pointers used by a multi-threaded application.
before i begin, i should mention my actionscript skills are about a 5/10. that
I apologize if this has been asked before, but I believe that for me,
I have a question, but let me first say that this is being performed
I would like to ask a question about triggers. Let's say that I have
Before I begin I'll freely admit it's something in my code but it's not

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.