Unable to read file

R

RB Smissaert

I have an INNO setup file that installs (loads) a .xla add-in via COM. This
is the INNO code:

oXL := CreateOleObject('Excel.Application');
oXL.Workbooks.Add;
oAddin :=
oXL.Addins.Add(ExpandConstant('{app}\Program\SynergyReportingLoader.xla'),
true );
oAddin.Installed := true;
oXL.Quit;

For some reason I now get the message from INNO (but generated by Excel):
Unable to read file.
When I do OK and carry on installing all is fine and there are no problems.
I don't get the same message
when I start Excel with that .xla loaded, so there is no serious problem,
but I am still interested to know
how this message could happen. I have done a lot of Googling and tried all
the suggested remedies for this,
but no difference. This is Excel 2003. I don't get the message on another
machine.

BTW, adding this tot the INNO script stops the message:
oXL.DisplayAlerts := false;

I think the chance is slim somebody knows the answer to this, but you never
know and thanks in advance.
Have posted this to the INNO group, but no insight from there.


RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top