Skip to content

Commit

Permalink
fix: improve installer
Browse files Browse the repository at this point in the history
  • Loading branch information
tautcony committed Aug 30, 2020
1 parent af8fb15 commit 0de1bea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dist/windows/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Section $(inst_ct_req) ;"ChapterTool (required)"
CreateDirectory $INSTDIR\en-US

; Put file there
File "ChapterTool.exe"
File "ChapterTool.exe.config"
File "libmp4v2.dll"
File /oname=en-US\ChapterTool.resources.dll "en-US\ChapterTool.resources.dll"
File "..\..\Time_Shift\bin\Release\ChapterTool.exe"
File "..\..\Time_Shift\bin\Release\ChapterTool.exe.config"
File "..\..\Time_Shift\libmp4v2.dll"
File /oname=en-US\ChapterTool.resources.dll "..\..\Time_Shift\bin\Release\en-US\ChapterTool.resources.dll"


; Write the installation path into the registry
Expand Down
2 changes: 1 addition & 1 deletion dist/windows/options.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RequestExecutionLevel user
;--------------------------------
;Installer Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "LICENSE"
!insertmacro MUI_PAGE_LICENSE "..\..\LICENSE"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
Expand Down
2 changes: 2 additions & 0 deletions dist/windows/uninstaller.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Section "un.$(remove_files)" ;"un.Remove files"
Delete "$INSTDIR\ChapterTool.exe.config"
Delete "$INSTDIR\libmp4v2.dll"
Delete "$INSTDIR\en-US\ChapterTool.resources.dll"
Delete "$INSTDIR\LICENSE"
Delete "$INSTDIR\uninst.exe"

; Remove directories used
RMDir /r "$INSTDIR\en-US"
Expand Down

0 comments on commit 0de1bea

Please sign in to comment.