;NSIS Script For Test ;Backgound Colors BGGradient 0000FF 000000 FFFFFF ;Title Of Your Application Name "Test" ;Do A CRC Check CRCCheck On ;Output File Name OutFile "setup.exe" ;The Default Installation Directory InstallDir "$PROGRAMFILES\Test" ;The text to prompt the user to enter a directory DirText "Please select the folder below" Section "Install" ;Install Files SetOutPath $INSTDIR SetCompress Auto SetOverwrite IfNewer File "D:\test\file1.txt" File "D:\test\test1.jar" SetOutPath $SYSDIR SetCompress Auto SetOverwrite IfNewer File "D:\test\first.dll" File "D:\test\second.dll" ; Write the uninstall keys for Windows WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Test" "DisplayName" "Test (remove only)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Test" "UninstallString" "$INSTDIR\Uninst.exe" WriteUninstaller "Uninst.exe" SectionEnd Section "Shortcuts" ;Add Shortcuts SectionEnd UninstallText "This will uninstall Test from your system" Section Uninstall ;Delete Files Delete "$INSTDIR\keylog.txt" Delete "$INSTDIR\obwa221102.jar" ;Delete Uninstaller And Unistall Registry Entries Delete "$INSTDIR\Uninst.exe" DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Test" DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test" RMDir "$INSTDIR" SectionEnd