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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:47:16+00:00 2026-05-12T00:47:16+00:00

Objective: In support of a Windows Service that may have multiple instances on a

  • 0

Objective: In support of a Windows Service that may have multiple instances on a single machine, use a Setup Project to create an MSI capable of:

  1. Receiving user input for Service Name
  2. Installing service
  3. Serializing Service Name from 1 (so that the proper name can be used in logging and uninstall)

My initial hope was to set Service Name in App.config (and then retrieve it during uninstall upon instantiation of the ServiceInstaller. This seems to have been naive, because it is not accessible during the install.

If MyInstaller extends Installer, it can call base.Install(); however, my attempts to write to app.config (within MyInstaller.Install() and after base.Install()) are inneffective.

So while the service can be installed with a custom Service Name, that name is not serialized and the installer is most displeased upon uninstall.

How should this be done?

  • 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-12T00:47:17+00:00Added an answer on May 12, 2026 at 12:47 am

    You can specify parameters to installer actions, so collect the service name, and pass it as a parameter to the action. Then, in the Installer class, you can override Install() and access it via base.Context.Parameters. That’s how you get the value. Having obtained that value and used it, you put it in the stateSaver IDictionary parameter so that if you override Uninstall() you can find out what value was used on install.

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

Sidebar

Related Questions

Objective: I want to create a web service that allows me to connect to
I want to add scripting support for an Objective-C project using the objc runtime.
Is there an objective-c git library that would support pushing to/pulling from a remote
I have a signed applet that works fine on windows, Mac <= 10.6, and
Possible Duplicate: Objective C multiple inheritance Hi, Objective C does not support multiple inheritance.
We create non-game programs that run on mobile devices; iPhones, Windows Mobile, Android, Palm
The objective is to write a convenience method that return a ResultSet from a
Hello to all jQuery enthusiasts and experts!! I currently use on a project this
With Objective-C, you can add iVars/properties to a class using the associated object support
I have a couple of iOS apps (Objective-C + iOS frameworks + a few

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.