[英]How to show the Systray Icon and also the corresponding executable in the taskmanager by default when we run the installer using NSIS?
My requirement is: When i installed a software using NSIS, once the installation is successfully completed it should show a notification icon (systray icon).我的要求是:当我使用 NSIS 安装软件时,一旦安装成功完成,它应该显示一个通知图标(系统托盘图标)。
I am able to create the installer with the required dlls, executables and other files.我能够使用所需的 dll、可执行文件和其他文件创建安装程序。 But it is not showing the systray icon automatically.
但它不会自动显示系统托盘图标。
Use ExecShell
, Exec
or ExecWait
to start a new process:使用
ExecShell
、 Exec
或ExecWait
启动一个新进程:
Section
SetOutPath $INSTDIR
File "something\Display.exe"
ExecShell "" "$INSTDIR\Display.exe"
SectionEnd
If you are using the Modern UI then you can put a run checkbox on the finish page instead if you want to give the user the option of not running the app:如果您使用的是现代 UI,那么如果您想让用户选择不运行该应用程序,则可以在完成页面上放置一个运行复选框:
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$INSTDIR\Display.exe"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
Section
SetOutPath $INSTDIR
File "something\Display.exe"
SectionEnd
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.