Hi! 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.
views:
1511answers:
2
+1
A:
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
Shay Erlichmen
2009-06-30 11:56:01
thanks shay. I knew it would be on the inf file hehe!If you don't mind I would like to make a follow question. I checked my temporary internet files and I can see the cab file I downloaded. Is it possible to delete it on the cache after the exe is executed? Sorry for being too ignorant.
junmats
2009-07-01 01:27:36
It's Ok, I don't know in which state the cab is while running the exe. take a look at this question http://stackoverflow.com/questions/825144/how-to-clear-msie-wininet-cache-programatically
Shay Erlichmen
2009-07-01 06:23:47
A:
Is there a way to install this .CAB file from the command line? I've tried every possible rundll32.exe command line I could find and still can't seem to get it to work the way it works from the browser.
Geno
2009-07-01 19:14:46