driver-updater

Windows app that checks Windows Update and hardware vendors for newer drivers and silently installs the driver.
git clone https://dittus.dev/git/driver-updater.git
Log | Files | Refs | README | Download

Package.wxs (1448B)


      1 <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
      2   <!-- The version comes from the exe itself, so the csproj's <Version> is the only place to set it.
      3        UpgradeCode must never change. It's how a newer MSI finds and replaces the installed one. -->
      4   <Package Name="Driver Updater"
      5            Manufacturer="dittus"
      6            Version="!(bind.FileVersion.DriverUpdaterExe)"
      7            UpgradeCode="763010EA-B01A-407A-B24A-A60B1FBA291D"
      8            Scope="perMachine">
      9 
     10     <MajorUpgrade DowngradeErrorMessage="A newer version of Driver Updater is already installed." />
     11     <MediaTemplate EmbedCab="yes" />
     12 
     13     <StandardDirectory Id="ProgramFiles64Folder">
     14       <Directory Id="INSTALLFOLDER" Name="Driver Updater">
     15         <Component>
     16           <File Id="DriverUpdaterExe" Source="$(PublishDir)DriverUpdater.exe" KeyPath="yes" />
     17         </Component>
     18       </Directory>
     19     </StandardDirectory>
     20 
     21     <!-- Windows Installer counts the Start Menu as per user, so the shortcut needs its own component
     22          with a per user registry value to mark it installed. -->
     23     <StandardDirectory Id="ProgramMenuFolder">
     24       <Component>
     25         <Shortcut Name="Driver Updater" Target="[INSTALLFOLDER]DriverUpdater.exe" WorkingDirectory="INSTALLFOLDER" />
     26         <RegistryValue Root="HKCU" Key="Software\Driver Updater" Name="StartMenuShortcut" Type="integer" Value="1" KeyPath="yes" />
     27       </Component>
     28     </StandardDirectory>
     29 
     30   </Package>
     31 </Wix>