I have a WiX installer and Custom Actions project. I added C# library as reference to Custom action's project. This C# dll uses DllImport to one C++ dll. When installing I receive error: cannot load DLL mycpp.dll : specified module not found. I added mycpp.dll to CA project and tried using properties : embedded resource, copy to output directory - but no result. How can I make my installer find mycpp.dll?
WIX custom action: use dllimport
739 Views Asked by Anton23 At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in WIX
- Wix bundle of third party exe and new msi cant figure out detect conditions
- Getting 'Error writing to file' during WiX Toolset upgrade when changing installation scope
- Unable to format string in desired format - WiX
- wix toolset radio button condition
- How to Add custom dialog to Wix v4
- How to invoke UAC(Elevation shield) Prompt while trying to open bootstrapper bundle exe in WIX
- How do I use heat.exe with Visual Studio extension?
- Is anybody using WiX Toolset v5.0.0-rc.1?
- WixToolset v4 - Installation with scope "PerUser" fails when package NetFx462Redist is used
- Wix not writing to HKCU when run with a user needing admin login?
- WIX project Radio button value usage
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- Detect re-installation on rollback
- Update to Wix 3.14 from 3.11 get error MSB4181: The "MSBuild" task returned false but did not log an error
- Wix: Error LGHT0091: Duplicate symbol 'Property:WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED' found
Related Questions in WINDOWS-INSTALLER
- Wix bundle of third party exe and new msi cant figure out detect conditions
- create MSI that can be installed in console per user and per machine
- Invoke-command works only when any user is logged (msi install)
- Windows installer silently skips over component marked as 'Local'
- Customizing the Behavior of the BrowseDlg in WiX to Use a Custom Dialog for Invalid Directories
- Unable to format string in desired format - WiX
- Creating a Desktop Version of a Web Application (NextJS TypeScript Golang Echo)
- wix toolset radio button condition
- Creating an Installer Wizard
- Using msiexec on unattend.xml as SynchronousCommand but it run as asynchronous
- How to protect MSI installer digital signature from tampering
- I finished writing the code for an Android application, and it was in Python kivy, and while converting it to exe, this problem appeared
- Windows Installer Issue: Files Not Replaced After Major Upgrade - Seeking Assistance and Clarification
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- 'The cabinet file media1.cab required for this installation is corrupted and cannot be used ' in dowloading Node.js
Related Questions in DTF
- How to embed and run .dtf file from an electron app
- Why is vbs able to find the INSTALLLOCATION when C# using both DTF and MSI API cannot?
- DTF Orchestration instance struck in "Pending" Status
- How do I trap Cancelling of a long-running deferred DTF Custom Action?
- Wix DTF custom action is intermittently failing with Rundll32 error
- Deferred CustomAction in System context get access denied
- MSI: Show message box in UI phase of installation
- WIX custom action: use dllimport
- WIX : Adding and Reading cabinet file to msi Installer programatically with DTF to allow dynamic customization of installers
- Wix Returning the error "No CA or UI entry points found in module" but [CustomAction] is used in dll
- Get component code using WiX DTF
- Using DTF to install msi package
- Issue faced during uninstall MSI using its Product Code in c#(DTF)
- Too Many Events Using DTF InstallLogModes
- Adding cabinet file to msi programatically with DTF (wix)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I've had this issue before. After reading through the MSBuild files for wix I eventually found a property that is used as a list for the dlls needed in the self-extracting package that contains the custom action dll.
in wix.ca.targets (in the sdk folder) there is a property called CustomActionContents that is used when running makesfxca.
Here's the comment for this set of msbuild targets which package your custom action dll.
and
So it looks like you can mark your reference to the mycpp.dll as copy local and it will be automatically picked up or you can add a new property in your custom action project (probably edit the csproj and add the property) which contains the path to the dll and it will get picked up.