[英]Launch wrapped exe with NSIS installer on windows startup
I am creating an installer that is wrapping an abc.exe with it.我正在创建一个用它包装 abc.exe 的安装程序。 This installer is running the exe as a tray icon.
此安装程序将 exe 作为托盘图标运行。 But when I restart my system this exe will stop and won't be seen in tray icon anymore.
但是当我重新启动系统时,此 exe 将停止并且不再出现在托盘图标中。 I want this exe to be started again on windows restart.
我希望在 Windows 重新启动时再次启动这个 exe。 How can this be achieved?
如何做到这一点? I have tried below commands but not helpful:
我尝试过以下命令但没有帮助:
CreateShortCut "$SMPROGRAMS${abc}.lnk" "$INSTDIR\\abc.exe" CreateShortCut "$SMPROGRAMS${abc}.lnk" "$INSTDIR\\abc.exe"
CreateDirectory "$SMPROGRAMS\\abc"创建目录“$SMPROGRAMS\\abc”
CreateShortCut "$SMPROGRAMS\\abc\\abc.lnk" "$INSTDIR\\abc.exe" CreateShortCut "$SMPROGRAMS\\abc\\abc.lnk" "$INSTDIR\\abc.exe"
CreateShortCut "$DESKTOP\\abc.lnk" "$INSTDIR\\abc.exe" CreateShortCut "$DESKTOP\\abc.lnk" "$INSTDIR\\abc.exe"
CreateShortCut "$SMPROGRAMS\\abc\\Uninstall abc.lnk" "$INSTDIR\\uninstall.exe" CreateShortCut "$SMPROGRAMS\\abc\\Uninstall abc.lnk" "$INSTDIR\\uninstall.exe"
Any help is appreciated!!!Thanks in advance任何帮助表示赞赏!!!提前致谢
Windows 不知道应用程序总是应该运行,您需要在正确的位置注册它。
CreateShortcut "$SMSTARTUP\MyApp.lnk" "$INSTDIR\abc.exe"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.