开发者

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 i开发者_如何学运维nstaller 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!


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.


if your executable is in your install directory try:

Path.Combine(Application.StartupPath, @"\sqliteadmin.exe");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜