Skip to content

Commit

Permalink
WIP: Prevent installation on ARM64 Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yukawa committed Nov 20, 2024
1 parent a0fed62 commit 2b7a9fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/win32/installer/installer_64bit.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
<Launch Condition="Privileged" Message="Google 日本語入力をインストールするには管理者権限が必要です。" />
<Media Id="1" Cabinet="GoogleJapaneseInput.cab" EmbedCab="yes" CompressionLevel="high" />

<Property Id="PROCESSOR_ARCHITECTURE">
<RegistrySearch Id="ProcessorArchitectureValue" Type="raw" Root="HKLM" Key="System\CurrentControlSet\Control\Session Manager\Environment" Name="PROCESSOR_ARCHITECTURE" />
</Property>
<Launch Condition="(NOT (PROCESSOR_ARCHITECTURE=&quot;ARM64&quot;)) OR UPGRADING OR (REMOVE=&quot;ALL&quot;)" Message="ARM64 環境へのインストールはサポートされていません。" />

<!-- Set Add/Remove Program Icon -->
<Icon Id="add_remove_program_icon.ico" SourceFile="$(var.AddRemoveProgramIconPath)" />
<Property Id="ARPPRODUCTICON" Value="add_remove_program_icon.ico" />
Expand Down
5 changes: 5 additions & 0 deletions src/win32/installer/installer_oss_64bit.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
<Launch Condition="Privileged" Message="Mozc をインストールするには管理者権限が必要です。" />
<Media Id="1" Cabinet="Mozc.cab" EmbedCab="yes" CompressionLevel="high" />

<Property Id="PROCESSOR_ARCHITECTURE">
<RegistrySearch Id="ProcessorArchitectureValue" Type="raw" Root="HKLM" Key="System\CurrentControlSet\Control\Session Manager\Environment" Name="PROCESSOR_ARCHITECTURE" />
</Property>
<Launch Condition="(NOT (PROCESSOR_ARCHITECTURE=&quot;ARM64&quot;)) OR UPGRADING OR (REMOVE=&quot;ALL&quot;)" Message="ARM64 環境へのインストールはサポートされていません。" />

<!-- Set Add/Remove Program Icon -->
<Icon Id="add_remove_program_icon.ico" SourceFile="$(var.AddRemoveProgramIconPath)" />
<Property Id="ARPPRODUCTICON" Value="add_remove_program_icon.ico" />
Expand Down

0 comments on commit 2b7a9fe

Please sign in to comment.