Open henningWoehr opened 1 year ago
Hello, I'm also interested in adding additional / custom wxs XML to the auto-generated project, did you ever have success with this yourself?
No I never got this to work
Thanks, I'll let you know if I make any progress myself
I'll add that I also don't see how this would work.
I suppose that the intention is to not use the add_msi_builder
at all when using add_wxs_file
. In that case, one could use the main.wxs
generated by a previous run, edited as required. But then I'm not sure how to get the install-files.wxs
and any other required magic?
I see something of a resolution by using the to_file_manifest
function:
def make_msi(exe):
installer = WiXInstaller("app", "app.msi")
installer.add_wxs_file("windows/main.wxs")
installer.add_install_files(exe.to_file_manifest("."))
return installer
But TBH I am afraid for long term support so I'm going to switch back to PyInstaller and try to generate the wxs files from simple python scripts. I like the idea here, but there are so many abstraction layers and automations that it feels a bit inflexible for anything but the simplest apps.
Hi, I'm currently trying to use the wix toolset together with pyoxidizer to build an msi-installer, which installs the application as a service on windows. To accomplish that, I'm trying to add additional xml code to the automatic-generated wix config. In the docs, there is the following statement:
That's exactly how I want to use the wix-toolset, because I don't want to write all of the wix code and just add that, what I need. Currently I'm only able to add an .wxs file to the build environment, but can't figure out, what to write inside the .wxs file, because what I read is, that normally, to use multiple files with wix, you have to reference the "outsourced" code with something like "ComponentRef" etc., but since the main.wxs is autogenerated, I couldn't find any solution for this.
This is the code, where I specify, which .wxs file to import into the build process:
I hope my issue is understandable and someone can help me with this.