简体   繁体   English

在nsis中单击“删除”按钮时如何创建进度栏?

[英]How do create progress bar while clicking remove button in nsis?

I have created exe file using nsis script.In my script i have included Repair Remove features. 我使用nsis脚本创建了exe文件。在我的脚本中,我包括了“修复删除”功能。

If the user select remove option it will remove the application.Its working.I have used following code for remove 如果用户选择删除选项,它将删除该应用程序。它正常工作。

    Function nsDialogpage
    ${If} $Remove == 1
      call Removed
     ${EndIf}
    FunctionEnd

Function Removed
nsExec::Exec '"$INSTDIR\uninstall.exe" /S _?=$INSTDIR'
FunctionEnd

After installed application clicking uninstal.exe it show progress bar and list of files.finally it removed the application from system. 安装完应用程序后,单击uninstal.exe,它会显示进度栏和文件列表。最后,它从系统中删除了该应用程序。 I want to run the scenario while clicking remove button.but in the above code remove the application only.It doesnot show any details. 我想在单击删除按钮时运行该方案。但是在上面的代码中,仅删除该应用程序。它不显示任何详细信息。

How to achieve this? 如何实现呢?

在此处输入图片说明

卸载输出列表由ShowUninstDetails (编译时)和SetDetailsView (运行时)控制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM