提取cab文件并自动执行exe文件(在cab文件内部) [英] extract cab file and execute the exe file(inside the cab file) automatically

查看:416
本文介绍了提取cab文件并自动执行exe文件(在cab文件内部)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页上嵌入了cab文件(内部带有可执行文件)。当用户访问页面时,cab文件将被自动提取,其中的可执行文件也应被执行。这可能吗?我的预感是,它将在我的inf文件中进行配置,但我不知道如何。

I have a cab file(w/ an executable file inside) embedded on my webpage. When the user access the page the cab file will be automatically extracted and the executable file inside should be executed as well. Is this possible? My hunch is that this will be configured in my inf file but I don't know how. I would appreciate your help in this.

推荐答案

您需要使用hook& run值,例如此示例

You need to use the hook&run values, like in this sample


[version]  
signature="$CHICAGO$"  
AdvancedINF=2.0  

[Add.Code]  
time.ocx=time.ocx  
msvcrt.dll=msvcrt.dll    
mfc42.dll=mfc42.dll  
olepro32.dll=olepro32.dll  

[time.ocx]  
file-win32-x86=thiscab  
clsid={DCF0768D-BA7A-101A-B57A-0000C0C3ED5F}  
FileVersion=1,0,0,0  
RegisterServer=yes  

[msvcrt.dll]  
FileVersion=4,20,0,6164  
hook=mfc42installer  

[mfc42.dll]  
FileVersion=4,2,0,6256  
hook=mfc42installer 

[olepro32.dll]  
FileVersion=4,2,0,6068  
hook=mfc42installer

[mfc42installer]  
file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab  
run=%EXTRACT_DIR%\mfc42.exe  


这篇关于提取cab文件并自动执行exe文件(在cab文件内部)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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