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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:27:18+00:00 2026-06-18T12:27:18+00:00

I run on the machine as admin, but with the UAC set to default

  • 0

I run on the machine as admin, but with the UAC set to default mode.

I start an installation program (using “Run as administrator”). From the installation process (using Wix) I start a client program that creates some files on the disc (C:\ProgramData…).

var startInfo = new ProcessStartInfo()
            {
                WorkingDirectory = installLocation,
                FileName = fullPath
            };
Process.Start(startInfo);

This first time the program runs, I can access all the data stored on the local disc without problems.

If I close it and start it again, I receive this error message:

Access to the path ‘C:\ProgramData…’ is denied.

If I start again the application using “Run as administrator” I can access the files from local disc; no error this time. The access path error appears only when I start the application directly.

Is this due to the settings from UAC or it is related that the local files where created under a more privileged user account?

  • 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-18T12:27:19+00:00Added an answer on June 18, 2026 at 12:27 pm

    Yes, the application will run without elevated privileges which are required to access ProgramData and other sensitive system folders or user related folders.

    Any process you spawn from within your application will inherit the privileges your application has.

    You need to create a manifest for your application to request elevated rights upon starting so you will have access to those folders.

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

Sidebar

Related Questions

I have full admin privileges on my Windows 7 machine but when I run
I have a command that I want to run on machine B from machine
I run PHP and MySQL on the same machine, but both report different times.
i want to run some command on several machine using ssh. I know it
I am trying to run a PS Remote session from Machine A to access
Locally to start/stop ActiveMQ (5.6) on my dev machine I just run ./activemq start
I'm trying to run a script that requires Administrator input in order to process
I'm querying a SQL db from excel using vba, that all works fine but
I was happily using log4net with my WPF program on an XP machine and
All works fine on my dev machine but if deployed to IIS the process

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.