D
DM
I have used VS.Net 2003 to develop a Windows service and a deployment
project to install the service. The service and the installer work fine.
When I modify the service to include some new code in the "AfterInstall"
event of the ProjectInstaller and create a new installer (having set
RemovePreviousVersions = True, changed the Version, ProductCode and
PackageCode properties) the code does not get executed when I install the
new service. Everything else works fine and the new service is successfully
installed and works.
However if I remove the previous version of the service first and install
the new version (rather than letting the installer upgrade the version) the
new code in the "AfterInstall" event gets executed.
How can I get the new code in the "AfterInstall" event to be executed when
the installer upgrade the service?
project to install the service. The service and the installer work fine.
When I modify the service to include some new code in the "AfterInstall"
event of the ProjectInstaller and create a new installer (having set
RemovePreviousVersions = True, changed the Version, ProductCode and
PackageCode properties) the code does not get executed when I install the
new service. Everything else works fine and the new service is successfully
installed and works.
However if I remove the previous version of the service first and install
the new version (rather than letting the installer upgrade the version) the
new code in the "AfterInstall" event gets executed.
How can I get the new code in the "AfterInstall" event to be executed when
the installer upgrade the service?