Search code examples
c#desktop-applicationsetup-deployment

How to add an exe file to the setup?


In my windows application, I need to install SQLLiteAdmin database while the desktop application is getting installed. How to do this? I'm using release mode. In the installer class, I used:

process.start(AppDomain.CurrentDomain.BaseDirectory + @"\sqliteadmin.exe");

in after_install event. But, it is taking from the path C:/windows/system32 and not from within the application folder.

Please, help me. Thanks in advance!


Solution

  • You meed to pass the TARGETDIR property from your installer to your custom action. Enclosing it in double-quotes and added a backslash at the end.