Replies: 2 comments 4 replies
-
Do you have a repro repos? |
Beta Was this translation helpful? Give feedback.
-
I can describe how I just fixed this in my own code and hope it helps with yours. I'm using WIX 5 My DLL was created in C++ with Visual Studio, and it ended up being a C runtime issue: it appears that MSIEXEC is built with one version of MSVCRT while my code was generated using a different one which was not found. One solution - as far as I understand - is to somehow bundle the C runtime required as part of packaging up your MSI, which would ensure that the runtime is available for this or any other tool requiring that runtime, and I expect to do this myself once I know more about how WIX works. But in the interim I updated my DLL properties to use "Multi-Threaded" (static linking) and not "Multi-Threaded DLL": the former includes its own runtime stuff, though at the cost of MSI package bloat. In Configuration Properties --> C/C++ --> Code Generation --> Runtime Library Release build: /MT (Multi-threaded) My spidey sense tells me this is not an Easy Button™ because now there are disjoint memory allocators, and it's not out of the question that one could get into trouble if memory allocated by one component (MSIEXEC or the DLL) was release by the other. I hear hints of danger music. But this at least confirms it's a C runtime issue. |
Beta Was this translation helpful? Give feedback.
-
Hi, we recently upgraded from WiX 3 to WiX 5, and some Windows machines started failing early in the install process with the WiX 5 MSIs. This seems to be a problem loading a custom action for
WixQueryOsWellKnownSID
. Do you have any idea what could cause this, or how to debug further?Beta Was this translation helpful? Give feedback.
All reactions