想要有关自动化软件安装项目的建议 [英] Want Suggestion on Automating Software Installation Project

查看:65
本文介绍了想要有关自动化软件安装项目的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我正在编写程序以自动在C#中安装软件.
我迷上了鼠标和键盘,以侦听安装程序安装过程中执行的事件. First Admin需要安装程序,该程序需要大量安装在连接的客户端上.
因此,管理员运行服务器,该服务器挂接鼠标和键盘事件,同时软件的垂直安装和管理员为屏幕截图选择唯一的屏幕区域,以便稍后在客户端安装过程中进行匹配,以确定是否已到达特定形式,然后模拟键或单击其他按钮,直到屏幕截图匹配. (例如,下一个表格仅在单击下一步"按钮之后才出现,然后模拟点击或击键)

如果我错了,请纠正我..plz..

1)好吧,我知道使用组策略对象可能会发生同样的事情,但是它只能安装msi程序包,而不能安装exe安装程序...因此它们需要先转换为msi. . (所有免费程序都是从exe到msi的简单转换程序,但转换后的msi仍会在安装过程中向客户询问是否存在任何错误情况)&ofourour您需要购买Windows Server许可证的域控制器PC,这对于印度来说是不可能的学校,网吧,慈善信托基金..

2)没有免费的程序可以完美地完成此任务AutoIT,AutoHotkey会很好地尝试它,但并非每次成功都可以.

3)Codeplex上的White Framework不错,但有时在安装时仍会进行环聊.

这样可以吗?或有其他方法可以执行此操作(我想自动执行exe,msi按需自动执行无人值守安装)

Hi friends, I am making program to automate software installation in C#.
I hooked mouse & keyboard to listen events performed while setup installs..
First Admin needs to install program which need to be mass installed on connected clients.
So admin runs Server which hooks mouse & keyboard events while perticular installation of software & admin selects unique screen region for screenshot to later matched on client installation process to determine whether specific form has arrived, only then simulate key or click else wait until screenshot matches..(eg.next form came after clicking on Next Button only then simulate click or Keystrokes)

Correct me if i am wrong..plz..

1) Well i know same thing can be possible with Group policy object but it can only install msi packages not the exe setups... so they need to be converted to msi first.. i googed free programs for this conversion but none are free. ( All free programs are just simple exe to msi converters but that converted msi still ask clients something while installing if any error condition is there) & ofcource u need to purchase windows Server licence for domain controller pc''s this will not possible for Indian Schools,Cybercafe''s,Charitable Trusts..

2) There is no free program to do this task perfectly AutoIT,AutoHotkey tries it well but not every time it succeeds.

3) White Framework on Codeplex is nice but still hangouts sometimes while installing..

So this way is ok? or there is any other way to do this ( i want to automate exe,msi ondemand unattended installation)

推荐答案

首先,由于以下原因,不建议使用此安装方式客户端PC的时序和性能上的上述困难.

1.)将安装exe放在共享上
2.)创建脚本以自动将exe复制到本地temp目录(或在启动exe之后等待很长的时间),并通过键盘和鼠标单击进行安装(也将此脚本放置在共享位置; powershell或VB.NET和SendKeys可用于此脚本的大部分)
3.)创建基于GPO的批处理脚本,该脚本需要Powershell脚本(或您自己的脚本语言脚本)

缓解计时问题的建议:

1.)从共享中将exe复制到本地临时目录
2.)在每次击键和鼠标单击之前将焦点集中到您要自动化的应用程序上
3.)在发送目标应用程序的每次击键或鼠标单击之间放置足够的时间;尽管您的开发计算机可能具有不错的性能,但组织中的其他计算机速度会慢得多.在较慢,较旧的计算机上测试最终产品,以确定是否需要调整时间是明智的.
First, this is not a recommended way of installing due to the aforementioned difficulties with timing and performance of client pcs.

1.) Place installation exe on share
2.) Create script to automate copying of exe to local temp directory (or wait a really long time after starting the exe), and the keyboard and mouseclicks for the installation (place this script on share as well; powershell or VB.NET and SendKeys could be used for most of this script)
3.) Create GPO based batch script that calls for the powershell script (or your own scripting language script)

Suggestions to mitigate timing issues:

1.) copy the exe from the share to a local temp directory
2.) bring focus to the application you are automating just before every keystroke and mouse click
3.) place an ample amount of time in between each keystroke or mouseclick that you send the target application; While your development machine may have decent performance, other machines in the organization will be much slower. It would be wise to test your end product on a slower, older machine to determine if timings need to be adjusted.


这篇关于想要有关自动化软件安装项目的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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