如何在重新安装应用程序时再次显示窗口? [英] How to display window again on reinstalling application?

查看:87
本文介绍了如何在重新安装应用程序时再次显示窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我创建的程序有一个复选框选项''不要再显示这个''。当我检查选项时,窗口不再显示在这里一切顺利。但问题是当我卸载应用程序并再次重新安装时,仍然不会显示复选框选项窗口。 Plz帮助我如何在每次重新安装时显示它,这里是我创建此应用程序的链接 - 添加''不要再显示此对话框''复选框,只需要很少的努力 [ ^ ]

我是使用vs studio 2008 express和inno setup。

Hi, so far i have created a program that has a checkbox option ''dont show this again''. When i check the option, the window not displayed again all goes well here. But the problem is when i have uninstalled the application and reinstall it again, the checkbox option window is still not displayed. Plz help how can i make it to display on every reinstallation, here is link from which i created this application- Add a ''Dont show this dialog again'' Checkbox with minimal effort[^]
I am using vs studio 2008 express and inno setup.

推荐答案

您必须删除卸载程序时在对话框中生成的注册表项。

但是,如果您想知道必须删除哪个注册表项,请向我们展示创建注册表项的代码。
You have to delete the registry key which was generated in your dialog when you uninstall the program.
However, show us the code where you create the registry key when you want to know which registry key you have to delete.


您好,



根据标志值启用或禁用对话框,创建配置文件并放置一个标志。当您检查配置文件中的复选框更新时。并根据配置文件中的值做你想做的任何事情。
Hi,

Create a configuration file and place a flag , based on the flag value enable or disable the dialog. When u check the checkbox update in the configuration file. and based on the value of in the configuration file do whatever you want.


你可以调用
Reset

卸载时的功能。您可以覆盖卸载并调用重置功能。重置功能已经具有将注册表项值设置为0的逻辑。或者您可以保留代码以删除卸载部分中的注册表项。为此,您可以先调用

function in your un-install. you can override the uninstall and call the "Reset" function. The reset function already having a logic to set the registry key values to 0. Or you can keep the code to remove the registry key in the Uninstall part. For this you can first call this

GetRegKeyNameForForm

函数,该函数将获取RegistryKey并可以使用此代码删除



function which will get the RegistryKey and can remove by using this code

key.DeleteValue("DontShowAgain");





谢谢,

Siju Thomas。



Thank You,
Siju Thomas.


这篇关于如何在重新安装应用程序时再次显示窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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