github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/installers/windows/install.nsi (about)

     1  !include "env_var_update.nsh"
     2  
     3  Name "CloudFoundry CLI"
     4  OutFile "cf_installer.exe"
     5  
     6  InstallDir $PROGRAMFILES\CloudFoundry
     7  InstallDirRegKey HKLM "Software\CloudFoundryCLI" "Install_Dir"
     8  
     9  RequestExecutionLevel admin
    10  
    11  Page directory
    12  Page instfiles
    13  
    14  ; The stuff to install
    15  Section "CloudFoundry CLI (required)"
    16  
    17    SectionIn RO
    18    
    19    ; Set output path to the installation directory.
    20    SetOutPath $INSTDIR
    21    
    22    ; Put file there
    23    File "cf.exe"
    24    
    25    ; Write the installation path into the registry
    26    WriteRegStr HKLM Software\CloudFoundryCLI "Install_Dir" "$INSTDIR"
    27    
    28    ; Add output directory to system path
    29    ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR"
    30  
    31  SectionEnd