catch从shellexecuteex中取消click nsis安装程序
catch cancel click nsis installer from shellexecuteex
嗨,我正试图使用c++应用程序中的ShellExecuteEx运行安装程序。我可以运行我的安装程序。如果我随时点击NSIS安装程序上的"取消",我该如何从C++应用程序中获取信息并打印安装失败。
我试过像这个
if((UINT)ShExecInfo.hInstApp <= SE_ERR_DDETIMEOUT )
{
fprintf(fp, "Failed to start the installer n");
exit(-1);
}
但运气不好,我试着在ShExecInfo.hInstApp
中打印whats,结果是数字42。有什么想法吗?
hInstApp
保存启动期间发生的错误(如果有)。它与应用程序关闭无关。
您希望查看带有GetExitCodeProcess
的安装程序进程的退出代码,如果您在ShExecInfo.fMask
中设置了SEE_MASK_NOCLOSEPROCESS
标志,则该代码将存储在ShExecInfo.hProcess
中。
当用户点击取消时,您必须查看NSIS文档中返回的退出代码。
相关文章:
- 在Ubuntu 16.04上安装Cilk时出现问题
- 在CMakeLists.txt的安装功能中使用.cmake文件有什么用
- C++:如何在CLion IDE中安装Boost
- 安装opencv失败-粘贴CMakeError.log的内容
- 在cygwin中测试新的boost安装时出现cpp错误
- 有人安装"IITB Simplecpp in mac"吗?
- 我可以在 Arduino 的库文件夹之外安装库吗?
- Mingw-64 在构建和安装后不会编译 openCV 代码
- 为什么构建目录中新构建的共享库与安装目录中的副本具有不同的依赖项集?
- 安装 libc++ 时出现问题
- 安装MinGW后C++编译器不起作用?
- 介子复制/安装头文件到输出目录并保持文件夹结构
- 无法安装 R 包 "nloptr"(Ubuntu 16.04 上的 R3.6.2) - C++编译器问题
- 如何在 Ubuntu 上安装 OpenCV for C/C++
- 检查是否安装了 windows10 C++
- 安装 psutil 和为 pypy 配置期间出错
- 如何在 Debian 10 上安装 CPP 手册页?
- 如何在Windows上使用CMAKE CPACK NSIS创建安装程序
- catch从shellexecuteex中取消click nsis安装程序
- 在不提示UAC权限的情况下从c++应用程序运行NSIS安装程序