Note that in a real installation, you should not be using InitializeSetup; instead you should be using CurStepChanged(ssInstall) (to stop/remove service prior to upgrade), CurStepChanged(ssPostInstall) (to install/start service after install/upgrade), and CurUninstallStepChanged(usUninstall) (to stop/remove service before uninstall).