简体   繁体   English

如何从应用程序安装程序(VS 2010)运行另一个.EXE

[英]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.csoverride 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.

相关问题 我的setup.exe在VS 2010中安装之前需要安装第三方软件 - Need to install thirdparty software before my setup.exe installs in VS 2010 如何从其他设置运行安装程序? - How to run a setup from another setup? vs 2010上运行应用程序时如何记录数据 - how to log data when application run on vs 2010 如何在不打开VS的情况下运行c#exe应用程序 - How to run the c# exe application without having VS open 我怎么能得到我运行我的应用程序exe文件的目录? - how can i get the directory of where i run my application exe file from? C#VS2010如何强制安装项目安装应用程序而不要求用户输入 - C# VS2010 How to force setup project to install application without asking for user input 如何从我的 C# 程序中找到我的 VS2010 解决方案/应用程序的名称 - How can I find out the name of my VS2010 solution / Application from inside my C# program 从另一个.exe调用.exe以运行Web服务 - calling .exe from another .exe to run a webservice VS 2010安装快捷方式文件未显示以管理员身份运行选项 - VS 2010 setup shortcut file not shows Run as Administrator option 如何使用 VS2010 安装项目将我的程序添加到用户开始菜单? - How do I add my program to the users start menu with VS2010 Setup Project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM