Skip to content

Commit fca6b1b

Browse files
author
David Imongirie
committed
chore: update installer script (add uninstaller) + include LICENSE placeholder
1 parent 55a1311 commit fca6b1b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

LICENSE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TestBuddy Installer License\n\nThis is a placeholder license used for generating the NSIS installer. Replace with your project's actual LICENSE or EULA before distribution.

testbuddy_installer.nsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Section "Install"
2121
; Copy the executable
2222
File /oname=${PRODUCT_EXE} "${EXE_SOURCE}"
2323

24+
; Write an uninstaller executable to allow proper uninstall
25+
WriteUninstaller "$INSTDIR\\Uninstall.exe"
26+
2427
; Create shortcuts
2528
CreateDirectory "$SMPROGRAMS\\${PRODUCT_NAME}"
2629
CreateShortCut "$SMPROGRAMS\\${PRODUCT_NAME}\\${PRODUCT_NAME}.lnk" "$INSTDIR\\${PRODUCT_EXE}"
@@ -35,6 +38,8 @@ SectionEnd
3538

3639
Section "Uninstall"
3740
Delete "$INSTDIR\\${PRODUCT_EXE}"
41+
; Remove the uninstaller executable as part of uninstall
42+
Delete "$INSTDIR\\Uninstall.exe"
3843
Delete "$SMPROGRAMS\\${PRODUCT_NAME}\\${PRODUCT_NAME}.lnk"
3944
Delete "$DESKTOP\\${PRODUCT_NAME}.lnk"
4045
RMDir "$SMPROGRAMS\\${PRODUCT_NAME}"

0 commit comments

Comments
 (0)