Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/17.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中安装的软件?_Nsis - Fatal编程技术网

如何检查NSIS中安装的软件?

如何检查NSIS中安装的软件?,nsis,Nsis,我已经创建了一个安装程序,使用NSIS在我的系统中安装一个软件,比如googletalk,使用以下NSIS脚本 Name "installer" OutFile "new_setup.exe" InstallDir "$PROGRAMFILES\Google talk" Section SetOutPath $INSTDIR execWait '$DESKTOP\googletalk-setup.exe' SectionEnd 现在,如果我再次执行安装程序,在安装之前应该检查该软件

我已经创建了一个安装程序,使用NSIS在我的系统中安装一个软件,比如googletalk,使用以下NSIS脚本

Name "installer"
OutFile "new_setup.exe"
InstallDir "$PROGRAMFILES\Google talk"

Section
  SetOutPath $INSTDIR
  execWait '$DESKTOP\googletalk-setup.exe'

SectionEnd
现在,如果我再次执行安装程序,在安装之前应该检查该软件是否已经存在

那么在NSIS中如何实现它呢

请用密码告诉我


提前谢谢

安装期间,您需要在注册表中创建卸载信息。(在Windows控制面板上的“添加/删除程序”中可见)

我建议您遵循以下示例:

然后在“.onInit”函数中,只需使用ReadRegStr检查这些值:

希望这能帮助你