I have a custom action which is a "Call Function From Attached Native DLL".
The "Attached DLL" needs to have dependencies in the same folder as the DLL.
So checking out previous post about this, I find out the solution was to add temporary files.
Running the built installer throws an error and after looking the log files, it seems the installer doesn't place the temporary files in the same folder as the custom action... Why ?
I have attached screenshots which shows the problem.
The DLL causing the error is "sntl_adminapi_windows.dll".
Note: As you can see in the provided screenshot, the temporary folder created for the custom action contains the references from the project which I never specified in the custom action. This means the installer automatically resolve some of the dependencies and included them in the folder that it has created.