views:

42

answers:

2

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!

A: 

if your executable is in your install directory try:

Path.Combine(Application.StartupPath, @"\sqliteadmin.exe");
sadboy
A: 

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.

Sheng Jiang 蒋晟