I am creating a C# .Net 4.0 desktop application for a client. When I sent him the .msi files it requires administration privileges when trying to install. I realize the reason why is because I am installing the application into the “Program Files” directory.
Is there a way to install an application into an area on the users machine that doesn’t require them to install as Administrator?
I’m using .Net 4.0
Not sure whether this will solve the “requires Administrator” problem, but you can change the target folder for your installation in “File System” view of your setup project:
Also it is usually a good idea to distribute setup.exe alongside *.msi, so any missing prerequisites may be installed automatically.