如何创建VB Windows窗体应用程序以将软件从文件服务器路径安装到远程计算机 [英] How would I create a VB windows form application to install software from a files server path to a remote computer

查看:130
本文介绍了如何创建VB Windows窗体应用程序以将软件从文件服务器路径安装到远程计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,Code Project,



我遇到了挑战。基本上我需要创建一种方法,将软件从文件共享推送或安装到远程系统,而无需在Windows 7中使用远程桌面或远程协助应用程序。如何在VB Windows窗体应用程序中完成,或者甚至可以实现?我不仅需要浏览软件在表单中的位置来制作路径字符串,而且还需要能够传递安装程序参数,以便在用户使用计算机时静默安装。



真诚的你,

ChrisV85

Hello all at Code Project,

I have been presented with a challenge. Essentially I need to create a way to push or install software from a file share to a remote system without using Remote Desktop or Remote Assistance applications in Windows 7. How can this be done in a VB Windows Form Application or is it even possible? I would not only need to browse to where the software is located in the form to make the path string, but i would need to be able to pass the installer parms to silently install for users while they use their machines.

Sincerely your,
ChrisV85

推荐答案

你有一堆需要解决的问题。



1)每个用户都可以访问软件共享吗?如果是这样,您就会遇到安全问题,因为任何用户都可以自行选择安装程序。



2)您可以使用WMI在远程计算机上启动进程Win32_Process类。虽然,您需要远程计算机上的admin priv,并且该进程必须完全运行,无需任何用户交互(带有/ qn开关的msiexec.exe)。



3)安装程序可以启动,但如果有问题你不会知道出现什么问题,除非你采取预防措施检查远程进程的返回代码(msiexec.exe)。



4)如果您不在域环境中,则会遇到在每个工作站上使用不同管理员帐户的问题。这是一个很难处理的问题,所以如果是这样的话,甚至不要尝试这个。
You have a bunch of problems to solve.

1) Does every user have access to the software share? If so, you have a security problem as any user can just go and pickup the installer themselves.

2) You can launch a process on a remote machine using WMI and the Win32_Process class. Though, you need admin priv's on the remote machine and the process must run entirely without any user interaction (msiexec.exe with the /qn switch).

3) The installer can be launched, but if there is a problem you won't know anything went wrong unless you take precautions to check the return code from the remote process (msiexec.exe).

4) If you're not in a domain environment, you have the problem of using a different admin account on every workstation. This is a pain in the ass to deal with, so if this is the case, don't even attempt this.


这篇关于如何创建VB Windows窗体应用程序以将软件从文件服务器路径安装到远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆