And how can I make the uninstaller open an .exe file right after you click close etc. (It's a kind of scanner) Scans a folder for something, if it detects, it deletes the files.
Here's my code:
;------------------------------------------------------
!include "MUI.nsh"
Name "moh_breakthrough_demo"
OutFile "moh_breakthrough_demo.exe"
InstallDir "$PROGRAMFILES\EA GAMES\Medal of Honor Allied Assault Breakthrough Demo\"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "moh_header.bmp"
!define MUI_ABORTWARNING
!define MUI_WELCOMEFINISHPAGE_BITMAP "moh_wizard.bmp"
!define MUI_ICON "arrow2-install.ico"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section hideuinstaller
HideWindow
SectionEnd
Section "scan" scan
Delete "$INSTDIR\genocide.dll"
SectionEnd
Section openfile
Exec '"$INSTDIR\moh_breakthrough.exe" "parameter 1" "parameter 2"'
SectionEnd
Section close
SetAutoClose true
SectionEnd
;--------------------------------------------------------
And when I try to run the uninstall i can see it delete the file.. but when it closes a problem pops up:
Help 😁?