!include "FileFunc.nsh"
outFile "installer.exe"
# every NSIS script has at least one section.
section
messageBox MB_OK "Hello world!"
file test.txt
writeUninstaller $INSTDIR\uninstaller.exe
createShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\uninstall.exe"
${RefreshShellIcons}
sectionEnd
section "Uninstall"
delete $INSTDIR\test.txt
delete $INSTDIR\uninstaller.exe
delete "$SMPROGRAMS\new shortcut.lnk"
sectionEnd