Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 如何在WIX中为所有用户创建桌面快捷方式_Installation_Wix_Shortcut - Fatal编程技术网

Installation 如何在WIX中为所有用户创建桌面快捷方式

Installation 如何在WIX中为所有用户创建桌面快捷方式,installation,wix,shortcut,Installation,Wix,Shortcut,我正在使用WIX开发MSI安装程序,我可以在桌面上为一个用户创建快捷方式。现在,我该如何为机器上的所有用户创建快捷方式?请告知。多谢各位 <Shortcut Id="desktopshortcut" Directory="DesktopFolder" Name="test" WorkingDirectory='INSTALLDIR' Advertise="yes" /> 设置alluser=1,以便安装程序将属性指向公用桌面,而不是安装用户的桌面。您可以通过

我正在使用WIX开发MSI安装程序,我可以在桌面上为一个用户创建快捷方式。现在,我该如何为机器上的所有用户创建快捷方式?请告知。多谢各位

<Shortcut Id="desktopshortcut" Directory="DesktopFolder" Name="test" 
          WorkingDirectory='INSTALLDIR' Advertise="yes" />


设置
alluser=1
,以便安装程序将属性指向公用桌面,而不是安装用户的桌面。

您可以通过声明
包/@InstallScope='perMachine'
自动设置WiX
alluser=1
。。。e、 g

<Package Description="!(loc.Package_Description) $(var.version)"
   Comments="!(loc.Package_Comments)"
   Manufacturer="!(loc.ManufacturerName)"
   InstallerVersion="301"
   Compressed="yes"
   InstallPrivileges="elevated"
   InstallScope="perMachine"
   Platform="$(var.ProcessorArchitecture)" />


您在什么上下文中安装?每个用户还是每台机器?谢谢你的回答,但似乎不起作用。它说ALLUSERS属性在我将其添加到代码中后没有声明。还有什么我需要补充的吗?谢谢!确保它作为1添加到您的产品下。我认为对于找到它的用户来说,需要更多的上下文。诱惑者会影响设置中的许多事情,我发现其中大部分都是违反直觉的,坦率地说是有害的。请阅读“关于”以了解针对每个用户的安装重定向了哪些文件夹,以及需要注意的其他事项。检查文档,了解其本身。