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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:19:29+00:00 2026-06-01T02:19:29+00:00

In my C# WPF application, I am setting an application as a startup application

  • 0

In my C# WPF application, I am setting an application as a startup application by creating a new key in the startup registry as follows:

RegistryKey startapp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\CurrentVersion\\Run", true);
startapp.SetValue("Myexe.exe", Aseembly.GetExecutingAssembly().Location);
Process.Start("Myexe.exe", url);

This runs fine and the registry value gets set, as checked in regedit. The user ought to have administrative privileges for setting the registry.

Also, the problem is that on rebooting the computer, I noticed that the application runs on startup only if the User Account Control has been turned off (with least security), and not the default settings. This is not the case for other applications such as Google Talk etc. in my computer? So, how do I allow my application to run at startup, even if the user account control UAC settings are bit high?

  • 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-01T02:19:30+00:00Added an answer on June 1, 2026 at 2:19 am

    You might want to try adding an application manifest to your application to indicate the application requires administrative privileges to run. See this related SO Question for more details: UAC need for console application.

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

Sidebar

Related Questions

I am setting up a desktop WPF application with my BLL running as a
I've recently started creating a WPF application, and am just hoping that someone can
Im creating a WPF application and just wondering is there a way to use
I my WPF application I'd like to change the text color by setting Foreground
I'm still new to C#... I'm building a WPF application and I'm trying to
I am installing a WPF Application using the ClickOnce deployment. There are certain settings
I'm trying to change some config file user settings values in my WPF application,
Application: WPF Application consisting of a textbox on top and a listbox below Users
My WPF application is structured using the MVVM pattern. The ViewModels will communicate asynchronously
My WPF application works fine on a number of machines, but now I get

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.