安装时的用户输入 [英] user input at the installation

查看:75
本文介绍了安装时的用户输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个c#项目的安装文件,该文件将在安装时获取用户信息并将该信息保存在数据库中.怎么可能呢?
预先谢谢您.

I want to create a setup file of a c# project that will take user information at the time of installation and save the information in the database. How can it be possible?
Thank you in advance.

推荐答案

一种方法是将新项目添加到解决方案中,该项目将执行获取输入-记录数据库" ",并在安装结束时作为VS部署项目或installshield项目中的自定义操作来运行该可执行文件.
one way is to add a new project to your solution that will do the "get input - record database" work and run that executable at the end of the installation as a custom action in VS deployment project or installshield project.


请参阅安装后操作:

http://msdn.microsoft.com/en-us/library/ms994369.aspx [ ^ ]


使用自定义操作编辑器 [演练:创建自定义操作 [
See Post-Install Action:

http://msdn.microsoft.com/en-us/library/ms994369.aspx[^]


Use the Custom Actions Editor[^] - as explained in:
Walkthrough: Creating a Custom Action[^]

Regards
Espen Harlinn

PS! This is the second attempt at posting - the first one got lost in space or something ...


这篇关于安装时的用户输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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