發表文章

Scripts of NSIS

; DNW.nsi ; ; This script is based on example1.nsi, but it remember the directory, ; has uninstall support and (optionally) installs start menu shortcuts. ; ; It will install DNW.nsi into a directory that the user selects. ; ; See install-shared.nsi for a more robust way of checking for administrator rights. ; See install-per-user.nsi for a file association example. ;-------------------------------- ; The name of the installer Name "DNW" ; The file to write OutFile "DNWInstaller.exe" ; Request application privileges for Windows Vista and higher RequestExecutionLevel admin ; Build Unicode installer Unicode True ; The default installation directory InstallDir $PROGRAMFILES\DNW ; Registry key to check for directory (so if you install again, it will ; overwrite the old one automatically) InstallDirRegKey HKLM "Software\DNW" "Install_Dir" ;-------------------------------- ; Pages Page components Page directory Page instfiles UninstPage