Visual Studio中部署项目可选桌面快捷方式 [英] Visual Studio Deployment Project Optional Desktop Shortcut

查看:176
本文介绍了Visual Studio中部署项目可选桌面快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我试图让一个VS2010部署项目集成一个可选的桌面快捷方式。我在那里我已经设置添加一个快捷方式到TargetMachine文件系统的用户桌面的一部分,我已经在用户界面设置一个复选框对话框。你如何让Checkbox1Property来作为条件转学过来的创建快捷方式到桌面?我没有看到任何选项来添加时,我认为在targetmachine文件系统中的快捷方式的属性,可以链接Checkbox1Property条件语句。该快捷方式总是以现在创建。

Hi I'm trying to get an optional desktop shortcut integrated with a VS2010 deployment project. I'm at the part where I have set added a shortcut to the "User's Desktop" of the TargetMachine file system, and I have set up a Checkboxes Dialog in the User Interface. How do you get the Checkbox1Property to transfer over as a conditional for creating a shortcut to the desktop? I don't see any options to add a conditional statement that can link the Checkbox1Property when I view the property for the shortcut in the targetmachine file system. The shortcut is always created as of now.

感谢

推荐答案

对于这方面的一个全面的了解,我建议你阅读:

For a complete understanding of this, I'd recommend reading:

http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx

在总之,你已经添加快捷方式,从查看创建一个新的对话窗口 - >用户界面。所有剩下的就是设置条件属性。你不能更改快捷方式本身的这种属性,但你可以改变它的用户桌面

In short, you've already added the shortcut and created a new dialog window from the "View" -> "User Interface". All that's left is setting the condition property. You can't change this property of the shortcut itself, but you can change it for "User's Desktop".

有关您可能希望该条件:CHECKBOXA1 = 1,这意味着该项目被创建/只有当CHECKBOXA1检查激活。 0为取消选中

For that condition you might want: CHECKBOXA1=1 which means the item is created/activated only if the CHECKBOXA1 is checked. 0 for unchecked.

有条件的语法参考这里:

A reference to conditional syntax is here:

http://msdn.microsoft.com/en-us/library/aa368012.aspx

编辑:我只是测试这一点,它看起来像Visual Studio的安装程序是相当直观。我所提供的答案不工作。你必须去了解这是一个屁股backawards方式。本文将更好地描述我能超越自己的过程:如何指定视觉Studion安装条件?

EDIT : I just tested this and it looks like the Visual Studio installer is pretty unintuitive. The answer I provided doesn't work. You have to go about this is an ass-backawards way. This article better describes the process than I can: How do I specify Visual Studion Installer Conditions?

总体而言,Visual Studio安装适用于相当香草安装。它可以做更多的事情,但它的繁琐这样做。你甚至可以在安装过程中运行自定义操作(即:运行自己的可执行文件)。在Visual Studio安装程序附带VS 2010,但它将有利于LE的InstallShield在今后的版本中删除。

Overall, the Visual Studio installer is intended for fairly vanilla installs. It can do a LOT more, but it's cumbersome to do so. You can even have custom actions run during the installation (ie: run your own executables). The Visual Studio installer is included with VS 2010, but it will be removed in favor of InstallShield LE in future version.

这篇关于Visual Studio中部署项目可选桌面快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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