Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VS2010
Hi everyone,
 
I want to publish my application so that all the users of the computer it is installed on can access it. i have read that i need to set the 'installallusers' property to true. however i cannot find it. it supposed to be under project solution proprties.
 
Can anyone help?
Posted 8-Nov-12 4:12am
nikki88752
Comments
Sergey Alexandrovich Kryukov at 8-Nov-12 10:58am
   
If you have read it, provide a link. Isn't it logical? And you don't even tell us what kind of installation project you are working at.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please see my comment to the question. I will answer, but I cannot be sure you are using the same kind of installation/setup project. Please see:
http://stackoverflow.com/questions/76760/vs2008-setup-project-shared-by-all-users-application-data-files[^].
 
Now, let me explain the background. The "all users" option is not completely a bogus, but… almost; for many applications, it will be. You are not controlling the access to your application by the users at all. This is never needed — the users will have access to it anyway, no matter what you do. (Unless you somehow screw up the application code, of course. Smile | :) )
 
You can simply copy the content of your output directory to appropriate target directory; and all users will be able to use it, except maybe some users with severely limited permission. By the way, Microsoft started to encourage this way of deployment which is most convenient for many users and does not contaminate the system registry. This is my favorite method of deployment.
 
So, what this "all users" does? Almost nothing. First of all, it affects where the .LNK to your application is placed. If you install the application with the link on the Windows "Start" menu; it is rendered out of the parts added from "Special Folders": one for all users and others for one or more individual folder created per user account. Same goes about the desktop, if you want to add the .LNK there. And your application can also use some directory, under a "Special Folder" or this folder itself, to persist some intermediate data or individual per-user configuration data. This directory can be individual, per user account, or for "all user". And that's it, nothing more.
 
—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 406
1 /\jmot 180
2 Suraj Sahoo | Coding Passion 170
3 BillWoodruff 159
4 Afzaal Ahmad Zeeshan 154
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,634
3 Maciej Los 5,024
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100