[英]How to run another .EXE from my application setup ( VS 2010 )
I have a wpf application and I made a setup, and during installation i need to create database, and edit Connectionstring (app.config). 我有一个wpf应用程序,并进行了设置,在安装过程中,我需要创建数据库并编辑Connectionstring(app.config)。 So I made
CustomAction
add Installer.cs
and override Install method
and it done. 因此,我使
CustomAction
添加Installer.cs
并override Install method
,并完成了该操作。
Now i need to install SqlServer Express
from my setup, ie before creating database I should check whether the machine have installed sqlserver if not it should install form my application setup. 现在,我需要从安装程序安装
SqlServer Express
,即在创建数据库之前,我应该检查计算机是否已安装sqlserver,如果没有安装,则应从应用程序安装程序安装。
As far i know using process.start()
i can run exe, but problem i am facing where i should keep sql.exe and how to get path 据我所知,使用
process.start()
可以运行exe,但是问题是我应该在哪里保存sql.exe以及如何获取路径
provide any usefull link much appreciated 提供任何有用的链接,非常感谢
ScreenShot: 截图:
You can use dotNetInstaller or similar bootstrapper. 您可以使用dotNetInstaller或类似的引导程序。 This solution create only one installer that install other pre-requisites and then execute your Visual Studio setup.
此解决方案仅创建一个安装程序,该安装程序安装其他先决条件,然后执行Visual Studio安装程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.