简体   繁体   English

如何在MSI安装程序中设置自定义对话框?

[英]how to condition a custom dialog in msi installer?

I have added a custom dialog in the start stage of my VS2008 created msi installer to allow user choose if he/she wants to update the database or not. 我在VS2008创建的msi安装程序的开始阶段添加了一个自定义对话框,以允许用户选择是否要更新数据库。 But if database is NOT installed yet, that dialog doesn't make sense. 但是,如果尚未安装数据库,则该对话框没有任何意义。 So I want to search the database frist, if there is no database installed, that dialog should be ignored. 因此,我想搜索数据库第一部分,如果未安装数据库,则应忽略该对话框。 How can do that 怎么做

替代文字

You are trying to make Visual Studio Deployment Projects do things they were not designed to do. 您正在尝试使Visual Studio部署项目执行其并非设计要执行的操作。 It would take extensive knowledge of MSI tables and tons of build automation scripting to manipulate the MSI after it's build. 在MSI生成后,将需要MSI表的广泛知识和大量的生成自动化脚本来操纵MSI。 That is to say that if you have to ask the question, you aren't going to be able to do it. 就是说,如果您不得不问这个问题,那么您将无法做到。

Stop wasting your time with VDPROJ (Microsoft has retired it since even THEY know how much it sucks) and start looking at WiX or InstallShield. 别再浪费时间使用VDPROJ(微软已经退休了,因为他们甚至都知道它糟透了),然后开始研究WiX或InstallShield。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM