Inno Setup:删除另一个程序遗留的有问题的注册表项 [英] Inno Setup: Removing a problematic registry key left by another program

查看:88
本文介绍了Inno Setup:删除另一个程序遗留的有问题的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Inno Setup中为我的程序编写安装程序.我的程序使用网页和Internet Explorer与之交互.

I'm writing an installer for my program in Inno Setup. My program uses web pages and Internet Explorer to interact with it.

我的某些查询花费的时间超过10秒,我在朋友计算机上注意到他的Internet Explorer注册表项"RequestTimeout"将超时设置为10秒.此密钥不是Internet Explorer上自然存在的,它显然是由第三方安装程序添加的.但是,根据我在网上阅读的内容,很多人最终都使用了它.

Some of my queries take longer than 10 seconds, and I noticed on my friends computer that he had a registry key "RequestTimeout" for Internet Explorer that set a timeout of 10 seconds. This key is not naturally present on Internet Explorer, it is apparently added by a third party installer. But from what I read on the web quite a few people end up with it.

我的问题是,如果安装过程中存在此密钥,我可以告诉Inno Setup删除或修改此密钥吗?

My question is, can I tell Inno Setup to delete or modify this key if it is present during setup?

我已经搜索了所有关于Inno Setup和注册表项的资源,这些都与卸载选项有关.

I've googled and all the resources I could find about Inno Setup and Registry Keys have to do with uninstall options.

推荐答案

忽略有关是否应删除非"yours"值的要点,可以在安装时通过将类型设置为并添加deletevalue标志:

Ignoring the points about whether you should delete a value that's not "yours", you can easily delete a registry value at install time by setting the type to none and add the deletevalue flag:

[Registry]
Root: HKLM; Subkey: "Software\My Company\My Program\Settings"; ValueName: "Value"; ValueType: none; Flags: deletevalue;

您还可以添加Check:参数和其他条件语句.

You can also add a Check: parameter and other conditional statements.

这篇关于Inno Setup:删除另一个程序遗留的有问题的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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