我是在C#中创建安装项目的新手.我需要创建C#Windows安装程序项目,以便在用户安装该项目时,如果在PC中退出了sql server,也将在用户的PC中创建并还原数据库.否则,安装程序将警告PC上不存在任何sql server,并将回滚安装. 为此,我尝试了一些方法,将backupFile作为文件放置在安装项目中.我试图从用户的目标目录(例如D:\ Program files \ ....)中获取它,但是失败了.错误消息是在位置c:\ Windows \ System32 \ Files ........ 找不到文件 请帮我. Farazi
Hi, I am new in creating setup project in C#. I need to create the C# windows setup project so that when the user install the project the Database will also be created and restored in user''s PC if sql server is exits in the PC. Otherwise, the setup will warn that no sql server is exit in the PC and will rollback the installation. For this i tried the way, i put the backupFile in setup project as file. i tried to get it from User''s target Directory (such as D:\Program files\....) but failed. The error message is can not find the file at location c:\Windows\System32\Files........ plz help me. Farazi
推荐答案查看此处: 部署您的应用程序和数据库 [ ^ ] 在VS.NET中创建安装和部署项目 [ ^ ] Look here: Deploy your Application and Database[^] Creating Setup and Deployment Projects in VS.NET[^]
更多推荐
带有数据库的部署应用程序
发布评论