Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > shortcuts are created in all users desktop instead of the one users desktop.
 

shortcuts are created in all users desktop instead of the one users desktop.

I have created shortcuts in user's desktop. When installed the shortcuts show up in all users desktop.

Any idea why?

Also program shortcuts that should be in user's programs menu are showing up in all user programs menu.

This is a VS2008 setup and deploy project with the InstallAllUser property set to false.

BarberColman  Wednesday, September 09, 2009 5:33 PM
I'm not sure what's going on here.If you have InstallAllusers set true in the project, the resulting MSI filehas ALLUSERS=2 in the property table, so that you get a per-machine install if you're an administrator and per-user if you're not. It's certainly true that InstallAllUsers is just the default that primes the UI selection, and you can change it to Just me if you want, but that's why there's an option to suppress the choice in the dialog.I believe the behavior is supposed to be that if you are an administrator,InstallAllUsers is true, and you suppress the browse dialog then you should get a per-machine Everyone install.

So your first statement makes sense - all users is false, there's no Everyone/Just me choice, so you get a per-user install with shortcuts for only that user. If you set InstallAllUsers true and you are administrator and suppress the choice then you should see an Everyone install and the shortcut on everyone's desktop.
Phil Wilson
PhilWilson  Friday, September 11, 2009 11:24 PM

What's the OS you're doing this on?


Phil Wilson
PhilWilson  Wednesday, September 09, 2009 6:33 PM
XP 32 bit
BarberColman  Wednesday, September 09, 2009 8:35 PM
I can't reeproduce this with a desktop shortcut. I see the shortcut in c:\Documents and Settings\<username>\Desktop, but not in C:\Documents and Settings\All Users\Desktop.

Unless you mean by "created" that you ran code to create them? If that's the case, then your codewill put the shortcut where your code says to put it, and that's nothing to do with InstallAllUsers.
Phil Wilson
PhilWilson  Thursday, September 10, 2009 12:07 AM

I have done more testing and found that if I set the project install all users to false and do not show the file selection dialog the short cuts are installed in the allusers desktop. Apparently the project property install all uses is ignored and the property set by the file select dialog is used. It also appears that if the show all users is

It also appears that if the file select dialog has the install all users visible set to false that the project defaults to all uses?

This does not appear to make sense but it is what happens when I am testing.

What I want is a single user install without a file location dialog. Any suggestions on how to do this?

BarberColman  Thursday, September 10, 2009 12:03 PM
I'm not sure what's going on here.If you have InstallAllusers set true in the project, the resulting MSI filehas ALLUSERS=2 in the property table, so that you get a per-machine install if you're an administrator and per-user if you're not. It's certainly true that InstallAllUsers is just the default that primes the UI selection, and you can change it to Just me if you want, but that's why there's an option to suppress the choice in the dialog.I believe the behavior is supposed to be that if you are an administrator,InstallAllUsers is true, and you suppress the browse dialog then you should get a per-machine Everyone install.

So your first statement makes sense - all users is false, there's no Everyone/Just me choice, so you get a per-user install with shortcuts for only that user. If you set InstallAllUsers true and you are administrator and suppress the choice then you should see an Everyone install and the shortcut on everyone's desktop.
Phil Wilson
PhilWilson  Friday, September 11, 2009 11:24 PM

You can use google to search for other answers

Custom Search

More Threads

• How do you publish an app. using VBE 2008 to a CD?
• Write CD...../Application Setup...CD
• Dotfuscator and Clickonce?
• Using Query String parameters with a ClickOnce app
• How to uninstall msi
• Deleteing prerequisite files and setup files from C:\WINNT\profiles\<username>\Local Settings\Temp folder
• How do I change the setup.exe icon?
• ClickOnce is a disgrace
• MSBuild/ClickOnce signing issue
• ClickOnce and Squid