Cab file does not install dll

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I want to distribute a signed .cab file with an embedded .hta file
The .hta file uses capicom.dll and thus I would like to install and register
capicom.dll on the fly

my cab file looks like

mycab.cab
myapp.hta
mycab.inf
capicom.dll

mycab.inf looks like

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
capicom.dll=capicom.dll
myapp.hta=myapp.hta
[myapp.hta]
clsid={8e65d418-b2f5-4925-8e6e-670a58f4ae0c}
FileVersion=1,0,0,0
hook=installer
[installer]
run=%11%\mshta.exe %EXTRACT_DIR%\myapp.hta
[capicom.dll]
file-win32-x86=thiscab
clsid={A996E48C-D3DC-4244-89F7-AFA33EC60679}
RegisterServer=yes
DestDir=11
FileVersion=2,1,0,1

The following <OBJECT> tag causes my .hta to load
<OBJECT CLASSID='CLSID:8e65d418-b2f5-4925-8e6e-670a58f4ae0c'
CODEBASE='mycab.cab"></OBJECT>
- but capicom.dll has not been installed/registered

Does anybody know the correct mycab.inf syntax?

/Peter
 
Hi Peter,

I am only guessing as I don't have much experience with CAB distribution.

Try placing the [capicom.dll] group before the [Installer] group - assuming
that the inf file is read in sequence.

or

It may be a registry access problem. Test when logged on as Administrator v
User account. If you need administrator rights to register the dll then this
will be a show stopper for you. I remember reading about drive-by activex
injection of malicious software. I know that with packaged software
distribution user permissions is an issue. Also IE6 SP2 and IE7 may no
longer support unsigned CAB installation (could also be a security setting)

Regards.
 
Back
Top