4

Previously (before .net 5) we could add a custom Installer which inherit System.Configuration.Install.Installer to our project, and then the Setup packet used it to install Service to windows.

Now, there is no System.Configuration.Install DLL until now. enter image description here https://learn.microsoft.com/en-us/dotnet/api/system.configuration.install?view=netframework-4.8&viewFallbackFrom=net-5.0

I knew there are some NuGet packages, but I'm looking for an official solution.

How can I change the WorkerService (Service) ServiceName, DisplayName and Description?

How can I create a setup packet for my WorkerService (Service)?

Imran Sh
  • 1,623
  • 4
  • 27
  • 50
  • are you looking for something command line oriented, or more in line with the functionality provided by System.Configuration.Install ? – elliot-j Feb 04 '21 at 18:48
  • @elliot-j I'm looking for something like this: https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects – Imran Sh Feb 05 '21 at 09:45
  • because Microsoft is pursing a cross-plaform philosophy for .NET 5, your best bet would be nuget packages at this point. System.Configuration.Install was tailored to specific features in Windows which other platforms would undoubtable lack. Which is why something like it does not currently exist in .NET 5 – elliot-j Feb 05 '21 at 22:05
  • @ImranShamszadeh did you figure out a solution to your question? – Aiyuni Jun 30 '21 at 16:19
  • @Aiyuni not jet – Imran Sh Jun 30 '21 at 18:11
  • @ImranShamszadeh yes, the System.Configuration.Install.Installer assembly is not available in .NET Core. I already answered a similar question in detail like yours: https://stackoverflow.com/a/68998620/2671158 – Eriawan Kusumawardhono Sep 03 '21 at 17:52

0 Answers0