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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:57:00+00:00 2026-05-19T23:57:00+00:00

I have a system which includes an installer, a windows service and a configuration

  • 0

I have a system which includes an installer, a windows service and a configuration GUI program. The installer isn’t your standard visual studio setup deployment project, but another program that I have coded. The installer launches the config program after the service is installed.

I’ve made a change to the config program that defaults a text box to a registry value in the HKEY_CURRENT_USER registry (which is from 3rd party software so I can’t change the location of this value). This all works fine when I launch the config program from my start menu, however when the installer launches the program after it is complete, this value is not loaded from the registry.

Here’s the code that launches the program after the installer has finished:

Process process = new Process();
process.StartInfo.FileName = Program.Installer.ConfigPath;
process.StartInfo.Arguments = Location.X.ToString() + " " + Location.Y.ToString();
process.Start();
while (!process.Responding)
    Thread.Sleep(50);
Close();
Application.Exit();

Here’s the code that gets the registry value:

_regKey = Registry.CurrentUser.OpenSubKey("Software\\" + _appName);
return _regKey.GetValue(key);

I’ve viewed both processes in task manager, and I can see no difference between the two at all. Both are being ran by the same user at the same path. The installer requires elevation, but I have elevated the config program separately and this has still worked.

Can anyone think of any other differences in a process that has been started by Windows and a process that has been called by another process?

Thanks,

  • 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-19T23:57:00+00:00Added an answer on May 19, 2026 at 11:57 pm

    Turns out that this was nothing to do with the registry at all. I moved my code around so that the registry value was loaded on the press of the “Next” button in the installer, rather than the start of the application. In my OnLoad function, there was a line which returns if a connection to a server was not initialised (which it wont be if it has not yet been set up at all). My code that was loading the value was AFTER this line of code and was therefore never being reached.

    Just me being stupid.

    Thanks

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

Sidebar

Related Questions

I have a current system which is build as a Windows Application, and does
I have written a Windows service, of which I want to have 1 instance
I have the following code for a menu system which includes a lot of
I have a system which sits on a web server and generates files on
I have a system which is writing files to a folder using FTP. I
I have a web system which has a classical parent-children menu saved in a
I have a system in which different server processes are handling requests passed as
I have a logger system which basically is a fancy way of writing my
We are an organisation who have purchased a system which is used by doctors
I have a system in place which applies calculations to a set of numbers

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.