Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Make My C# Application Install Without Admin Rights?

Yesterday, I installed Spotify from an .exe file on a Windows 7 computer with a user that didn't have admin rights (limited user). It looks like it installed in the AppData folder and created a shortcut onto the desktop and in the start menu. However, it was also added to the list of installed programs in the Add/Remove Programs section of the control panel, which I didn't think you could do without admin rights.

I really like this method, and would like to apply it to a C# app created in SharpDevelop. What's the easiest way to do this?

like image 274
Sonic42 Avatar asked Nov 05 '11 23:11

Sonic42


1 Answers

The easiest way is definitely ClickOnce. Under the Build menu, select Publish YourProjectName and follow the wizard - you’ll have a ready-to-go installer in /publish in no time that, in my experience, doesn’t require admin rights.

like image 64
Ry- Avatar answered Nov 08 '22 19:11

Ry-