Title
#windows
a

asparamancer

08/27/2019, 3:50 PM
I've been trying to build an msi for windows with a pre-written config. There seem to be references to a windows provisioning file (and it's available on the readthedocs.io) but then some of the files it references are no longer there. Has the process for building a windows msi changed, and is it documented anywhere?
Mike Myers

Mike Myers

08/28/2019, 4:52 AM
I think the MSI-building script needs to be updated, but in the interim there's a way to build the package using CMake, and I just opened this PR about it https://github.com/osquery/osquery/pull/5731
8:51 AM
And https://github.com/osquery/osquery/pull/5733 is my attempt to fix the PS1 script (pending review), if Ed wants to try that
a

asparamancer

08/28/2019, 1:36 PM
thank you @Mike Myers will give it a try later and let you know, and very speedy!
Arpful

Arpful

08/28/2019, 11:09 PM
The struggle was REAL. lol.
11:09 PM
Download the Wix Toolkit.
11:12 PM
Create a link between C:\wix311 and where your actual Wix311 folder is. This will save you as it expects your Wix311 folder to be outside the default install location. Install "Make" too. Get all your flags in order and give it a shot. The PS1 always failed for me during certain phases of it.
Mike Myers

Mike Myers

08/29/2019, 8:37 PM
What component expects the Wix311 folder to be outside the default? In my setup, I let Chocolatey install it to where it wanted to. It was just that I had to add it to the PATH system env variable.
8:38 PM
If you know where
make_windows_package.ps1
is failing, let me know, I am trying to fix a few things with it now and then @thor is going to open an issue to track whatever other problems people have with it.