Paths,uninstall

From DreamsteepWiki

Jump to: navigation, search




#Uses EnvVarUpdate,get it at 
#http://nsis.sourceforge.net/Path_Manipulation

!include "EnvVarUpdate.nsh"



OutFile C:/KL_GIS_3Dv01b_.exe

DirText "This will install My Cool Program on your computer. Choose a directory"
InstallDir C:\data


Section "copy prog files"
SetOutPath $INSTDIR 
File C:\data\is.txt
  writeUninstaller $INSTDIR\uninstaller.exe
SectionEnd


Section "Add to path"
  ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "C:\data"
SectionEnd


Section "uninstall"
   delete $INSTDIR\uninstaller.exe
   delete $INSTDIR\is.txt
   ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "C:\data"
   delete $INSTDIR
	
SectionEnd




Personal tools