Skip to content

Commit 1ef230f

Browse files
committed
Build - add alternative wxs file for building beta installers
1 parent 3c53278 commit 1ef230f

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

install/windows/wix/sonic-pi-beta.wxs

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:firewall="http://schemas.microsoft.com/wix/FirewallExtension">
3+
4+
<Product Id="*" Name="Sonic Pi BETA" Language="1033" Version="3.3.0" Manufacturer="Sonic Pi" UpgradeCode="ECA5D03B-CEBD-4672-BE1A-176CBCBA4429">
5+
<Package Description="Sonic Pi Installer" Comments="Sonic Pi Installer" Platform="x64" InstallScope="perMachine" InstallerVersion="301" Compressed="yes" />
6+
<Property Id="REINSTALLMODE" Value="amus"/>
7+
<Property Id="MSIFASTINSTALL" Value="1" />
8+
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize"/>
9+
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
10+
11+
<WixVariable Id="WixUILicenseRtf" Value="wix\LICENSE.rtf" />
12+
<WixVariable Id="WixUIBannerBmp" Value="wix\wix_ui_banner.bmp" />
13+
<WixVariable Id="WixUIDialogBmp" Value="wix\wix_ui_dialog.bmp" />
14+
<Property Id='ARPCONTACT'>https://in-thread.sonic-pi.net</Property>
15+
<Property Id='ARPHELPLINK'>https://in-thread.sonic-pi.net</Property>
16+
<Property Id='ARPURLINFOABOUT'>https://sonic-pi.net</Property>
17+
<Property Id='ARPPRODUCTICON'>StartMenuIcon.exe</Property>
18+
19+
<Directory Id="TARGETDIR" Name="SourceDir">
20+
<Merge Id="VCRedist" SourceFile="../merge_modules/Microsoft_VC142_CRT_x64.msm" DiskId="1" Language="0"/>
21+
<Directory Id="ProgramFiles64Folder" Name="PFiles">
22+
<Directory Id="SonicPi" Name="Sonic Pi BETA">
23+
<Directory Id="AppDir" Name="app">
24+
<Directory Id="GUI" Name="gui">
25+
<Directory Id="QT" Name="qt">
26+
<Directory Id="BUILD" Name="build">
27+
<Directory Id="RELEASE" Name="Release">
28+
<Component Id="SONIC_PI.EXE" DiskId="1" Guid="BA4C72F9-C198-436A-B1E2-B2DF8EC65960">
29+
<File Id="SONIC_PI.EXE" Name="sonic-pi.exe" Source="SourceDir\app\gui\qt\build\Release\sonic-pi.exe" />
30+
</Component>
31+
</Directory>
32+
</Directory>
33+
</Directory>
34+
</Directory>
35+
</Directory>
36+
</Directory>
37+
</Directory>
38+
<Directory Id="ProgramMenuFolder">
39+
<Directory Id="ProgramMenuDir" Name="Sonic Pi BETA">
40+
<Component Id="StartMenuShortcuts" Guid="BBD1AB47-BC24-437D-86E4-6B8D59CBB12F">
41+
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
42+
<RegistryValue Root="HKCU" Key="Software\[ProductName]" Type="string" Value="" />
43+
<util:InternetShortcut Id="WebsiteShortcut" Name="Sonic Pi Support" Target="https://in-thread.sonic-pi.net" />
44+
<Shortcut Id="SonicPi" Name="Sonic Pi BETA" Target="[#SONIC_PI.EXE]" />
45+
</Component>
46+
</Directory>
47+
</Directory>
48+
</Directory>
49+
<Feature Id="DefaultFeature" Title="Main Feature" Level="1">
50+
<ComponentGroupRef Id="ETC"/>
51+
<ComponentGroupRef Id="GUI"/>
52+
<ComponentGroupRef Id="SERVER"/>
53+
<ComponentGroupRef Id="CONFIG"/>
54+
<ComponentRef Id="SONIC_PI.EXE" />
55+
<ComponentRef Id="StartMenuShortcuts" />
56+
</Feature>
57+
58+
<UI Id="UserInterface">
59+
<UIRef Id="WixUI_Minimal" />
60+
<Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" />
61+
<DialogRef Id="ProgressDlg" />
62+
<DialogRef Id="ErrorDlg" />
63+
<DialogRef Id="FilesInUse" />
64+
<DialogRef Id="FatalError" />
65+
<DialogRef Id="UserExit" />
66+
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication" Order="999">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
67+
<Publish Dialog="WelcomeDlg" Control="Next" Event="EndDialog" Value="Return" Order="2"></Publish>
68+
</UI>
69+
70+
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Sonic Pi BETA" />
71+
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
72+
<Property Id="WixShellExecTarget" Value="[#SONIC_PI.EXE]" />
73+
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
74+
75+
<Feature Id="VCRedist" Title="Visual Studio C++ 2019 Runtime" AllowAdvertise="no" Display="hidden" Level="1">
76+
<MergeRef Id="VCRedist"/>
77+
</Feature>
78+
79+
<Icon Id="StartMenuIcon.exe" SourceFile="../../app/gui/qt/build/Release/sonic-pi.exe" />
80+
</Product>
81+
</Wix>

0 commit comments

Comments
 (0)