我想在安装后立即运行我的应用程序,我了解执行此操作的代码如下:
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
!insertmacro MUI_PAGE_FINISH
Section
CreateShortcut "$DESKTOP\HelloWorldShortcut.lnk" "$INSTDIR\Hello World.exe" "dev03 3"
SectionEnd
Function LaunchLink
ExecShell "" "$DESKTOP\HelloWorldShortcut.lnk"
FunctionEnd
Run Code Online (Sandbox Code Playgroud)
问题是我的安装程序是静默安装程序,但上面的代码向其中添加了一个页面。
有没有办法使用静默安装程序在安装后立即运行应用程序?
nsis ×1