Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create desktop shortcut for all users in WIX

Tags:

I am developping a MSI installer by using WIX, I can create shortcut on desktop for only one user. Now what shall I do to make a shortcut for all users on the machine? Please advise. Thank you.

<Shortcut Id="desktopshortcut" Directory="DesktopFolder" Name="test" 
          WorkingDirectory='INSTALLDIR' Advertise="yes" />
like image 820
Ray Avatar asked Feb 05 '10 23:02

Ray


People also ask

How do you create desktop shortcut for website?

How to Create a Desktop Shortcut to a Website Using Chrome. To create a desktop shortcut to a website using Google Chrome, go to a website and click the three-dot icon in the top-right corner of your browser window. Then go to More tools > Create shortcut. Finally, name your shortcut and click Create.

How do I create a desktop shortcut for all users in Windows 7?

Click on start menu and select file explorer. Click on OS(C:) and click on user folder. Click on view on top of the right pane and check on Hidden item box. Now you can copy and paste the shortcut that you want on the folder.


1 Answers

You can have WiX set ALLUSERS=1 automatically by declaring Package/@InstallScope='perMachine'... 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)" />
like image 105
saschabeaumont Avatar answered Oct 23 '22 05:10

saschabeaumont