Installing a windows service 'manually'

  • Thread starter Thread starter Henrik Heimbuerger
  • Start date Start date
H

Henrik Heimbuerger

Hi!


I created a windows service and was able to install and deinstall it
with the 'installutil.exe' utility. Is there any possibility to
install it directly from my application?
The documentation only says that it *should* not be done but neither
why it shouldn't be done nor how it is possible.

I created a setup application to install it and that works. But I
would like to spare my users to either run another setup or work with
the installutil-program.
Two buttons 'install service' and 'uninstall service' would be much
better.

Please tell me how to do that or why I shouldn't do so.


TIA,
Henrik Heimbuerger
 
You can still use a Visual Studio setup project. It sounds like you'd like
the install to be simpler, and you could do that by deleting some of the
dialogs in the user interface view in the Visual Studio IDE. An alternative
is to still use a setup project, but wrap it into a program and launch your
setup silently with msiexec /i <path to the msi> /qn (or some other /q
flavor, depending how much UI you want to show the user).
 
You can still use a Visual Studio setup project. It sounds like you'd like
the install to be simpler, and you could do that by deleting some of the
dialogs in the user interface view in the Visual Studio IDE. An alternative
is to still use a setup project, but wrap it into a program and launch your
setup silently with msiexec /i <path to the msi> /qn (or some other /q
flavor, depending how much UI you want to show the user).

Good idea! I will do that if I don't find another solution. But this
would still be the source of many errors and I still don't understand
why the functionality of installutil.exe isn't included in the BCL!?


Thanks,
Henrik Heimbuerger
 
Back
Top