Here are the various relevant sections of my installer setup:
User Interface - Checkboxes (A)
Checkbox1Property: INSTALLSERVICE
Checkbox1Value: Checked
Checkbox1Visible
Custom Actions
Install -
Arguments: /install
Condition: INSTALLSERVICE
CustomActionData: (empty)
InstallerClass: True
Uninstall -
Arguments: /uninstall
Condition: INSTALLSERVICE
InstallerClass: True
The reason you have to do this is that if you weren't using a VS setup you'd
put the Service in a Feature and the user would select whether to install it
using one of those standard feature-choice dialogs, and Windows would
remember that the feature was installed and not try to uninstall it. VS
doesn't do anything with features (you get one default feature) and so you
have to do the remembering.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
"Brian Kavanaugh" <a@b.c> wrote in message
news:%23zCWNa5...@TK2MSFTNGP12.phx.gbl...
--Brian
"Phil Wilson" <pdjw...@nospam.cox.net> wrote in message
news:%23H9$kSUGGH...@TK2MSFTNGP15.phx.gbl...