Skip to content

Commit

Permalink
Refactor Windows installer template for arm64: update XML structure, …
Browse files Browse the repository at this point in the history
…improve metadata, and enhance component definitions
  • Loading branch information
simlarsen committed Dec 19, 2024
1 parent b43e892 commit a8100e9
Showing 1 changed file with 56 additions and 21 deletions.
77 changes: 56 additions & 21 deletions InfrastructureAgent/windows/app-arm64-template.wxs
Original file line number Diff line number Diff line change
@@ -1,24 +1,59 @@
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="OneUptime Infrastructure Agent (arm64)" Language="1033" Version="version_placeholder" Manufacturer="HackerBay, Inc." UpgradeCode="e2c6daee-3273-43ab-bef1-09cc0960c356">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product
Name='OneUptime Infrastructure Agent (arm64)'
Id='ABCDDCBA-86C7-4D14-AEC0-86413A69ABDE'
UpgradeCode='ABCDDCBA-7349-453F-94F6-BCB5110BA8FD'
Language='1033'
Codepage='1252'
Version='version_placeholder'
Manufacturer='HackerBay, Inc.'>

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="OneUptimeAgent" />
</Directory>
</Directory>
<Package
Id='*'
Keywords='Installer'
Description="OneUptime Infrastructure Agent installer"
Comments=''
Manufacturer='HackerBay, Inc.'
InstallerVersion='200'
Languages='1033'
Compressed='yes'
SummaryCodepage='1252'
/>

<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="MainExecutable" Guid="PUT-ARM64-GUID-HERE">
<File Source="binary_placeholder" />
</Component>
</ComponentGroup>
<Media
Id='1'
Cabinet='Sample.cab'
EmbedCab='yes'
DiskPrompt="CD-ROM #1"
/>

<Feature Id="ProductFeature" Title="OneUptime Infrastructure Agent (arm64)" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
</Wix>
<Property
Id='DiskPrompt'
Value="OneUptime Infrastructure Agent Installation [1]"
/>

<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='OneUptime Infrastructure Agent' Name='OneUptime Infrastructure Agent'>
<Component
Id='MainExecutable'
Guid='ABCDDCBA-83F1-4F22-985B-FDB3C8ABD474'
>
<File
Id='binary_placeholder'
Name='./dist/oneuptime_windows_arm64/oneuptime-infrastructure-agent.exe'
DiskId='1'
Source='./dist/oneuptime_windows_arm64/oneuptime-infrastructure-agent.exe'
KeyPath='yes'
/>
</Component>
</Directory>
</Directory>
</Directory>

<Feature Id='Complete' Level='1'>
<ComponentRef Id='MainExecutable' />
</Feature>
</Product>
</Wix>

0 comments on commit a8100e9

Please sign in to comment.