<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?define ProductName="APK Editor Studio" ?>
  <?define ProductVersion="1.0.0" ?> <!-- TODO Environment variable -->
  <?define Root="..\build" ?>

  <Product Id="*" Name="$(var.ProductName)" Version="$(var.ProductVersion)" UpgradeCode="B889316C-C1B5-4615-8443-F1ADB1B3584D" Manufacturer="Alexander Gorishnyak" Language="1033">

    <Package InstallerVersion="301" Compressed="yes" />
    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

    <MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize" />

    <UIRef Id="CustomUi" />
    <Icon Id="Icon" SourceFile="$(var.Root)\apk-editor-studio.exe" />
    <Property Id="ApplicationFolderName" Value="$(var.ProductName)" />
    <Property Id="ARPPRODUCTICON" Value="Icon" />

    <CustomAction Id="SetExecutableProperty" Property="ExecutableProperty" Value="[INSTALLFOLDER]apk-editor-studio.exe"></CustomAction>
    <InstallExecuteSequence>
      <Custom Action="SetExecutableProperty" Before="InstallFiles"/>
    </InstallExecuteSequence>

    <WixVariable Id="WixUIDialogBmp" Value="res\banner.bmp" />
    <WixVariable Id="WixUIBannerBmp" Value="res\header.bmp" />

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Merge Id="VCRedist" SourceFile="C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC140_CRT_x86.msm" DiskId="1" Language="0"/> <!-- TODO Environment variable -->
      <Component Id="AssociationComponent" Guid="C6176BE3-E235-46DF-9BC6-5CA8358B0254">
        <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\apk-editor-studio.apk" Name="FriendlyTypeName" Value="Android Application Package" Type="string" />
        <ProgId Id="apk-editor-studio.apk" Description="Android Application Package">
          <Extension Id="apk">
            <Verb Id="Open" TargetProperty="ExecutableProperty" Argument="&quot;%1&quot;" />
          </Extension>
        </ProgId>
      </Component>
      <Directory Id="DesktopFolder">
        <Component Id="DesktopComponent" Guid="36AEEC75-757E-4267-9174-14D37BAD4271">
          <Shortcut Id="DesktopExecutableShortcut" Name="$(var.ProductName)" Description="Start $(var.ProductName)" Target="[!Executable]" WorkingDirectory="INSTALLFOLDER" />
          <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="DesktopShortcut" Type="integer" Value="1" KeyPath="yes" />
        </Component>
      </Directory>
      <Directory Id="ProgramMenuFolder">
        <Directory Id="StartmenuFolder" Name="$(var.ProductName)">
          <Component Id="StartmenuComponent" Guid="044C201E-47F3-47A0-BD7D-5CF85980EF84">
            <Shortcut Id="StartmenuExecutableShortcut" Name="$(var.ProductName)" Description="Start $(var.ProductName)" Target="[!Executable]" WorkingDirectory="INSTALLFOLDER" />
            <Shortcut Id="StartmenuUninstallShortcut" Name="Uninstall $(var.ProductName)" Description="Uninstall $(var.ProductName)" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" WorkingDirectory="SystemFolder" />
            <RemoveFolder Id="RemoveShortcutsFolder" On="uninstall" />
            <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="StartmenuFolder" Type="integer" Value="1" KeyPath="yes"/>
          </Component>
        </Directory>
      </Directory>
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="$(var.ProductName)" FileSource="$(var.Root)">
          <Component Id="ExeComponent" Guid="C6176BE3-E235-46DF-9BC6-5CA8358B0253">
            <File Name="apk-editor-studio.exe" Id="Executable" />
          </Component>
          <Component Id="UninstallComponent" Guid="F885100C-A957-4C42-8710-E9EF646D93A6">
            <Shortcut Id="UninstallShortcut" Name="Uninstall $(var.ProductName)" Description="Uninstall $(var.ProductName)" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" WorkingDirectory="SystemFolder" />
            <RegistryValue Root="HKLM" Key="Software\$(var.ProductName)" Name="Uninstaller" Type="integer" Value="1" KeyPath="yes"/>
          </Component>
          <Directory Id="ToolsFolder" Name="tools">
            <Component Id="ApktoolComponent" Guid="447CD555-5A52-49F4-808E-B289EBBC8794">
              <File Name="apktool.jar" />
            </Component>
            <Component Id="SignerComponent" Guid="1E567463-D26C-41B5-8746-7800F8B53F3E">
              <File Name="apksigner.jar" />
              <File Name="demo.jks" />
            </Component>
            <Component Id="ZipalignComponent" Guid="77D7F79C-EC9A-4D0A-A803-D74DA4986201">
              <File Name="zipalign.exe" />
            </Component>
            <Component Id="AdbComponent" Guid="3154DCA2-4E3A-4D91-8B87-D43AFCA67D37">
              <File Name="adb.exe" />
              <File Name="AdbWinApi.dll" />
              <File Name="AdbWinUsbApi.dll" />
            </Component>
          </Directory>
          <Directory Id="ResourcesFolder" Name="resources">
            <Directory Id="IconsFolder" Name="icons">
              <Directory Id="Icons16Folder" Name="16x16">
                <Component Id="Icons16Component" Guid="903E4029-505F-4FEC-8638-D59C3C7AB03C">
                  <File Name="application.png" Id="IconApplication16" />
                  <File Name="close.png" Id="IconClose16" />
                  <File Name="close-project.png" Id="IconCloseProject16" />
                  <File Name="devices.png" Id="IconDevices16" />
                  <File Name="donate.png" Id="IconDonate16" />
                  <File Name="edit.png" Id="IconEdit16" />
                  <File Name="explore.png" Id="IconExplore16" />
                  <File Name="install.png" Id="IconInstall16" />
                  <File Name="key.png" Id="IconKey16" />
                  <File Name="more.png" Id="IconMore16" />
                  <File Name="open.png" Id="IconOpen16" />
                  <File Name="pack.png" Id="IconPack16" />
                  <File Name="project.png" Id="IconProject16" />
                  <File Name="qt.png" Id="IconQt16" />
                  <File Name="recent.png" Id="IconRecent16" />
                  <File Name="refresh.png" Id="IconRefresh16" />
                  <File Name="replace.png" Id="IconReplace16" />
                  <File Name="save.png" Id="IconSave16" />
                  <File Name="save-as.png" Id="IconSaveAs16" />
                  <File Name="separator.png" Id="IconSeparator16" />
                  <File Name="settings.png" Id="IconSettings16" />
                  <File Name="spacer.png" Id="IconSpacer16" />
                  <File Name="title.png" Id="IconTitle16" />
                  <File Name="update.png" Id="IconUpdate16" />
                  <File Name="website.png" Id="IconWebsite16" />
                  <File Name="zoom.png" Id="IconZoom16" />
                  <File Name="zoom-in.png" Id="IconZoomIn16" />
                  <File Name="zoom-out.png" Id="IconZoomOut16" />
                </Component>
              </Directory>
              <Directory Id="Icons20Folder" Name="20x20">
                <Component Id="Icons20Component" Guid="0201824A-8197-476D-AEEA-362133CD6D8E">
                  <File Name="application.png" />
                </Component>
              </Directory>
              <Directory Id="Icons30Folder" Name="30x30">
                <Component Id="Icons30Component" Guid="E001659C-3A29-424B-8037-8228AEEB219B">
                  <File Name="close.png" Id="IconClose30" />
                  <File Name="close-project.png" Id="IconCloseProject30" />
                  <File Name="devices.png" Id="IconDevices30" />
                  <File Name="donate.png" Id="IconDonate30" />
                  <File Name="edit.png" Id="IconEdit30" />
                  <File Name="explore.png" Id="IconExplore30" />
                  <File Name="install.png" Id="IconInstall30" />
                  <File Name="key.png" Id="IconKey30" />
                  <File Name="open.png" Id="IconOpen30" />
                  <File Name="pack.png" Id="IconPack30" />
                  <File Name="project.png" Id="IconProject30" />
                  <File Name="recent.png" Id="IconRecent30" />
                  <File Name="refresh.png" Id="IconRefresh30" />
                  <File Name="replace.png" Id="IconReplace30" />
                  <File Name="save.png" Id="IconSave30" />
                  <File Name="save-as.png" Id="IconSaveAs30" />
                  <File Name="separator.png" Id="IconSeparator30" />
                  <File Name="settings.png" Id="IconSettings30" />
                  <File Name="spacer.png" Id="IconSpacer30" />
                  <File Name="title.png" Id="IconTitle30" />
                  <File Name="update.png" Id="IconUpdate30" />
                  <File Name="website.png" Id="IconWebsite30" />
                  <File Name="zoom.png" Id="IconZoom30" />
                  <File Name="zoom-in.png" Id="IconZoomIn30" />
                  <File Name="zoom-out.png" Id="IconZoomOut30" />
                </Component>
              </Directory>
              <Directory Id="Icons32Folder" Name="32x32">
                <Component Id="Icons32Component" Guid="9D01502D-121D-43AB-AC49-DDDD830B86FC">
                  <File Name="application.png" Id="IconApplication32" />
                  <File Name="more.png" Id="IconMore32" />
                  <File Name="qt.png" Id="IconQt32" />
                </Component>
              </Directory>
              <Directory Id="Icons40Folder" Name="40x40">
                <Component Id="Icons40Component" Guid="415AF5F6-5D55-4D64-B357-FCD7ADBB92A6">
                  <File Name="close.png" Id="IconClose40" />
                  <File Name="close-project.png" Id="IconCloseProject40" />
                  <File Name="devices.png" Id="IconDevices40" />
                  <File Name="donate.png" Id="IconDonate40" />
                  <File Name="edit.png" Id="IconEdit40" />
                  <File Name="explore.png" Id="IconExplore40" />
                  <File Name="install.png" Id="IconInstall40" />
                  <File Name="key.png" Id="IconKey40" />
                  <File Name="open.png" Id="IconOpen40" />
                  <File Name="pack.png" Id="IconPack40" />
                  <File Name="project.png" Id="IconProject40" />
                  <File Name="recent.png" Id="IconRecent40" />
                  <File Name="refresh.png" Id="IconRefresh40" />
                  <File Name="replace.png" Id="IconReplace40" />
                  <File Name="save.png" Id="IconSave40" />
                  <File Name="save-as.png" Id="IconSaveAs40" />
                  <File Name="separator.png" Id="IconSeparator40" />
                  <File Name="settings.png" Id="IconSettings40" />
                  <File Name="spacer.png" Id="IconSpacer40" />
                  <File Name="title.png" Id="IconTitle40" />
                  <File Name="update.png" Id="IconUpdate40" />
                  <File Name="website.png" Id="IconWebsite40" />
                  <File Name="zoom.png" Id="IconZoom40" />
                  <File Name="zoom-in.png" Id="IconZoomIn40" />
                  <File Name="zoom-out.png" Id="IconZoomOut40" />
                </Component>
              </Directory>
              <Directory Id="Icons48Folder" Name="48x48">
                <Component Id="Icons48Component" Guid="DE8EF7AE-6B40-4ED3-9680-594EBD7B14A6">
                  <File Name="application.png" Id="IconApplication48" />
                </Component>
              </Directory>
              <Directory Id="Icons256Folder" Name="256x256">
                <Component Id="Icons256Component" Guid="1F57E49F-DC86-478C-A851-930C5C3209B9">
                  <File Name="application.png" Id="IconApplication256" />
                </Component>
              </Directory>
              <Directory Id="IconsStaticFolder" Name="static">
                <Component Id="IconsStaticComponent" Guid="5DE3B836-2439-46FB-A0F9-A4B96E8B412A">
                  <File Name="state-error.png" />
                  <File Name="state-idle.png" />
                  <File Name="state-install.png" />
                  <File Name="state-open.png" />
                  <File Name="state-save.png" />
                  <File Name="wait.png" />
                </Component>
              </Directory>
            </Directory>
            <Directory Id="FlagsFolder" Name="flags">
              <Component Id="FlagsComponent" Guid="A6DFCCDD-FCEF-453D-8E0E-C0A816199BFB">
                <File Name="ad.png" />
                <File Name="ae.png" />
                <File Name="af.png" />
                <File Name="ag.png" />
                <File Name="ai.png" />
                <File Name="al.png" />
                <File Name="am.png" />
                <File Name="an.png" />
                <File Name="ao.png" />
                <File Name="ar.png" />
                <File Name="as.png" />
                <File Name="at.png" />
                <File Name="au.png" />
                <File Name="aw.png" />
                <File Name="ax.png" />
                <File Name="az.png" />
                <File Name="ba.png" />
                <File Name="bb.png" />
                <File Name="bd.png" />
                <File Name="be.png" />
                <File Name="bf.png" />
                <File Name="bg.png" />
                <File Name="bh.png" />
                <File Name="bi.png" />
                <File Name="bj.png" />
                <File Name="bm.png" />
                <File Name="bn.png" />
                <File Name="bo.png" />
                <File Name="br.png" />
                <File Name="bs.png" />
                <File Name="bt.png" />
                <File Name="bv.png" />
                <File Name="bw.png" />
                <File Name="by.png" />
                <File Name="bz.png" />
                <File Name="ca.png" />
                <File Name="cc.png" />
                <File Name="cd.png" />
                <File Name="cf.png" />
                <File Name="cg.png" />
                <File Name="ch.png" />
                <File Name="ci.png" />
                <File Name="ck.png" />
                <File Name="cl.png" />
                <File Name="cm.png" />
                <File Name="cn.png" />
                <File Name="co.png" />
                <File Name="cr.png" />
                <File Name="cs.png" />
                <File Name="cu.png" />
                <File Name="cv.png" />
                <File Name="cx.png" />
                <File Name="cy.png" />
                <File Name="cz.png" />
                <File Name="de.png" />
                <File Name="dj.png" />
                <File Name="dk.png" />
                <File Name="dm.png" />
                <File Name="do.png" />
                <File Name="dz.png" />
                <File Name="ec.png" />
                <File Name="ee.png" />
                <File Name="eg.png" />
                <File Name="eh.png" />
                <File Name="er.png" />
                <File Name="es.png" />
                <File Name="et.png" />
                <File Name="fi.png" />
                <File Name="fj.png" />
                <File Name="fk.png" />
                <File Name="fm.png" />
                <File Name="fo.png" />
                <File Name="fr.png" />
                <File Name="ga.png" />
                <File Name="gb.png" />
                <File Name="gd.png" />
                <File Name="ge.png" />
                <File Name="gf.png" />
                <File Name="gh.png" />
                <File Name="gi.png" />
                <File Name="gl.png" />
                <File Name="gm.png" />
                <File Name="gn.png" />
                <File Name="gp.png" />
                <File Name="gq.png" />
                <File Name="gr.png" />
                <File Name="gs.png" />
                <File Name="gt.png" />
                <File Name="gu.png" />
                <File Name="gw.png" />
                <File Name="gy.png" />
                <File Name="hk.png" />
                <File Name="hm.png" />
                <File Name="hn.png" />
                <File Name="hr.png" />
                <File Name="ht.png" />
                <File Name="hu.png" />
                <File Name="id.png" />
                <File Name="ie.png" />
                <File Name="il.png" />
                <File Name="in.png" />
                <File Name="io.png" />
                <File Name="iq.png" />
                <File Name="ir.png" />
                <File Name="is.png" />
                <File Name="it.png" />
                <File Name="jm.png" />
                <File Name="jo.png" />
                <File Name="jp.png" />
                <File Name="ke.png" />
                <File Name="kg.png" />
                <File Name="kh.png" />
                <File Name="ki.png" />
                <File Name="km.png" />
                <File Name="kn.png" />
                <File Name="kp.png" />
                <File Name="kr.png" />
                <File Name="kw.png" />
                <File Name="ky.png" />
                <File Name="kz.png" />
                <File Name="la.png" />
                <File Name="lb.png" />
                <File Name="lc.png" />
                <File Name="li.png" />
                <File Name="lk.png" />
                <File Name="lr.png" />
                <File Name="ls.png" />
                <File Name="lt.png" />
                <File Name="lu.png" />
                <File Name="lv.png" />
                <File Name="ly.png" />
                <File Name="ma.png" />
                <File Name="mc.png" />
                <File Name="md.png" />
                <File Name="me.png" />
                <File Name="mg.png" />
                <File Name="mh.png" />
                <File Name="mk.png" />
                <File Name="ml.png" />
                <File Name="mm.png" />
                <File Name="mn.png" />
                <File Name="mo.png" />
                <File Name="mp.png" />
                <File Name="mq.png" />
                <File Name="mr.png" />
                <File Name="ms.png" />
                <File Name="mt.png" />
                <File Name="mu.png" />
                <File Name="mv.png" />
                <File Name="mw.png" />
                <File Name="mx.png" />
                <File Name="my.png" />
                <File Name="mz.png" />
                <File Name="na.png" />
                <File Name="nc.png" />
                <File Name="ne.png" />
                <File Name="nf.png" />
                <File Name="ng.png" />
                <File Name="ni.png" />
                <File Name="nl.png" />
                <File Name="no.png" />
                <File Name="np.png" />
                <File Name="nr.png" />
                <File Name="nu.png" />
                <File Name="nz.png" />
                <File Name="om.png" />
                <File Name="pa.png" />
                <File Name="pe.png" />
                <File Name="pf.png" />
                <File Name="pg.png" />
                <File Name="ph.png" />
                <File Name="pk.png" />
                <File Name="pl.png" />
                <File Name="pm.png" />
                <File Name="pn.png" />
                <File Name="pr.png" />
                <File Name="ps.png" />
                <File Name="pt.png" />
                <File Name="pw.png" />
                <File Name="py.png" />
                <File Name="qa.png" />
                <File Name="re.png" />
                <File Name="ro.png" />
                <File Name="rs.png" />
                <File Name="ru.png" />
                <File Name="rw.png" />
                <File Name="sa.png" />
                <File Name="sb.png" />
                <File Name="sc.png" />
                <File Name="sd.png" />
                <File Name="se.png" />
                <File Name="sg.png" />
                <File Name="sh.png" />
                <File Name="si.png" />
                <File Name="sj.png" />
                <File Name="sk.png" />
                <File Name="sl.png" />
                <File Name="sm.png" />
                <File Name="sn.png" />
                <File Name="so.png" />
                <File Name="sr.png" />
                <File Name="st.png" />
                <File Name="sv.png" />
                <File Name="sy.png" />
                <File Name="sz.png" />
                <File Name="tc.png" />
                <File Name="td.png" />
                <File Name="tf.png" />
                <File Name="tg.png" />
                <File Name="th.png" />
                <File Name="tj.png" />
                <File Name="tk.png" />
                <File Name="tl.png" />
                <File Name="tm.png" />
                <File Name="tn.png" />
                <File Name="to.png" />
                <File Name="tr.png" />
                <File Name="tt.png" />
                <File Name="tv.png" />
                <File Name="tw.png" />
                <File Name="tz.png" />
                <File Name="ua.png" />
                <File Name="ug.png" />
                <File Name="um.png" />
                <File Name="us.png" />
                <File Name="uy.png" />
                <File Name="uz.png" />
                <File Name="va.png" />
                <File Name="vc.png" />
                <File Name="ve.png" />
                <File Name="vg.png" />
                <File Name="vi.png" />
                <File Name="vn.png" />
                <File Name="vu.png" />
                <File Name="wf.png" />
                <File Name="ws.png" />
                <File Name="ye.png" />
                <File Name="yt.png" />
                <File Name="za.png" />
                <File Name="zm.png" />
                <File Name="zw.png" />
              </Component>
            </Directory>
            <Directory Id="LanguagesFolder" Name="translations">
              <Component Id="RussianComponent" Guid="FAF0AB93-09ED-4B7E-BF1E-80E0B2CAABD3">
                <File Name="apk-editor-studio.ru.qm" />
                <File Name="qt.ru.qm" />
              </Component>
            </Directory>
          </Directory>
          <Directory Id="DocsFolder" Name="docs">
            <Component Id="DocsComponent" Guid="EA9B70EB-B177-4228-B486-0E5A2381AAD4">
              <File Name="authors.txt" />
              <File Name="versions.txt" />
            </Component>
            <Directory Id="LicensesFolder" Name="licenses">
              <Component Id="LicensesComponent" Guid="D84395BB-7491-40F2-9952-956F73BAD5C6">
                <File Name="apk-editor-studio.html" />
              </Component>
            </Directory>
          </Directory>
          <Component Id="QtComponent" Guid="50EF20B9-E8A5-4404-94F3-CA22900FF326">
            <File Source="$(env.QTDIR)\bin\Qt5Core.dll" />
            <File Source="$(env.QTDIR)\bin\Qt5Gui.dll" />
            <File Source="$(env.QTDIR)\bin\Qt5Network.dll" />
            <File Source="$(env.QTDIR)\bin\Qt5Svg.dll" />
            <File Source="$(env.QTDIR)\bin\Qt5Widgets.dll" />
            <File Source="$(env.QTDIR)\bin\Qt5Xml.dll" />
          </Component>
          <Component Id="SslComponent" Guid="F309A6A0-AD5B-44A4-97E7-BFF5D5FCAA45">
            <File Source="$(env.OPENSSL)\libeay32.dll" />
            <File Source="$(env.OPENSSL)\ssleay32.dll" />
          </Component>
          <Directory Id="ImageFormatsFolder" Name="imageformats">
            <Component Id="ImageFormatsComponent" Guid="CC89BD49-ED15-4E80-9CA6-4EC52B81E53C">
              <File Source="$(env.QTDIR)\plugins\imageformats\qgif.dll" />
              <File Source="$(env.QTDIR)\plugins\imageformats\qicns.dll" />
              <File Source="$(env.QTDIR)\plugins\imageformats\qico.dll" />
              <File Source="$(env.QTDIR)\plugins\imageformats\qjpeg.dll" />
              <File Source="$(env.QTDIR)\plugins\imageformats\qsvg.dll" />
            </Component>
          </Directory>
          <Directory Id="PlatformsFolder" Name="platforms">
            <Component Id="PlatformsComponent" Guid="78B25E93-F1B2-4A0A-B41F-8C449355C197">
              <File Source="$(env.QTDIR)\plugins\platforms\qwindows.dll" />
            </Component>
          </Directory>
          <Directory Id="StylesFolder" Name="styles">
            <Component Id="StylesComponent" Guid="10940243-0FF5-4977-AF38-30BE68F867E1">
              <File Source="$(env.QTDIR)\plugins\styles\qwindowsvistastyle.dll" />
            </Component>
          </Directory>
        </Directory>
      </Directory>
    </Directory>

    <ComponentGroup Id="ApplicationComponents">
      <ComponentRef Id="ExeComponent" />
      <ComponentRef Id="DocsComponent" />
      <ComponentRef Id="LicensesComponent" />
      <ComponentGroupRef Id="ResourcesComponents" />
      <ComponentGroupRef Id="ToolsComponents" />
      <ComponentGroupRef Id="DllComponents" />
      <ComponentGroupRef Id="InstallerComponents" />
    </ComponentGroup>
    <ComponentGroup Id="ResourcesComponents">
      <ComponentGroupRef Id="IconsComponent" />
      <ComponentRef Id="FlagsComponent" />
    </ComponentGroup>
    <ComponentGroup Id="IconsComponent">
      <ComponentRef Id="Icons16Component" />
      <ComponentRef Id="Icons20Component" />
      <ComponentRef Id="Icons30Component" />
      <ComponentRef Id="Icons32Component" />
      <ComponentRef Id="Icons40Component" />
      <ComponentRef Id="Icons48Component" />
      <ComponentRef Id="Icons256Component" />
      <ComponentRef Id="IconsStaticComponent" />
    </ComponentGroup>
    <ComponentGroup Id="ToolsComponents">
      <ComponentRef Id="ApktoolComponent" />
      <ComponentRef Id="SignerComponent" />
      <ComponentRef Id="ZipalignComponent" />
      <ComponentRef Id="AdbComponent" />
    </ComponentGroup>
    <ComponentGroup Id="TranslationsComponents">
      <ComponentRef Id="RussianComponent" />
    </ComponentGroup>
    <ComponentGroup Id="DllComponents">
      <ComponentRef Id="QtComponent" />
      <ComponentRef Id="SslComponent" />
      <ComponentRef Id="ImageFormatsComponent" />
      <ComponentRef Id="PlatformsComponent" />
      <ComponentRef Id="StylesComponent" />
    </ComponentGroup>
    <ComponentGroup Id="InstallerComponents">
      <ComponentRef Id="UninstallComponent" />
    </ComponentGroup>

		<Feature Id="ApplicationFeature" Title="$(var.ProductName)" Description="Install $(var.ProductName) application files." Absent="disallow" AllowAdvertise="no" ConfigurableDirectory="INSTALLFOLDER">
      <ComponentGroupRef Id="ApplicationComponents" />
		</Feature>
    <Feature Id="AssociationFeature" Title="File Association" Description="Register APK file association.">
      <ComponentRef Id="AssociationComponent" />
    </Feature>
    <Feature Id="TranslationsFeature" Title="Translations" Description="Install additional translations. English is included by default.">
      <Feature Id="RussianFeature" Title="Russian" Description="Russian translation.">
        <ComponentRef Id="RussianComponent" />
      </Feature>
    </Feature>
    <Feature Id="ShortcutsFeature" Title="Shortcuts" Description="Create $(var.ProductName) shortcuts.">
      <Feature Id="DesktopFeature" Title="Desktop Shortcut" Description="Add $(var.ProductName) shortcut to desktop.">
        <ComponentRef Id="DesktopComponent" />
      </Feature>
      <Feature Id="StartmenuFeature" Title="Start Menu Shortcuts" Description="Add $(var.ProductName) shortcut to start menu.">
        <ComponentRef Id="StartmenuComponent" />
      </Feature>
    </Feature>
    <Feature Id="VCRedistFeature" Title="Visual C++ 2015 Redistributable" Description="Install Visual C++ 2015 (14.0) Redistributable Package." Display="hidden" AllowAdvertise="no">
      <MergeRef Id="VCRedist"/>
    </Feature>
	</Product>
</Wix>
