Wix / MSI Build as of Mission Planner 1.3.82

Hello,

Anyone know the proper MSI build process for Mission Planner as of version 1.3.82?

I had been building MSI installs for Mission Planner 1.3.81 per a response from @Eosbandi to this post: How do I create an installer for a custom build of mission planner

  • Build the WIX project from the MissionPlanner solution, it outputs to the msi folder
  • go to the msi folder
  • run installer.bat
  • open create.bat and edit to match your settings and tool locations, delete the section which supposed to copy packages to the distribution servers.
  • run create.bat

I recently synced up with Mission Planner 1.3.82. I know that the wix.csproj file had been changed as of 1.3.82. Perhaps (???) the most notable changes to the wix.csproj file relative to this topic are the removal of the following xml elements:

  <ItemGroup>
    <Compile Include="Drivers.cs" />
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>

Now when building the wix project, the output is directed to the Msi\net472 folder. The only files output to the Msi\net472 folder are the following:

  • license.rtf
  • wix.exe
  • wix.exe.config
  • wix.pbd

There is no installer.bat in the net472 folder. If I run the installer.bat from the Msi folder it fails because the command line arguments input to wix.exe are not valid:

C:\...\MissionPlanner\Msi>wix.exe ..\bin\release\net461\
wix.exe : error WIX0118: Additional argument '..\bin\release\net461\' was unexpected. Remove the argument and add the '-?' switch for more information.

Oddly, installer.bat did not change with 1.3.82, so now Iā€™m also puzzled as to why installer.bat was not failing for bad command line arguments prior to now.

Any instructions that I can get for building MSI install for Mission Planner 1.3.82 would be greatly appreciated.

Regards,
Dave

Dave,

Use build.bat from the main source folder (run it in a develeoper shell under Visual Studio. (Select the Mission Planner project in the Solution Explorer and start the shell from View->Terminal)
(if wasm and Mock projects fails, just remove them from the solution)
edit installer.bat in the msi folder and add the path to the wix.exe line

.\net472\wix.exe ..\bin\release\net461\

Then run installer.bat and create.bat as usual.

Thank you Andi, this all worked perfectly.

1 Like