views:

1603

answers:

2

I'm using the setup wizard project to create an msi installer for a Windows Forms application. I've configured it to install a desktop shortcut, but unfortunately it only puts a shortcut on the desktop of user running the installer. Is there any way to configure it to put shortcuts on the desktops of all users?

+1  A: 

In the file system editor of your project

  1. Create a new custom folder (Give it a name like "All Users Start Menu")
  2. Change the default location to [DesktopFolder] (same applies to [StartMenuFolder]) (See documentation and for Start Menu)
  3. Set the Property value to ALLUSERS

That should do it, put your shortcuts in the new custom folder. This will allow you to install into the "All Users" folder even though you are installing for "Just Me" for the rest of the installer.

heavyd
I tried this solution at first and it seemed to work. However, I have since concluded that it broke uninstallation of my program. When trying to uninstall I get an error message telling me about not finding some network location, which is really strange.
Jonas
+1  A: 

Set InstallAllUsers=True in the properties In "Installation Folder" on the "User Interface" page, set InstallAllUsersVisible. If you have an Install and an "Administrative Install" on the "User Interface" page, be sure to modify "Installation Folder" in both.

This will take away the user's choice of installing only for "me" and force the install to be for "everyone".

Now the shortcut you put in the "User's Desktop" of the File System should appear on everyone's desktop.

JeffH
InstallAllUsers is set by selecting the deployment project, by double-clicking it, then select the View menu and Properties Window. There the InstallAllUsers property should be available.
Jonas

related questions