0005. C# windowsForm ClickOnce 的部署 - 是否能夠安裝到所有使用者底下?

C#學習筆記 - ClickOnce

If you need to install / upgrade for all users on a PC, Clickonce is not an option. Clickonce is meant for installing an application for a single user without administrative rights.

You will need to create a MSI installer to distribute an application to multiple users on the same machine. There are multiple ways to deploy and update applications on clients when the client does not have administrative rights. A few examples:

  • Advertise your MSI in Active Directory, installation and upgrade does not require administrative privileges.
  • Use System Center Update Publisher (SCUP) to publish your application to Windows Server Update Services (WSUS). With WSUS you can deploy Microsoft updates, and your application. Both WSUS and SCUP are freely available for download.
  • Use Group Policy to elevate installers (not a recommended solution!), to enable non-admins to install MSIs for all users

Hope this helps.

 

ClickOnce 是綁定單一使用者的方式進行更新檢查,因此不行,如果windows同一作業系統底下有多個使用者,那麼該程式對於所有使用者是獨立的。

寫一個Msi做控制是個不錯的選擇......

 

文章來源: http://stackoverflow.com/questions/276916/click-once-all-users