Skip to content

Commit

Permalink
fix(build): fix msi installer error
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed May 11, 2023
1 parent 3e95953 commit 4929d47
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions packages/build/templates/msi/index.wxs.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,27 @@
<UIRef Id="WixUI_FeatureTree" />
<UIRef Id="WixUI_ErrorProgressText" />

<Property Id="PrerequisiteEdgeInstalled">
<RegistrySearch
Id="RegistrySearchEdgeInstalled"
Root="HKLM"
Key="SOFTWARE\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}"
Name="pv"
Type="raw"
Win64="no"
/>
</Property>
<Property Id="PrerequisiteWvrtInstalled">
<RegistrySearch
Id="RegistrySearchWvrtInstalled"
Root="HKLM"
Key="SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}"
Name="pv"
Type="raw"
Win64="no"
/>
</Property>

<CustomAction
Id="CustomActionUnfold"
FileKey="FileUnfold"
Expand Down Expand Up @@ -308,11 +329,11 @@
>NOT Installed</Custom>

<Custom Action="CustomActionSetupMicrosoftEdge" After="InstallFiles">
<![CDATA[&FeaturePuppeteerSupport = 3]]>
<![CDATA[(&FeaturePuppeteerSupport = 3) AND NOT (PrerequisiteEdgeInstalled)]]>
</Custom>

<Custom Action="CustomActionSetupWebview2" After="InstallFiles">
<![CDATA[&FeatureConsoleWindow = 3]]>
<![CDATA[(&FeatureConsoleWindow = 3) AND NOT (PrerequisiteWvrtInstalled)]]>
</Custom>
</InstallExecuteSequence>
</Product>
Expand Down

0 comments on commit 4929d47

Please sign in to comment.