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

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.
 
P

Phil Wilson

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. )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top