ardupilot/Tools/ArdupilotMegaPlanner/Msi/installer.wxs

347 lines
18 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:difx="http://schemas.microsoft.com/wix/DifxAppExtension">
<Product Id="*" Name="Mission Planner" Language="1033" Version="1.2.18" Manufacturer="Michael Oborne" UpgradeCode="{625389D7-EB3C-4d77-A5F6-A285CF99437D}">
<Package Description="Mission Planner Installer" Comments="Mission Planner Installer" Manufacturer="Michael Oborne" InstallerVersion="200" Compressed="yes" />
<Upgrade Id="{625389D7-EB3C-4d77-A5F6-A285CF99437D}">
<UpgradeVersion OnlyDetect="yes" Minimum="1.2.18" Property="NEWERVERSIONDETECTED" IncludeMinimum="no" />
<UpgradeVersion OnlyDetect="no" Maximum="1.2.18" Property="OLDERVERSIONBEINGUPGRADED" IncludeMaximum="no" />
</Upgrade>
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallInitialize" />
</InstallExecuteSequence>
<PropertyRef Id="NETFRAMEWORK35" />
<Condition Message="This application requires .NET Framework 3.5. Please install the .NET Framework then run this installer again."><![CDATA[Installed OR NETFRAMEWORK35]]></Condition>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="APMPlanner" Name="APM Planner">
<Component Id="InstallDirPermissions" Guid="{525389D7-EB3C-4d77-A5F6-A285CF99437D}" KeyPath="yes">
<CreateFolder>
<Permission User="Everyone" GenericAll="yes" />
</CreateFolder>
</Component>
<Component Id="_comp1" Guid="30477c8d-136b-4abe-a0ff-94cad3f530fd">
<File Id="_2" Source="..\bin\release\.gdbinit" />
<File Id="_3" Source="..\bin\release\.gitignore" />
<File Id="_4" Source="..\bin\release\aerosim3.91.txt" />
<File Id="_5" Source="..\bin\release\AeroSimRCAPMHil.zip" />
<File Id="_6" Source="..\bin\release\alglibnet2.dll" />
<File Id="_7" Source="..\bin\release\arducopter-xplane.zip" />
<File Id="_8" Source="..\bin\release\ArduCopterConfig.xml" />
<File Id="_9" Source="..\bin\release\ArduinoCPP.exe" />
<File Id="_10" Source="..\bin\release\ArduinoCPP.exe.config" />
<File Id="_11" Source="..\bin\release\ArduinoCPP.pdb" />
<File Id="_12" Source="..\bin\release\ArdupilotMegaPlanner.application" />
<File Id="_13" Source="..\bin\release\ArdupilotMegaPlanner.exe.config" />
<File Id="_14" Source="..\bin\release\ArdupilotMegaPlanner.exe.manifest" />
<File Id="_15" Source="..\bin\release\ArdupilotMegaPlanner10.application" />
<File Id="_16" Source="..\bin\release\ArdupilotMegaPlanner10.exe" ><netfx:NativeImage Id="ngen_ArdupilotMegaPlannerexe"/> </File>
<File Id="_17" Source="..\bin\release\ArdupilotMegaPlanner10.exe.config" />
<File Id="_18" Source="..\bin\release\ArdupilotMegaPlanner10.exe.manifest" />
<File Id="_19" Source="..\bin\release\ArdupilotMegaPlanner10.pdb" />
<File Id="_20" Source="..\bin\release\block_plane_0.dae" />
<File Id="_21" Source="..\bin\release\BSE.Windows.Forms.dll" />
<File Id="_22" Source="..\bin\release\BSE.Windows.Forms.pdb" />
<File Id="_23" Source="..\bin\release\BSE.Windows.Forms.xml" />
<File Id="_24" Source="..\bin\release\Core.dll" />
<File Id="_25" Source="..\bin\release\dataflashlog.xml" />
<File Id="_26" Source="..\bin\release\DirectShowLib-2005.dll" />
<File Id="_27" Source="..\bin\release\eeprom.bin" />
<File Id="_28" Source="..\bin\release\FDLayout.xml" />
<File Id="_29" Source="..\bin\release\FDscreen.xml" />
<File Id="_30" Source="..\bin\release\GMap.NET.Core.dll" />
<File Id="_31" Source="..\bin\release\GMap.NET.Core.pdb" />
<File Id="_32" Source="..\bin\release\GMap.NET.WindowsForms.dll" />
<File Id="_33" Source="..\bin\release\GMap.NET.WindowsForms.pdb" />
<File Id="_34" Source="..\bin\release\hud.html" />
<File Id="_35" Source="..\bin\release\ICSharpCode.SharpZipLib.dll" />
<File Id="_36" Source="..\bin\release\Ionic.Zip.Reduced.dll" />
<File Id="_37" Source="..\bin\release\IronPython.dll" />
<File Id="_38" Source="..\bin\release\IronPython.Modules.dll" />
<File Id="_39" Source="..\bin\release\KMLib.dll" />
<File Id="_40" Source="..\bin\release\log4net.dll" />
<File Id="_41" Source="..\bin\release\mavcmd.xml" />
<File Id="_42" Source="..\bin\release\MAVLink.xml" />
<File Id="_43" Source="..\bin\release\MetaDataExtractor.dll" />
<File Id="_44" Source="..\bin\release\Microsoft.DirectX.DirectInput.dll" />
<File Id="_45" Source="..\bin\release\Microsoft.DirectX.dll" />
<File Id="_46" Source="..\bin\release\Microsoft.Dynamic.dll" />
<File Id="_47" Source="..\bin\release\Microsoft.Scripting.Core.dll" />
<File Id="_48" Source="..\bin\release\Microsoft.Scripting.Debugging.dll" />
<File Id="_49" Source="..\bin\release\Microsoft.Scripting.dll" />
<File Id="_50" Source="..\bin\release\Microsoft.Scripting.ExtensionAttribute.dll" />
<File Id="_51" Source="..\bin\release\netDxf.dll" />
<File Id="_52" Source="..\bin\release\OpenTK.dll" />
<File Id="_53" Source="..\bin\release\OpenTK.dll.config" />
<File Id="_54" Source="..\bin\release\OpenTK.GLControl.dll" />
<File Id="_55" Source="..\bin\release\ParameterMetaData.xml" />
<File Id="_56" Source="..\bin\release\px4uploader.exe" />
<File Id="_57" Source="..\bin\release\px4uploader.exe.config" />
<File Id="_58" Source="..\bin\release\px4uploader.pdb" />
<File Id="_59" Source="..\bin\release\quadhil.xml" />
<File Id="_60" Source="..\bin\release\runme" />
<File Id="_61" Source="..\bin\release\serialsent.raw" />
<File Id="_62" Source="..\bin\release\SharpKml.dll" />
<File Id="_63" Source="..\bin\release\SharpKml.pdb" />
<File Id="_64" Source="..\bin\release\SharpKml.xml" />
<File Id="_65" Source="..\bin\release\System.Data.SQLite.dll" />
<File Id="_66" Source="..\bin\release\System.Reactive.dll" />
<File Id="_67" Source="..\bin\release\System.Reactive.xml" />
<File Id="_68" Source="..\bin\release\System.Speech.dll" />
<File Id="_69" Source="..\bin\release\Transitions.dll" />
<File Id="_70" Source="..\bin\release\Updater.exe" />
<File Id="_71" Source="..\bin\release\Updater.exe.config" />
<File Id="_72" Source="..\bin\release\Updater.pdb" />
<File Id="_73" Source="..\bin\release\version.exe" />
<File Id="_74" Source="..\bin\release\version.txt" />
<File Id="_75" Source="..\bin\release\ZedGraph.dll" />
</Component>
<Directory Id="aircraft75" Name="aircraft">
<Component Id="_comp76" Guid="64cd7ff1-45ca-4059-8f88-0ef5440568ff">
<File Id="_77" Source="..\bin\release\aircraft\placeholder.txt" />
</Component>
<Directory Id="arducopter77" Name="arducopter">
<Component Id="_comp78" Guid="c0fdc060-4a78-4eeb-abbc-1e6be6fab746">
<File Id="_79" Source="..\bin\release\aircraft\arducopter\arducopter-set.xml" />
<File Id="_80" Source="..\bin\release\aircraft\arducopter\arducopter.jpg" />
<File Id="_81" Source="..\bin\release\aircraft\arducopter\arducopter.xml" />
<File Id="_82" Source="..\bin\release\aircraft\arducopter\initfile.xml" />
<File Id="_83" Source="..\bin\release\aircraft\arducopter\plus_quad2-set.xml" />
<File Id="_84" Source="..\bin\release\aircraft\arducopter\plus_quad2.xml" />
<File Id="_85" Source="..\bin\release\aircraft\arducopter\quad.nas" />
<File Id="_86" Source="..\bin\release\aircraft\arducopter\README" />
</Component>
<Directory Id="data86" Name="data">
<Component Id="_comp87" Guid="ee55c7c0-e3d8-4f78-bcce-bcff6916baa2">
<File Id="_88" Source="..\bin\release\aircraft\arducopter\data\arducopter_half_step.txt" />
<File Id="_89" Source="..\bin\release\aircraft\arducopter\data\arducopter_step.txt" />
<File Id="_90" Source="..\bin\release\aircraft\arducopter\data\rw_generic_pylon.ac" />
</Component>
</Directory>
<Directory Id="Engines90" Name="Engines">
<Component Id="_comp91" Guid="2ad45652-e002-47b4-bb20-551f3451964c">
<File Id="_92" Source="..\bin\release\aircraft\arducopter\Engines\a2830-12.xml" />
<File Id="_93" Source="..\bin\release\aircraft\arducopter\Engines\prop10x4.5.xml" />
</Component>
</Directory>
<Directory Id="Models93" Name="Models">
<Component Id="_comp94" Guid="a30e0a61-5c65-4bda-a725-0f488fc3e136">
<File Id="_95" Source="..\bin\release\aircraft\arducopter\Models\arducopter.ac" />
<File Id="_96" Source="..\bin\release\aircraft\arducopter\Models\arducopter.xml" />
<File Id="_97" Source="..\bin\release\aircraft\arducopter\Models\plus_quad.ac" />
<File Id="_98" Source="..\bin\release\aircraft\arducopter\Models\plus_quad2.ac" />
<File Id="_99" Source="..\bin\release\aircraft\arducopter\Models\plus_quad2.xml" />
<File Id="_100" Source="..\bin\release\aircraft\arducopter\Models\quad.3ds" />
<File Id="_101" Source="..\bin\release\aircraft\arducopter\Models\shareware_output.3ds" />
<File Id="_102" Source="..\bin\release\aircraft\arducopter\Models\Untitled.ac" />
<File Id="_103" Source="..\bin\release\aircraft\arducopter\Models\Y6_test.ac" />
</Component>
</Directory>
</Directory>
<Directory Id="Rascal103" Name="Rascal">
<Component Id="_comp104" Guid="4dd20071-b293-4254-a947-f304f4de376c">
<File Id="_105" Source="..\bin\release\aircraft\Rascal\Rascal-keyboard.xml" />
<File Id="_106" Source="..\bin\release\aircraft\Rascal\Rascal-submodels.xml" />
<File Id="_107" Source="..\bin\release\aircraft\Rascal\Rascal.xml" />
<File Id="_108" Source="..\bin\release\aircraft\Rascal\Rascal110-JSBSim-set.xml" />
<File Id="_109" Source="..\bin\release\aircraft\Rascal\Rascal110-JSBSim.xml" />
<File Id="_110" Source="..\bin\release\aircraft\Rascal\Rascal110-splash.rgb" />
<File Id="_111" Source="..\bin\release\aircraft\Rascal\README.Rascal" />
<File Id="_112" Source="..\bin\release\aircraft\Rascal\reset_CMAC.xml" />
<File Id="_113" Source="..\bin\release\aircraft\Rascal\thumbnail.jpg" />
</Component>
<Directory Id="Engines113" Name="Engines">
<Component Id="_comp114" Guid="977eb9a5-5198-4d3a-827d-cb72e93ad4c1">
<File Id="_115" Source="..\bin\release\aircraft\Rascal\Engines\18x8.xml" />
<File Id="_116" Source="..\bin\release\aircraft\Rascal\Engines\Zenoah_G-26A.xml" />
</Component>
</Directory>
<Directory Id="Models116" Name="Models">
<Component Id="_comp117" Guid="c7b802e7-ffa2-4e94-ba8c-3d8667bdc0a5">
<File Id="_118" Source="..\bin\release\aircraft\Rascal\Models\Rascal.rgb" />
<File Id="_119" Source="..\bin\release\aircraft\Rascal\Models\Rascal110-000-013.ac" />
<File Id="_120" Source="..\bin\release\aircraft\Rascal\Models\Rascal110.xml" />
<File Id="_121" Source="..\bin\release\aircraft\Rascal\Models\smoke.png" />
<File Id="_122" Source="..\bin\release\aircraft\Rascal\Models\smokeW.xml" />
<File Id="_123" Source="..\bin\release\aircraft\Rascal\Models\Trajectory-Marker.ac" />
<File Id="_124" Source="..\bin\release\aircraft\Rascal\Models\Trajectory-Marker.xml" />
</Component>
</Directory>
<Directory Id="Systems124" Name="Systems">
<Component Id="_comp125" Guid="9b2afda1-6e48-428b-9869-8b17a95ae86e">
<File Id="_126" Source="..\bin\release\aircraft\Rascal\Systems\110-autopilot.xml" />
<File Id="_127" Source="..\bin\release\aircraft\Rascal\Systems\airdata.nas" />
<File Id="_128" Source="..\bin\release\aircraft\Rascal\Systems\electrical.xml" />
<File Id="_129" Source="..\bin\release\aircraft\Rascal\Systems\main.nas" />
<File Id="_130" Source="..\bin\release\aircraft\Rascal\Systems\ugear.nas" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="es_ES130" Name="es-ES">
<Component Id="_comp131" Guid="8b897a61-8267-4042-a66a-1252fe4a9bf0">
<File Id="_132" Source="..\bin\release\es-ES\ArdupilotMegaPlanner.resources.dll" />
<File Id="_133" Source="..\bin\release\es-ES\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="fr133" Name="fr">
<Component Id="_comp134" Guid="20245952-4261-47c6-a747-5ed48a6794e6">
<File Id="_135" Source="..\bin\release\fr\ArdupilotMegaPlanner.resources.dll" />
<File Id="_136" Source="..\bin\release\fr\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="it_IT136" Name="it-IT">
<Component Id="_comp137" Guid="518985a2-0a76-4633-baf0-b3c71dbbf89c">
<File Id="_138" Source="..\bin\release\it-IT\ArdupilotMegaPlanner.resources.dll" />
<File Id="_139" Source="..\bin\release\it-IT\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="jsbsim139" Name="jsbsim">
<Component Id="_comp140" Guid="699b6219-45bb-452b-aa68-3cdb9bf5fb8e">
<File Id="_141" Source="..\bin\release\jsbsim\fgout.xml" />
<File Id="_142" Source="..\bin\release\jsbsim\rascal_test.xml" />
</Component>
</Directory>
<Directory Id="m3u142" Name="m3u">
<Component Id="_comp143" Guid="91ada541-c506-430e-886a-e2163315cb6e">
<File Id="_144" Source="..\bin\release\m3u\both.m3u" />
<File Id="_145" Source="..\bin\release\m3u\GeoRefnetworklink.kml" />
<File Id="_146" Source="..\bin\release\m3u\hud.m3u" />
<File Id="_147" Source="..\bin\release\m3u\map.m3u" />
<File Id="_148" Source="..\bin\release\m3u\networklink.kml" />
</Component>
</Directory>
<Directory Id="pl148" Name="pl">
<Component Id="_comp149" Guid="b99936a1-1876-41c0-b348-b7205a4a12b0">
<File Id="_150" Source="..\bin\release\pl\ArdupilotMegaPlanner.resources.dll" />
<File Id="_151" Source="..\bin\release\pl\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="Resources151" Name="Resources">
<Component Id="_comp152" Guid="84cad085-0412-4916-99f9-302e4f294722">
<File Id="_153" Source="..\bin\release\Resources\MAVCmd.txt" />
<File Id="_154" Source="..\bin\release\Resources\Welcome_to_Michael_Oborne.rtf" />
</Component>
</Directory>
<Directory Id="ru_RU154" Name="ru-RU">
<Component Id="_comp155" Guid="57233474-1f71-4fbf-9311-494e097ee17c">
<File Id="_156" Source="..\bin\release\ru-RU\ArdupilotMegaPlanner.resources.dll" />
<File Id="_157" Source="..\bin\release\ru-RU\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="zh_Hans157" Name="zh-Hans">
<Component Id="_comp158" Guid="e51b9be7-0897-475a-96bc-bf2178428340">
<File Id="_159" Source="..\bin\release\zh-Hans\ArdupilotMegaPlanner.resources.dll" />
<File Id="_160" Source="..\bin\release\zh-Hans\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="zh_TW160" Name="zh-TW">
<Component Id="_comp161" Guid="e12395f7-33a0-4c75-9d37-41186c591153">
<File Id="_162" Source="..\bin\release\zh-TW\ArdupilotMegaPlanner.resources.dll" />
<File Id="_163" Source="..\bin\release\zh-TW\ArdupilotMegaPlanner10.resources.dll" />
</Component>
</Directory>
<Directory Id="driver" Name="Drivers">
<Component Id="MyDriver" Guid="{6AC8226E-A005-437e-A3CD-0FC32D9A346F}">
<File Id="apm2inf" Source="..\Driver\Arduino MEGA 2560.inf" />
<File Id="dpixml" Source="..\Driver\dpinst.xml" />
<File Id="dpix64" Source="..\Driver\DPInstx64.exe" />
<File Id="dpix86" Source="..\Driver\DPInstx86.exe" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="APM Planner" />
</Directory>
</Directory>
<CustomAction Id='Install_Unsigned_Driver86' Execute='deferred'
Directory='driver' ExeCommand='"[driver]DPInstx86.exe"' Return='ignore' />
<CustomAction Id='Install_Unsigned_Driver64' Execute='deferred'
Directory='driver' ExeCommand='"[driver]DPInstx64.exe"' Return='ignore' />
<InstallExecuteSequence>
<Custom Action="Install_Unsigned_Driver86" After="InstallFiles">NOT
Installed AND NOT VersionNT64</Custom>
<Custom Action="Install_Unsigned_Driver64" After="InstallFiles">NOT
Installed AND VersionNT64</Custom>
</InstallExecuteSequence>
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="{8BC628BA-08A0-43d6-88C8-D4C007AC4607}">
<Shortcut Id="ApplicationStartMenuShortcut10" Name="Mission Planner Mav 1.0" Description="Ardupilot Mega Planner" Target="[APMPlanner]ArdupilotMegaPlanner10.exe" WorkingDirectory="APMPlanner" />
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
<Shortcut Id="UninstallProduct" Name="Uninstall Mission Planner" Description="Uninstalls My Application" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" />
<RegistryValue Root="HKCU" Key="Software\MichaelOborne\APMPlanner" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<Feature Id="MyFeature" Title="My 1st Feature" Level="1">
<ComponentRef Id="InstallDirPermissions" />
<ComponentRef Id="_comp1" />
<ComponentRef Id="_comp76" />
<ComponentRef Id="_comp78" />
<ComponentRef Id="_comp87" />
<ComponentRef Id="_comp91" />
<ComponentRef Id="_comp94" />
<ComponentRef Id="_comp104" />
<ComponentRef Id="_comp114" />
<ComponentRef Id="_comp117" />
<ComponentRef Id="_comp125" />
<ComponentRef Id="_comp131" />
<ComponentRef Id="_comp134" />
<ComponentRef Id="_comp137" />
<ComponentRef Id="_comp140" />
<ComponentRef Id="_comp143" />
<ComponentRef Id="_comp149" />
<ComponentRef Id="_comp152" />
<ComponentRef Id="_comp155" />
<ComponentRef Id="_comp158" />
<ComponentRef Id="_comp161" />
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="MyDriver" />
</Feature>
<!-- Step 2: Add UI to your installer / Step 4: Trigger the custom action -->
<Property Id="WIXUI_INSTALLDIR" Value="APMPlanner" />
<UI>
<UIRef Id="WixUI_InstallDir" />
<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Mission Planner" />
<!-- Step 3: Include the custom action -->
<Property Id="WixShellExecTarget" Value="[#_16]" />
<CustomAction Id="LaunchApplication"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />
</Product>
</Wix>