如何将参数从安装程序设置传递到批处理文件以执行 [英] how to pass the parameters from installer setup for batch file to execute

查看:114
本文介绍了如何将参数从安装程序设置传递到批处理文件以执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经创建了一个批处理文件,用于在sql server management studio中恢复数据库。我有一个问题,我需要在安装程序或.net表单中有一个屏幕,要求用户输入数据库服务器,用户名和密码,一旦用户在输入详细信息后单击表单中的按钮,应将值传递给批处理文件和相应的数据库应该按照用户的提示进行恢复。



请问有人可以帮我解决这个问题吗?

任何帮助都会有所帮助。

非常感谢提前!!!


i have created a batch file for restoring database in sql server management studio. i have a problem wherein i need to have a screen in installer or a .net form that will ask for database server, username and password from user and once the user clicks a button in the form after entering the details the values should be passed to the batch file and accordingly the database should be restored as mentioned by the user.

pls can anyone help me out with this problem?
any help wil be appretiated.
Many Thanks in advance!!!

推荐答案

听起来你需要了解自定义对话框,通过此CP文章:创建自定义对话框以在Visual中使用Studio安装项目 [ ^ ]
Sounds like you need to learn about custom dialogs, go through this CP article: Create custom dialogs for use in your Visual Studio Setup projects[^]


这篇关于如何将参数从安装程序设置传递到批处理文件以执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆