<p>When creating a setup/MSI with Visual Studio is it possible to make a setup for a simple application that doesn't require administrator permissions to install?  If its not possible under Windows XP is it possible under Vista?</p>
<p>For example a simple image manipulation application that allows you to paste photos on top of backgrounds.  I believe installing to the Program Files folder requires administrator permissions?  Can we install in the \AppData folder instead?</p>
<p>The objective is to create an application which will install for users who are not members of the administrators group on the local machine and will not show the UAC prompt on Vista.</p>
<p>I believe a limitation this method would be that if it installs under the app data folder for the current user other users couldn't run it.</p>
<h3>Update:</h3>
<p>Can you package a click once install in a normal setup.exe type installer? You may ask why we want this - the reason is we have an installer that does a prereq check and installs anything required (such as .NET) and we then downloads and executes the MSI. We would like to display a normal installer start screen too even if that's the only thing displayed. We don't mind if the app can only be seen by one user (the user it's installed for).</p>

[{'answer_id': 73342, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 0, 'selected': False, 'text': "<p>Vista is <em>more</em> restrictive about this kind of thing, so if you can't do it for XP you can bet Vista won't let you either.</p>\n\n<p>You are right that installing to the program files folder using windows installer requires administrative permissions.  In fact, <em>all write access</em> to that folder requires admin permsissions, which is why you should no longer store your data in the same folder as your  executable.</p>\n\n<p>Fortunately, if you're using .Net you can use ClickOnce deployment instead of an msi, which should allow you to install to a folder in each user's profile without requiring admin permissions.</p>\n"}, {'answer_id': 73361, 'author': 'MrHinsh - Martin Hinshelwood', 'author_id': 11799, 'author_profile': 'https://Stackoverflow.com/users/11799', 'pm_score': 0, 'selected': False, 'text': '<p>The only way that I know of to do this is to build a ClickOnce application in .NET 2.0+</p>\n\n<p>If the user of your application has the correct pre-requsits installed then the application can just be "launched".</p>\n\n<p>Check out: </p>\n\n<ul>\n<li><a href="http://www.vertigo.com/familyshow.aspx" rel="nofollow noreferrer">Microsoft Family.Show</a></li>\n</ul>\n'}, {'answer_id': 73393, 'author': 'junkforce', 'author_id': 2153, 'author_profile': 'https://Stackoverflow.com/users/2153', 'pm_score': 0, 'selected': False, 'text': "<p>IF UAC is enabled, you couldn't write to Program Files. Installing to \\AppData will indeed only install the program for one user.</p>\n\n<p>However, you must note that any configuration changes that require changes to the registry probably(I'd have to double check on that) administrator privilege. Off the top of my head modifications to the desktop background are ultimately stored in HKEY_CURRENT_USER.</p>\n"}, {'answer_id': 73410, 'author': 'gregmac', 'author_id': 7913, 'author_profile': 'https://Stackoverflow.com/users/7913', 'pm_score': 3, 'selected': True, 'text': '<p>ClickOnce is a good solution to this problem. If you go to Project Properties > Publish, you can setup settings for this. In particular, "Install Mode and Settings" is good to look at: </p>\n\n<ul>\n<li>The application is available online only -- this is effectively a "run once" application</li>\n<li>The application is avaiable offline as well (launchable from Start Menu) -- this installs the app on the PC</li>\n</ul>\n\n<p>You don\'t actually have to use the ClickOnce web deployment stuff. If you do a Build > Publish, and then zip up the contents of the publish\\ folder, you can effectively distribute that as an installer. To make it even smoother, create a self-extracting archive from the folder that automatically runs the setup.exe file. </p>\n\n<p>Even if you install this way, if you opt to use it, the online update will still work for the application. All you have to do is put the ClickOnce files online, and put the URL in the project\'s Publish properties page.</p>\n'}]
['https://Stackoverflow.com/questions/73305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3004/']