Search code examples
c++windows-installercustom-action

Does custom action dll-s for msi installer have to be created with Visual Studio only?


I have created setup project with Visual Studio. I also need some custom actions - created DLL with Visual c++ and it works just fine but i don't want to include visual c++ runtime files to my project. So is it possible to build this dll with some other c++ compiler?

I have tried to make make it with Dev-c++ but when compiling i get few hundred compilation errors from files msi.h and msiquery.h


Solution

  • Probably the easiest solution is to link your DLLs against the static runtime lib.