定制安装程序C#.net [英] Custom installer C#.net

查看:221
本文介绍了定制安装程序C#.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我必须使用C#编写自定义安装程序.

是否有可能检查编解码器软件是否会出现在注册表中.即
在客户端PC上进行安装时,应检查Windows Media Player的编解码器软件是否已安装.如果未将其安装在注册表中,则安装程序应在客户端PC中自动安装编解码器软件

友善的人会指导我针对上述情况编写自定义安装程序...

谢谢
Vijay r

hi All,

i have to write a custom installer using C#.

is it possible to check the codec software will be present in the registry. i.e
while doing installation in the client PC, Installer should be check the codec software is already installed for windows media player. if it''s not installed in the registry then the installer should automatically install the codec software in the client PC

kindly anyone guide me to write a custom installer for the above situation...

Thanks
Vijay r

推荐答案

检查编解码器意味着检查注册表值,不是吗?

这是一个如何编写读取注册表的链接使用C#从注册表中读取,写入和删除 [ ^ ]

搜索google,您可能有数百万.

现在的问题是在哪里使用这些代码.您可以在安装项目中使用Custom Actions Editor,并在install或commit事件中调用这些代码.安装事件更好.

这些事件在要与自定义操作编辑器一起使用的安装程序类中.如果编解码器不存在,则可以引发回滚事件.

现在,谷歌自定义操作部署c#.您可能会获得详细的Microsoft文档.

祝您好运
Checking a codec means checking a registry value, isn''t it?

Here is a link how to write read registry Read, write and delete from registry with C#[^]

Search google, you may millions.

Now the question is where to use these codes. You can use Custom Actions Editor in your setup project and call these codes in the install or commit events. Install event is better.

These events are in a installer class that you are going to use with the custom action editor. If the codec is not there then you can raise the rollback event.

Now google Custom actions Deployment c#. You might get well detailed microsoft documentations.

Good luck


您可以使用vb脚本检查系统注册表实例.并在您的安装文件中添加vb脚本.请参阅inno设置网站
You can use vb script to check the instance of system registry. and add the vb script in your setup file . Refer to inno setup website


这篇关于定制安装程序C#.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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