Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: What folder should a Single User app be installed in?

24 Oct 2013   #1

Windows 7 32-bit
What folder should a Single User app be installed in?

I'm considering reconfiguring the installer for an application I develop. In the past, it allowed for All Users installs. If I want it to only be installed as a Single User, what user folder does best practices use as the install target? I can think of a few possibilities:

c:\Users\UserName\My Documents\
c:\Users\Program Files\

Of course I'd have to have my installer created that last one on the above list.

My System SpecsSystem Spec

25 Oct 2013   #2

Windows 7 Ultimate x64

While none of those really convinces me, I would think the best would be to use either %LOCALAPPDATA% or %APPDATA% environment variables as the base folder, which in particular in Windows 7 maps to c:\users\<username>\appdata\local and c:\users\<username>\appdata\roaming respectively. Creating a folder right there and dumping the program, and afterwards its data, there is not a bad option for a portable program. Alternatively, using %USERPROFILE% (c:\users\<username>) is possible.

Installing to documents folder is not a good choice because that's a frequent place for user data, and extraneous folders there may get in the way while using another programs. Some programs (including MS ones) fall into that bad practice. The other two options are simply unacceptable, because users don't normally have write permissions there, unless the installer tampers with them, which is not recommended at all for built-in system locations.

Any choice you made, just make sure to give the user a choice to change it to anything he wants, and remember to always use those environment variables, or even better API calls to retrieve those paths, don't hardcode them.
My System SpecsSystem Spec
25 Oct 2013   #3

Windows 7 32-bit

What I ended up doing was using the following, at the suggestion made at the Inno Setup forum:


So when the user runs the installer, they end up with

<system volume>\users\<username>\appdata\local\Programs\MyProg\

as the folder that houses the app. Inno Setup has a constant {userpf} that, when chosen as the default directory to install the app, places the app in

<sytem volume>\users\<username>\appdata\local\Programs\

In the case of this particular app, I do not want the user to change the install target, so I configured the install package to force the above on them.
My System SpecsSystem Spec

22 Nov 2013   #4

Windows 7 Ultimate 32 bit

If your install is just a simple application install involving no global system changes then in your .iss file you should set the following value:


This will have the effect of bypassing the UAC privilege escalation prompt (on protected systems) that accompanies almost every installation, even though half the time administrative access is not required.

You might also want to include on your download page, instructions on how to "Unblock" the install program after downloading it (another idiotic default).

It is not in anyone's interest to have users getting into the habit of granting special permission every time they install a program. It renders the security system ineffective when a real threat comes along.
My System SpecsSystem Spec

 What folder should a Single User app be installed in?

Thread Tools

Similar help and support threads
Thread Forum
User Profile Folder - Change User Account Folder Name
How to Change the User Folder Name of a User Profile in Windows 7 Normally, you could change your account name in User Accounts from the Control Panel (icons view), but that still would not change your accoun's user profile folder name in C:\Users. This will show you how to change your...
Bulk Change All Folder Icons in Single Folder or Folder Type
First, please forgive me if I have overlooked this issue in the many searches I have performed thus far. I would like to know if anyone has a way to change all folder icons within a single folder to one specific icon without performing each one individually. I have over 1,400 folders within a...
Have to select user upon startup, and after locking. Single User
I have to select a user upon startup of Windows instead of have just being prompted for a password as per usual of having one user. Same deal when locking. Any ideas?
General Discussion
User Profile folder - static folder instead of created by user signon
A twist on the creation of user folders on a drive other than C: in Win 7 Ultimate. Does anyone know if one could designate a user folder location such as E:\Data instead of using the users name and being a subdirectory of "Users". I am the ONLY one on my computer - and it would seem much easier to...
Installation & Setup
Win 7 single user, merging users\All Users, Default User, Public, etc?
My father replaced his Windows 98 machine with a new computer running Windows 7. :party: He's currently on 32-bit ultimate, but we could change versions if needed. He's really hoping there's some way to force Windows 7 into a single user mode, primarily so C:\users\All Users, Default User,...
General Discussion
Windows seven installed on a single partition?
My computer repairman reformatted my hard drive and re-installed Windows 7 on a single partition. Isn't the system supposed to be in its own partition? Will I be abl to run updates, backups and restore to factory settings with win 7 on a single partition? What issues may I face? Thank you very...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:22.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App