Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nsis 使用NISIS卸载程序创建卸载程序_Nsis - Fatal编程技术网

Nsis 使用NISIS卸载程序创建卸载程序

Nsis 使用NISIS卸载程序创建卸载程序,nsis,Nsis,我尝试卸载应用程序时出错。我使用NSIS为它制作安装程序和卸载程序。应用程序已卸载,但未从添加/删除程序中删除。该错误看起来像“尝试卸载时出错,可能已卸载”您需要删除与卸载部分中的添加/删除程序注册相关的注册表项 另见“所需值”一节的最后一段 例如,它可以如下所示: Section Uninstall ; ...here the existing uninstall code goes... DeleteRegKey HKLM "Software\Microsoft\Windo

我尝试卸载应用程序时出错。我使用NSIS为它制作安装程序和卸载程序。应用程序已卸载,但未从添加/删除程序中删除。该错误看起来像“尝试卸载时出错,可能已卸载”

您需要删除与卸载部分中的添加/删除程序注册相关的注册表项

另见“所需值”一节的最后一段

例如,它可以如下所示:

Section Uninstall
    ; ...here the existing uninstall code goes...

    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\WhateverNameYouHadUsedHereBefore"
SectionEnd

我已经这么做了。。。我增加了两行。它们是DeleteRegKey${PRODUCT\u UNINST\u ROOT\u KEY}“${PRODUCT\u UNINST\u KEY}”DeleteRegKey HKLM“${PRODUCT\u DIR\u REGKEY}”您确定它已执行吗?也许你的逻辑中有些东西让你跳过了这条线。您可以尝试在该行后添加一个消息框,查看卸载时该消息框是否打开。当您不显示实际值时,PRODUCT_UNINST_KEY不会告诉我们任何信息。你为什么不把这些包括在你的问题中?