How to pass command line params to EXE COM server during registration?

  • Thread starter Thread starter Rufus DeDufus
  • Start date Start date
R

Rufus DeDufus

I have a COM server that is a self registering EXE (a windows service) that
wants to be passed a command line parameter when it is registered, e.g.
"-Service". My EXE is self-registering but without that flag some goodies
are not going into the registry as they should. How do I specify such a
parameter?

I am authoring Setup with Visual Studio .NET Standard Edition.
 
With the project selected in Solution Explorer of a deployment project, do View, Editor, Custom
Actions. Right-click Install, Add Custom Action, browse to your exe and select it. F4 for
properties, add -service to the Arguments.

Do the -unregserver equivalent in an uninstall custom action.

(microsoft.public.dotnet.framework.setup is often a better place to post VS-specific questions about
setups. )
 
Back
Top