恢复以前的注册表“值”在卸载期间 [英] Restore Previous Registry "Values" During Uninstall

查看:97
本文介绍了恢复以前的注册表“值”在卸载期间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS 2017安装项目,如果在安装期间更改了注册表值,是否可以在卸载期间恢复原始值?

Using a VS 2017 setup project, if you made a change to a registry value during installation, is it possible to have the original value restored during uninstallation?

推荐答案

作为替代路径,因为我知道默认值,是否可以在卸载期间执行注册表值添加/更改,可能是通过在值上设置条件?

As an alternative path, as I know the default value, is it possible to perform a registry value addition/change during uninstallation, perhaps by setting a condition on a value?

我知道我可以做一个"自定义动作"执行可执行文件或调用DLL中的函数。我希望有一个更简单的方法。

I know I could do a "custom action" to execute an executable or call a function in a DLL. I was hoping for a simpler way.

此外,什么是"传递"?用于修改的参数?

Also, what is the "transitive" parameter intended to modify?

是否有可能的条件列表?

Is there a list of possible conditions?


这篇关于恢复以前的注册表“值”在卸载期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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