简体   繁体   English

如何为DirectShow过滤器制作安装程序?

[英]How to make an Installer for my DirectShow filters?

I have been writing Windows programs and DLLs for years but have never created an installer. 我多年来一直在编写Windows程序和DLL,但从未创建过安装程序。 How can I create a lightweight installer for a handful of DirectShow filters that I have written? 如何为我编写的少数DirectShow过滤器创建轻量级安装程序?

The installer needs extract the filter binaries to somewhere in Program Files and then register them. 安装程序需要将过滤器二进制文件提取到“程序文件”中的某个位置,然后进行注册。 It also needs to offer an effective uninstall. 它还需要提供有效的卸载。 Pretty simple but I have no idea where to start. 很简单,但我不知道从哪里开始。

I am using Visual Studio 2010 and my code is C++. 我正在使用Visual Studio 2010,我的代码是C ++。

You can try using a Visual Studio setup project . 您可以尝试使用Visual Studio安装项目 It's very limited, but it supports what you need to do. 这是非常有限的,但是它支持您需要做的事情。

Another free alternative is WiX . 另一个免费的替代方法是WiX It has a steep learning curve, but it gets the job done. 它具有陡峭的学习曲线,但可以完成工作。

Both Visual Studio and WiX use Windows Installer. Visual Studio和WiX都使用Windows Installer。 So you will have full Windows integration and product management (modify, repair and remove). 因此,您将拥有完整的Windows集成和产品管理(修改,修复和删除)。

Personally I like innosetup , haven't used it for directshow but I have used it to install and start services. 就个人而言,我喜欢innosetup ,还没有将它用于DirectShow ,但是我已经使用它来安装和启动服务。 It can certainly do registry operations. 它当然可以执行注册表操作。

See also How to Register DirectShow Filters 另请参阅如何注册DirectShow筛选器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM