Skip to content

Commit

Permalink
Add option to NSIS script to start after install
Browse files Browse the repository at this point in the history
  • Loading branch information
Heufneutje committed Feb 5, 2017
1 parent ec2fa92 commit 1c83e23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
!define REG_ROOT "HKCU"
!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${MAIN_APP_EXE}"
!define UNINSTALL_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}"
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Run AudioSharp"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"

!define REG_START_MENU "Start Menu Folder"

Expand Down Expand Up @@ -47,6 +50,9 @@ function .onInit
StrCpy $INSTDIR "$PROGRAMFILES64\AudioSharp"
${EndIf}
functionEnd
function LaunchLink
ExecShell "" "$INSTDIR\AudioSharp.exe"
functionEnd

!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
Expand Down

0 comments on commit 1c83e23

Please sign in to comment.