首页 \ 问答 \ 确定首先安装哪个快捷方式(Determine which shortcut is installed first)

确定首先安装哪个快捷方式(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
更新时间:2022-11-21 17:11

最满意答案

原来,一个简单的隐藏输入字段做的工作:

<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中添加这个, ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。