WIX 3.5 Multiple Instances Windows Service

2019-07-24 18:42发布

I have a simple WIX installer which will install a Windows Service. I have Multiple Instances setup so that the service can run side by side.

Everything is looking good the only problem I'm now having is when I uninstall the installation. It completely removes the actual windows service executable, however it doesn't completely remove the registry entry. Going into the services.msc I can still see the service name. I have to go into the registry and manually delete the entry.

Check out my VS2010 solution here: http://andrewherrick.com/spike/multiplewindowsservices.zip

You can easily recreate it by installing the default instance, then install instance 01 side by side. Then try and uninstall instance 01. You will see it isn't removed from the services list.

Any thoughts?

1条回答
Luminary・发光体
2楼-- · 2019-07-24 19:19

The solution was to upgrade to WIX 3.6 which allows MultiInstance installs at the component level.

查看更多
登录 后发表回答