WIX 3.5多实例Windows服务 [英] WIX 3.5 Multiple Instances Windows Service

查看:88
本文介绍了WIX 3.5多实例Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的WIX安装程序,它将安装Windows服务.我有多个实例设置,以便该服务可以并行运行.

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.

一切看起来不错,我现在遇到的唯一问题是卸载安装时.它会完全删除实际的Windows服务可执行文件,但是不会完全删除注册表项.进入services.msc,我仍然可以看到服务名称.我必须进入注册表并手动删除条目.

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.

在此处查看我的VS2010解决方案: http://andrewherrick.com/spike/multiplewindowsservices.zip

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

您可以通过安装默认实例轻松地重新创建它,然后并排安装实例01.然后尝试卸载实例01.您将看到它没有从服务列表中删除.

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.

有什么想法吗?

推荐答案

解决方案是升级到WIX 3.6,该版本允许在组件级别安装MultiInstance.

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

这篇关于WIX 3.5多实例Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆