简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM