简体   繁体   English

安装没有管理员权限的 WinForms 应用程序

[英]Install WinForms application without admin rights

I develop a Windows Forms application using VS 2008. Application will be deployed in Corporate Environment: a network (VPN, LAN) is in several cities, many PC clients Windows XP;我使用 VS 2008 开发了一个 Windows Forms 应用程序。应用程序将部署在企业环境中:一个网络(VPN、LAN)在几个城市,许多 PC 客户端 Windows XP; and there is a only Server Win2003, with several WCF Services, Windows Service, shared folders, and Database that use the WinForms app.并且只有一个Server Win2003,有几个WCF Services、Windows Service、共享文件夹和使用WinForms应用程序的数据库。 Network is WORKGROUP, not domain.网络是工作组,而不是域。

The users in PC Clients has NOT admin rights. PC 客户端中的用户没有管理员权限。 Only can install applications the only admin.只有管​​理员才能安装应用程序。

It is required automatized&easy way to install "desattended" the WinForms application for all users.为所有用户安装“无人值守”的 WinForms 应用程序需要自动化且简单的方法。 I want get way to easy installations in PC Clients.我想在 PC 客户端中轻松安装。

We don't want use ClickOnce.我们不想使用 ClickOnce。 NOT use click once.不要使用单击一次。 Now, I have MSI (setup.exe) of WinForms App.现在,我有了 WinForms App 的 MSI (setup.exe)。 If if required another program, source code, scripting, etc, any sample code ??如果需要另一个程序、源代码、脚本等,任何示例代码? any suggestions for my architecture network ??对我的架构网络有什么建议吗??

使用XCOPY部署了解更多详情

Use InnoSetup and install the application to %LOCALAPPDATA%\\MyApp , which is denoted as {localappdata}\\MyApp in an ISS file.使用InnoSetup并将应用程序安装到%LOCALAPPDATA%\\MyApp ,在 ISS 文件中表示为{localappdata}\\MyApp

Make sure your application uses Registry keys in HKEY_CURRENT_USER only.确保您的应用程序仅使用 HKEY_CURRENT_USER 中的注册表项。 You can set these up using Root: HKLM您可以使用Root: HKLM进行设置Root: HKLM

Set PrivilegesRequired to lowest .PrivilegesRequired设置为lowest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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