我需要一种在安装结束时运行Exe的方法... [英] I need a method of running an Exe at the end of an install...

查看:78
本文介绍了我需要一种在安装结束时运行Exe的方法...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要一种在安装结束时运行Exe的方法.我已经组装了一个安装程序,用于安装两个exe(一个是实际的应用程序,另一个检查是否有驱动程序)我需要在应用程序自动安装后自动运行检查程序(我使用的是Visual Studio 2008 C#),我在此路径中使用的旧方法似乎已被阻止(这是VB6倍,病毒,特洛伊木马使用了它?).我曾在Google和朋友中搜寻我认识的人,在董事会和陌生人那里(反应通常是您试图写出病毒或令人讨厌的东西).我不能说我责怪他们,但是我如何检查驱动程序MSDN并没有真正建议自动检查方法只是手动,有人请指出正确的方向.
Glenn

Hi All,

I need a method of running an Exe at the end of an install. I have assembled an installer that installs both exe''s (One is the actual Application, the other checks to see if a driver is there or not) I need to Auto run the checker once the Application has installed automatically (I am using Visual Studio 2008 C#), The old method I have used in the path for this appears to have been blocked (this was VB6 times, virus, Trojans used it?). I have searched Google & friends asked people I know ,on boards and strangers,(the reaction is typically are you trying to write a virus or something nasty). I can''t say I blame them but how do I check for driver MSDN does not really suggest a method of automatic checking just manual, somebody please point me in a correct-ish direction please.
Glenn

推荐答案

好吧,简单的方法是制作一个可执行文件作为整体事件控制器,这意味着它将在适当的时间(在安装之前或之后)启动安装程序在检查文件后.
Well, the simple method would be to make an executable that works as the overall event controller, meaning that it launches the installer at the appropriate time, before or after it checks for the file.


在创建安装文件时,请添加安装程序类文件并覆盖相应的事件(如安装,安装后等).
在这种情况下,请致电您要检查其要求的表格.

希望这能解决您的问题.
While creating setup file add installer class file and override appropriate events like install, after install etc.
In that event call your form with which you want to check your requirements.

Hope this will solve your problem.


这篇关于我需要一种在安装结束时运行Exe的方法...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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