Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fa6c1a1aa6
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 193 lines (188 sloc) 11.102 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
<?xml version="1.0" encoding="windows-1252"?>
<?if $(var.Platform) = x64 ?>
  <?define ProductName = "OpenSC (64bit)" ?>
  <?define Win64YesNo="yes" ?>
  <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  <?define PlatformSystemFolder = "System64Folder" ?>
  <?define PlatformUpgradeCode = "{9A449570-69A2-11E0-9CC6-955B4824019B}" ?>
<?else ?>
  <?define ProductName = "OpenSC" ?>
  <?define Win64YesNo="no" ?>
  <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  <?define PlatformSystemFolder = "SystemFolder" ?>
  <?define PlatformUpgradeCode = "{69428F65-B96D-458D-BB87-DBB5FDB35DCE}" ?>
<?endif ?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  <Product Name="$(var.ProductName)"
           Id="*"
           UpgradeCode="$(var.PlatformUpgradeCode)"
           Language="1033"
           Codepage="1252"
           Version="@OPENSC_VERSION_MAJOR@.@OPENSC_VERSION_MINOR@.@OPENSC_VERSION_FIX@.0"
           Manufacturer="OpenSC Project">
    <Package Platform="$(var.Platform)"
             Description="OpenSC Installer"
             Comments="OpenSC Project home page http://www.opensc-project.org/opensc/"
             Manufacturer="OpenSC Project"
             InstallerVersion="300"
             Languages="1033"
             Compressed="yes"
             SummaryCodepage="1252"
             InstallScope="perMachine"/>
    <!-- OpenSC is covered by LGPL. Extend the license as required with other EULA notes -->
    <WixVariable Id="WixUILicenseRtf" Value="license.rtf"/>
    <!-- Links in info -->
    <Property Id="ARPHELPLINK" Value="http://www.opensc-project.org/opensc/wiki/ReportingBugs"/>
    <Property Id="ARPURLINFOABOUT" Value="http://www.opensc-project.org/"/>
    <Property Id="ARPURLUPDATEINFO" Value="http://www.opensc-project.org/opensc/wiki/WindowsInstaller"/>

<Icon Id="OpenSC.ico" SourceFile="OpenSC.ico" />
<Property Id="ARPPRODUCTICON" Value="OpenSC.ico" />


    <Media Id="1" Cabinet="OpenSC.cab" EmbedCab="yes" CompressionLevel="high"/>
    <MajorUpgrade DowngradeErrorMessage="Can't downgrade." AllowSameVersionUpgrades="yes"/>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <!-- Install critical DLL-s to system folder. NB! Id-s can not contain "-" characters! -->
      <Directory Id="$(var.PlatformSystemFolder)" Name=".">
        <Component Id="onepin_opensc_pkcs11.dll" Guid="*" Win64="$(var.Win64YesNo)">
          <File Source="$(var.SOURCE_DIR)\src\pkcs11\onepin-opensc-pkcs11.dll" Vital="yes"/>
        </Component>
        <Component Id="opensc_pkcs11.dll" Guid="*" Win64="$(var.Win64YesNo)">
          <File Source="$(var.SOURCE_DIR)\src\pkcs11\opensc-pkcs11.dll" Vital="yes"/>
        </Component>
        <Component Id="opensc_minidriver.dll" Guid="*" Win64="$(var.Win64YesNo)">
          <File Source="$(var.SOURCE_DIR)\src\minidriver\opensc-minidriver.dll" Vital="yes"/>
        </Component>
      </Directory>
      <!-- Install tools and profiles to Program Files -->
      <Directory Id="$(var.PlatformProgramFilesFolder)" Name="PFiles">
        <Directory Id="OpenSC_Project_Dir" Name="OpenSC Project">
          <!-- Most of the stuff goes to the Program Files folder -->
          <Directory Id="INSTALLDIR" Name="OpenSC">
            <!-- opensc.conf sample goes to installation directory -->
            <Component Id="opensc.conf" Guid="*" Win64="$(var.Win64YesNo)">
              <File Source="$(var.SOURCE_DIR)\etc\opensc.conf.in" Name="opensc.conf" KeyPath="yes"/>
              <!-- -->
              <RegistryKey Id="OpenscRegs" Root="HKLM" Key="Software\[Manufacturer]\OpenSC" Action="createAndRemoveOnUninstall">
                <RegistryValue Type="string" Name="ConfigFile" Value="[INSTALLDIR]opensc.conf"/>
                <RegistryValue Type="string" Name="ProfileDir" Value="[INSTALLDIR]profiles"/>
              </RegistryKey>
            </Component>
            <!-- Tools have their own folder -->
            <Directory Id="INSTALLDIR_TOOLS" Name="tools">
              <Component Id="opensc.dll" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\libopensc\opensc.dll" Vital="yes"/>
              </Component>
              <Component Id="opensc_explorer.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\opensc-explorer.exe" Vital="yes"/>
              </Component>
              <Component Id="opensc_tool.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\opensc-tool.exe" Vital="yes"/>
              </Component>
              <Component Id="pkcs11_tool.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\pkcs11-tool.exe" Vital="yes"/>
              </Component>
              <Component Id="pkcs15_init.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\pkcs15-init.exe" Vital="yes"/>
              </Component>
              <Component Id="pkcs15_tool.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\pkcs15-tool.exe" Vital="yes"/>
              </Component>
              <Component Id="pkcs15_crypt.exe" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\tools\pkcs15-crypt.exe" Vital="yes"/>
              </Component>
            </Directory>
            <Directory Id="INSTALLDIR_PROFILES" Name="profiles">
              <Component Id="pkcs15.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\pkcs15.profile"/>
              </Component>
              <Component Id="asepcos.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\asepcos.profile"/>
              </Component>
              <Component Id="cardos.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\cardos.profile"/>
              </Component>
              <Component Id="entersafe.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\entersafe.profile"/>
              </Component>
              <Component Id="myeid.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\myeid.profile"/>
              </Component>
              <Component Id="setcos.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\setcos.profile"/>
              </Component>
              <Component Id="starcos.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\starcos.profile"/>
              </Component>
              <Component Id="westcos.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\westcos.profile"/>
              </Component>
              <Component Id="oberthur.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\oberthur.profile"/>
              </Component>
              <Component Id="authentic.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\authentic.profile"/>
              </Component>
              <Component Id="rutoken.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\rutoken.profile"/>
              </Component>
              <Component Id="rutoken_ecp.profile" Guid="*" Win64="$(var.Win64YesNo)">
                <File Source="$(var.SOURCE_DIR)\src\pkcs15init\rutoken_ecp.profile"/>
              </Component>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder" Name="Programs">
        <Directory Id="ProgramMenuDir" Name="OpenSC Project">
          <Component Id="ProgramMenuDir" Guid="*">
            <util:InternetShortcut Id="OnlineDocumentationShortcut" Name="OpenSC wiki" Target="http://www.opensc-project.org/opensc/"/>
            <RemoveFolder Id="ProgramMenuDir" On="uninstall"/>
            <RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
          </Component>
        </Directory>
      </Directory>
    </Directory>
    <!-- Set up the features -->
    <Feature Id="Complete" Level="1" Title="OpenSC software suite" Display="expand">
      <Feature Id="OpenSC_core" Level="1" Title="OpenSC core library" Description="Core DLL and configuration file used by all other components." Absent="disallow">
        <ComponentRef Id="opensc.dll"/>
        <ComponentRef Id="opensc.conf"/>
      </Feature>
      <Feature Id="OpenSC_pkcs11" Level="1" Title="OpenSC PKCS#11 module" Description="PKCS#11 module usd by most open source and cross-platform software (like Firefox, Putty, TrueCrypt, OpenVPN etc)" TypicalDefault="install">
        <ComponentRef Id="onepin_opensc_pkcs11.dll"/>
        <ComponentRef Id="opensc_pkcs11.dll"/>
      </Feature>
      <!-- Minidriver is only installed if selected via Custom install (level == 4) -->
      <Feature Id="OpenSC_minidriver" Level="4" Title="OpenSC minidriver (EXPERIMENTAL)" Description="OpenSC minidriver for using smart cards with native Windows CSP applications (like Internet Explorer)" AllowAdvertise="no" Absent="allow">
        <ComponentRef Id="opensc_minidriver.dll"/>
      </Feature>
      <!-- Tools and profiles are for personalization -->
      <Feature Id="OpenSC_tools" Level="1" Title="Tools and profiles" Description="Tools for debugging and personalization. Includes profiles needed for running pkcs15-init.exe">
        <!-- TODO: Not all tools and utilities are listed! -->
        <ComponentRef Id="opensc_explorer.exe"/>
        <ComponentRef Id="opensc_tool.exe"/>
        <ComponentRef Id="pkcs11_tool.exe"/>
        <ComponentRef Id="pkcs15_init.exe"/>
        <ComponentRef Id="pkcs15_tool.exe"/>
        <ComponentRef Id="pkcs15_crypt.exe"/>
        <!-- TODO: Not all profiles are listed! -->
        <ComponentRef Id="pkcs15.profile"/>
        <ComponentRef Id="asepcos.profile"/>
        <ComponentRef Id="cardos.profile"/>
        <ComponentRef Id="entersafe.profile"/>
        <ComponentRef Id="myeid.profile"/>
        <ComponentRef Id="setcos.profile"/>
        <ComponentRef Id="starcos.profile"/>
        <ComponentRef Id="westcos.profile"/>
        <ComponentRef Id="oberthur.profile"/>
        <ComponentRef Id="authentic.profile"/>
        <ComponentRef Id="rutoken.profile"/>
        <ComponentRef Id="rutoken_ecp.profile"/>
      </Feature>
      <Feature Id="OpenSC_menu" Level="1" Title="Start menu entries" Description="Start menu entries: link to documentation">
        <ComponentRef Id="ProgramMenuDir"/>
      </Feature>
    </Feature>
    <UIRef Id="WixUI_Mondo"/>
    <UIRef Id="WixUI_ErrorProgressText"/>
  </Product>
</Wix>
Something went wrong with that request. Please try again.