且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在重新安装应用程序时再次显示窗口?

更新时间:2023-02-21 22:11:04

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

但是,如果您想知道必须删除哪个注册表项,请向我们展示创建注册表项的代码。
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.