github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/installers/windows/windows-installer-x64.iss (about)

     1  [Setup]
     2  ChangesEnvironment=yes
     3  AlwaysShowDirOnReadyPage=yes
     4  AppName=Cloud Foundry CLI
     5  AppVersion=VERSION
     6  AppVerName=Cloud Foundry CLI version VERSION
     7  AppPublisher=Cloud Foundry Foundation
     8  ArchitecturesInstallIn64BitMode=x64 ia64
     9  ArchitecturesAllowed=x64 ia64
    10  PrivilegesRequired=none
    11  DefaultDirName={pf}\Cloud Foundry
    12  SetupIconFile=cf.ico
    13  UninstallDisplayIcon={app}\cf.ico
    14  
    15  [Registry]
    16  Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; Check: IsAdminLoggedOn and Uninstall32Bit() and NeedsAddPath(ExpandConstant('{app}'))
    17  Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; Check: not IsAdminLoggedOn and Uninstall32Bit() and NeedsAddPath(ExpandConstant('{app}'))
    18  
    19  [Files]
    20  Source: CF_LICENSE; DestDir: "{app}"
    21  Source: CF_NOTICE; DestDir: "{app}"
    22  Source: CF_SOURCE; DestDir: "{app}"
    23  Source: CF_ICON; DestDir: "{app}"
    24  
    25  [Code]
    26  function Uninstall32Bit(): Boolean;
    27  var
    28    resultCode: Integer;
    29    uninstallString: String;
    30    uninstallStringPath: String;
    31  begin
    32    uninstallString := '';
    33    uninstallStringPath := 'SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Cloud Foundry CLI_is1';
    34    RegQueryStringValue(HKLM, uninstallStringPath, 'UninstallString', uninstallString);
    35  
    36    if uninstallString <> '' then
    37    begin
    38      uninstallString := RemoveQuotes(uninstallString);
    39      Exec(uninstallString, '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART','', SW_HIDE, ewWaitUntilTerminated, resultCode)
    40    end;
    41    Result := true;
    42  end;
    43  
    44  #include "common.iss"