Parcourir la source

add launch feature to exe installer

Armin Schrenk il y a 1 semaine
Parent
commit
d47ab43fcf
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 1 0
      dist/win/build.ps1
  2. 3 2
      dist/win/bundle/bundleWithWinfsp.wxs

+ 1 - 0
dist/win/build.ps1

@@ -209,6 +209,7 @@ Copy-Item ".\installer\$AppName-*.msi" -Destination ".\bundle\resources\$AppName
 
 # create bundle including winfsp
 & wix build `
+	-define BundleName="$AppName" `
 	-define BundleVersion="$semVerNo.$revisionNo" `
 	-define BundleVendor="$Vendor" `
 	-define BundleCopyright="$copyright" `

+ 3 - 2
dist/win/bundle/bundleWithWinfsp.wxs

@@ -1,6 +1,6 @@
 <!-- For Built in variables, see https://wixtoolset.org/docs/tools/burn/builtin-variables/-->
 <ns0:Wix xmlns:ns0="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
-    <ns0:Bundle Name="Cryptomator" UpgradeCode="29eea626-2e5b-4449-b5f8-4602925ddf7b" Version="$(var.BundleVersion)" Manufacturer="$(var.BundleVendor)" AboutUrl="$(var.AboutUrl)" HelpUrl="$(var.HelpUrl)" UpdateUrl="$(var.UpdateUrl)" Copyright="$(var.BundleCopyright)" IconSourceFile="bundle\resources\Cryptomator.ico">
+    <ns0:Bundle Name="$(var.BundleName)" UpgradeCode="29eea626-2e5b-4449-b5f8-4602925ddf7b" Version="$(var.BundleVersion)" Manufacturer="$(var.BundleVendor)" AboutUrl="$(var.AboutUrl)" HelpUrl="$(var.HelpUrl)" UpdateUrl="$(var.UpdateUrl)" Copyright="$(var.BundleCopyright)" IconSourceFile="bundle\resources\Cryptomator.ico">
 
         <!-- detect outdated WinFsp installations -->
         <util:ProductSearch Variable="InstalledLegacyWinFspVersion" Result="version" UpgradeCode="82F812D9-4083-4EF1-8BC8-0F1EDA05B46B" />
@@ -13,7 +13,8 @@
               ThemeFile="bundle\resources\customBootstrapperTheme.xml"
               LocalizationFile="bundle\resources\customBootstrapperTheme.wxl"
               LogoSideFile="bundle\resources\logoSide.png"
-              LogoFile="bundle\resources\logo.png" />
+              LogoFile="bundle\resources\logo.png"
+              LaunchTarget="[ProgramFiles64Folder]\$(var.BundleName)\$(var.BundleName).exe" />
             <ns0:Payload SourceFile="bundle\resources\logoSide.png"/>
         </ns0:BootstrapperApplication>