确定首先安装哪个快捷方式(Determine which shortcut is installed first)
我正在安装许多多个快捷方式,并注意到第一个安装似乎在您单击开始按钮后出现,然后其余快捷方式在所有程序 - 产品名称下。 我的问题是我希望我的主要产品在开始菜单中作为一个大图标。 我的其他快捷方式之一正在显示。 这是我的代码:
此快捷方式应仅在所有程序 - 产品名称 - 记录器文件夹中。 它是什么,但它也在主开始菜单上。
<Component Id="Logger1Shortcut" Guid="31987043-21B3-49F7-ADA2-A2BBC6FA446D"> <Condition><![CDATA[(NUMLOGGERS >= "1") AND (NUMLOGGERS <> "0")]]></Condition> <Shortcut Id="Logger1Shortcut" Directory="ProgramMenuSubFolder" Name="LOGGER 1" Icon="stand_cf_Logger1" IconIndex="0" Target="[BIN]stand_cf.exe"> <Icon Id="stand_cf_Logger1" SourceFile="$(var.Bin)\stand_cf.exe"/> </Shortcut> <RegistryValue Root='HKCU' Key='Software\Measuresoft\[PRODUCTNAME]' Type='string' Value='' KeyPath='yes' /> </Component>
这是我的主要应用程序组件:
<Component Id="MainApplicationShortcut" Guid="C130E034-BDC0-4700-A924-60C816AF6D01"> <Shortcut Id="MainApp" Directory="ProgramMenuDir" Name="Orchestrator" Icon="mainmenu.exe" IconIndex="0" Target="[BIN]mainmenu.exe"> <Icon Id="mainmenu.exe" SourceFile="$(var.Bin)\mainmenu.exe"/> </Shortcut> <Shortcut Id="ChannelMonitor" Directory="ProgramMenuDir" Name="Channel Monitor" Icon="mon_nt.exe" IconIndex="0" Target="[BIN]mon_nt.exe"> <Icon Id="mon_nt.exe" SourceFile="$(var.Bin)\mon_nt.exe"/> </Shortcut> <RemoveFolder Id='ProgramMenuDir' On='uninstall' Directory='ProgramMenuDir'/> <RegistryValue Root='HKCU' Key='Software\Measuresoft\[PRODUCTNAME]' Type='string' Value='' KeyPath='yes' /> </Component>
I am installing many multiple shortcuts and have noticed the first installed seems to appear as soon as you click the start button and then the remaining shortcuts are under All Programs - Product Name. My problem is that I would like my main product to be in the start menu as a large icon. One of my other shortcuts is showing at the minute. This is my code:
This shortcut should only be in All Programs - Product Name - Logger Folder. Which it is but it is also on the main start menu.
<Component Id="Logger1Shortcut" Guid="31987043-21B3-49F7-ADA2-A2BBC6FA446D"> <Condition><![CDATA[(NUMLOGGERS >= "1") AND (NUMLOGGERS <> "0")]]></Condition> <Shortcut Id="Logger1Shortcut" Directory="ProgramMenuSubFolder" Name="LOGGER 1" Icon="stand_cf_Logger1" IconIndex="0" Target="[BIN]stand_cf.exe"> <Icon Id="stand_cf_Logger1" SourceFile="$(var.Bin)\stand_cf.exe"/> </Shortcut> <RegistryValue Root='HKCU' Key='Software\Measuresoft\[PRODUCTNAME]' Type='string' Value='' KeyPath='yes' /> </Component>
This is my component with the main application:
<Component Id="MainApplicationShortcut" Guid="C130E034-BDC0-4700-A924-60C816AF6D01"> <Shortcut Id="MainApp" Directory="ProgramMenuDir" Name="Orchestrator" Icon="mainmenu.exe" IconIndex="0" Target="[BIN]mainmenu.exe"> <Icon Id="mainmenu.exe" SourceFile="$(var.Bin)\mainmenu.exe"/> </Shortcut> <Shortcut Id="ChannelMonitor" Directory="ProgramMenuDir" Name="Channel Monitor" Icon="mon_nt.exe" IconIndex="0" Target="[BIN]mon_nt.exe"> <Icon Id="mon_nt.exe" SourceFile="$(var.Bin)\mon_nt.exe"/> </Shortcut> <RemoveFolder Id='ProgramMenuDir' On='uninstall' Directory='ProgramMenuDir'/> <RegistryValue Root='HKCU' Key='Software\Measuresoft\[PRODUCTNAME]' Type='string' Value='' KeyPath='yes' /> </Component>
原文:https://stackoverflow.com/questions/13249196
最满意答案
原来,一个简单的隐藏输入字段做的工作:
<input type="hidden" id="dp" />
然后使用buttonImage属性为您的图像,如正常:
$("#dp").datepicker({ buttonImage: '../images/icon_star.gif', buttonImageOnly: true, changeMonth: true, changeYear: true, showOn: 'both', });
最初,我尝试了一个文本输入字段,然后设置一个
display:none
风格,但这导致日历从浏览器的顶部而不是从用户点击的地方出现。 但隐藏的领域按照需要工作。Turns out that a simple hidden input field does the job:
<input type="hidden" id="dp" />
And then use the buttonImage attribute for your image, like normal:
$("#dp").datepicker({ buttonImage: '../images/icon_star.gif', buttonImageOnly: true, changeMonth: true, changeYear: true, showOn: 'both', });
Initially I tried a text input field and then set a
display:none
style on it, but that caused the calendar to emerge from the top of the browser, rather than from where the user clicked. But the hidden field works as desired.
相关问答
更多-
日期选择器在jQuery UI库中。您需要包含日期选择器才能工作。 编辑:你需要包括这个, https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js 在你的HTML中添加这个, Date picker is in jQuery UI libs.. Y ...
-
通过点击没有输入字段的图像来打开JQuery Datepicker(Open JQuery Datepicker by clicking on an image w/ no input field)[2022-06-29]
原来,一个简单的隐藏输入字段做的工作: 然后使用buttonImage属性为您的图像,如正常: $("#dp").datepicker({ buttonImage: '../images/icon_star.gif', buttonImageOnly: true, changeMonth: true, changeYear: true, showOn: ' ... -
这是JSF特有的。 您必须使用styleClass="datepicker"才能调用#datepicker JS。 This is JSF specific. You have to use styleClass="datepicker" in order to call the #datepicker JS.
-
尝试设置图像的垂直对齐方式。 $("img.ui-datepicker-trigger").css("vertical-align", "middle"); Try setting the vertical-alignment of the image. $("img.ui-datepicker-trigger").css("vertical-align", "middle");
-
Highstock日期输入jquery ui datepicker位置变化(Highstock date input jquery ui datepicker position changes)[2023-07-08]
日期选择器通过小部件样式的“顶部”属性控制其垂直位置 - 出于某种原因,在随后的日期选择器激活中,“顶部”始终设置为0。 如果我们让小部件的数据“记住”正确的位置并在随后的调用中明确设置该位置,则相对容易。 请参阅下面的datePicker选项中定义的'onClose'和'beforeShow'函数: $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(d ... -
在输入点击和附加图标上触发jQuery datepicker元素(Trigger jQuery datepicker element on both input click and add-on icon)[2022-08-16]
尝试这个 $("#FromDate").datepicker({ showOn: "button", changeMonth: true, changeYear: true, buttonImage: "../../images/calendar.png", button ... -
强制jQuery UI Datepicker显示在输入字段下方(Force jQuery UI Datepicker to display below input field)[2022-07-04]
你可以通过设置日期选择器pop的css来实现你的目标。 使用下面的代码来设置CSS,使用setTimeout是为了避免重写CSS。 在这里,我找到日期时间选择器文本框的顶部和左侧,并使用这些值来设置日期时间选择器弹出窗口的位置 关于beforeShow事件检查的信息在这里。 https://api.jqueryui.com/datepicker/#option-beforeShow $(".datepicker").datepicker({ beforeShow: function (inp ... -
好。 得到它了。 这是在.row中的一些问题:课后。 这是工作版本: .row:after{content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} 此代码从蓝图css框架复制而来。 这是所有代码。 OK. Got it. It was some problem in .row:after class. Here is working version: .row:after{content:" ...
-
jQuery Datepicker与先前提交的输入字段重叠(jQuery Datepicker Overlaps With Previously Submitted Input Field)[2021-10-23]
我认为您输入字段的自动完成属性设置为开启。 将自动完成设置为关闭。 I think your input filed's autocomplete property is set to on. set autocomplete to off. -
我找到了一种方法,但仍然感觉不到它的正确方法,但是现在这对我来说会有所帮助。 我发布这个答案来帮助其他人,并且会等着看其他人为这个问题提出最好和最有效的解决方案。 因为我使用PHP所以我只是把它放在我的页面上以设置该字段的日期。 如果我的网页中有更多的日期字段,我可以添加更多行...... ...