Title
#windows
n

nyanshak

01/16/2020, 5:41 PM
I'm trying to build a custom msi with a flag file, enrollment secret file, no conf file, that starts / enables osquery service. I've gotten the default msi build working on windows 😲 but I'm having trouble digging through docs on build flags to accomplish what I'm trying to do. Is there a doc or something I could refer to or does someone know what sort of flags I would need here? I've currently got this successfully building:
cmake --build . --config RelWithDebInfo --target package
f

farfella

01/16/2020, 11:09 PM
To understand your case, you're trying to build osquery-<ver>.msi but add two files (a flag file and an enrollment file) to this osquery-<ver>.msi, as well?
n

nyanshak

01/16/2020, 11:10 PM
Yes, so like, I want to have a flag file with all my custom flags (replacing
osquery.flags
), and add an enrollment secret, that for the sake of example will end up at
C:\ProgramData\osquery\secret
f

farfella

01/16/2020, 11:12 PM
ok got it-- let me check
11:22 PM
osquery\cmake has a file packaging.cmake which is configuring wix_patches\osquery_wix_patch.xml
11:25 PM
the wxs (WiX) files themselves appear to be built by cmake since they're under .b\uild\ but I could be wrong-- these wxs files are under: osquery\build_CPack_Packages\win64\WIX
11:31 PM
11:36 PM
imo, it might be easier to download WiX toolset for visual studio here: https://wixtoolset.org/releases/
11:37 PM
then create a new wix project with visual studio under osquery\build_CPack_Packages\win64\WIX and add all the wxs files
f

farfella

01/17/2020, 10:56 PM
very cool 🙂