c# - How to add data to registry before installing service using windows installer -
I wrote the window service in C #, which reads some data from the registry. Then I used Visual Studio for that service 2010 By creating a Windows Installer and adding data to the registry required for the service My problem starts by installing the installer before adding data to the installer. I wanted to add data to the registry before installing the service so that it could use that data.
If you use an installer such as YX (Windows Installer for XML) or InstallShield You can write your registry settings as part of installing using standard MSI instructions.
Then when your service begins, the registry settings will be as expected.
Coincidentally, the auto-install feature (via Instant) is easy for debugging and development, but is not recommended for production installation.
Personally, I use YX for the needs of all my installer because it's both free and flexible.
Comments
Post a Comment