Home All Groups Group Topic Archive Search About

Should I or shouldn't I include excel.exe in my app distribution package?

Author
27 Feb 2007 6:28 PM
Jack
Hello,
            I am confused by the Setup Wizard.
I have 2 applications which include Excel automation: (very simple
interaction with Excel spreadsheet, mostly just reading data from some
cells).
When preparing setup package for one application Setup Wizard does not
include excel.exe file,
but the same Setup Wizard includes excel.exe file with the 2nd application
setup package.
My questions:
1.
Why there is such difference between these 2 applications?
2.
Should I include that excel.exe file with my distributable package or not.
(MS Office ver.10)
3.
If yes to 2) above, do I need MSoft license to do that?

Your comments appreciated,
Jack

Author
27 Feb 2007 6:47 PM
Bob Butler
Show quote Hide quote
"Jack" <replyto@it> wrote in message
news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl
> Hello,
>             I am confused by the Setup Wizard.
> I have 2 applications which include Excel automation: (very simple
> interaction with Excel spreadsheet, mostly just reading data from some
> cells).
> When preparing setup package for one application Setup Wizard does not
> include excel.exe file,
> but the same Setup Wizard includes excel.exe file with the 2nd
> application setup package.
> My questions:
> 1.
> Why there is such difference between these 2 applications?

Does one use late binding and one use early binding?  If you have no
reference to Excel then it won't be found

> 2.
> Should I include that excel.exe file with my distributable package or
> not. (MS Office ver.10)

Absolutely not.  You can not redistribute Excel; your target users must have
it installed already.

> 3.
> If yes to 2) above, do I need MSoft license to do that?

If you want to purchase excel licenses and transfer them to the users you
could probably legally install Excel for them.  It's not a typical scenario.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
27 Feb 2007 6:48 PM
Brian
You should only be distributing the Excel Object model.  Not the Application
exe.



Show quoteHide quote
"Jack" <replyto@it> wrote in message
news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
> Hello,
>            I am confused by the Setup Wizard.
> I have 2 applications which include Excel automation: (very simple
> interaction with Excel spreadsheet, mostly just reading data from some
> cells).
> When preparing setup package for one application Setup Wizard does not
> include excel.exe file,
> but the same Setup Wizard includes excel.exe file with the 2nd application
> setup package.
> My questions:
> 1.
> Why there is such difference between these 2 applications?
> 2.
> Should I include that excel.exe file with my distributable package or not.
> (MS Office ver.10)
> 3.
> If yes to 2) above, do I need MSoft license to do that?
>
> Your comments appreciated,
> Jack
>
Author
27 Feb 2007 6:59 PM
Bob Butler
"Brian" <bkstig***@usa.net> wrote in message
news:uX8Es$pWHHA.1432@TK2MSFTNGP02.phx.gbl
> You should only be distributing the Excel Object model. 

Not even that

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
28 Feb 2007 9:15 AM
Jan Hyde
"Brian" <bkstig***@usa.net>'s wild thoughts were released on
Tue, 27 Feb 2007 10:48:49 -0800 bearing the following fruit:

>You should only be distributing the Excel Object model.  Not the Application
>exe.
>
>

The P&DW should only tell you it needs the object model but
that is not redistributable either.

J

Show quoteHide quote
>"Jack" <replyto@it> wrote in message
>news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
>> Hello,
>>            I am confused by the Setup Wizard.
>> I have 2 applications which include Excel automation: (very simple
>> interaction with Excel spreadsheet, mostly just reading data from some
>> cells).
>> When preparing setup package for one application Setup Wizard does not
>> include excel.exe file,
>> but the same Setup Wizard includes excel.exe file with the 2nd application
>> setup package.
>> My questions:
>> 1.
>> Why there is such difference between these 2 applications?
>> 2.
>> Should I include that excel.exe file with my distributable package or not.
>> (MS Office ver.10)
>> 3.
>> If yes to 2) above, do I need MSoft license to do that?
>>
>> Your comments appreciated,
>> Jack
>>
>
Author
28 Feb 2007 4:32 PM
Jack
P&DW
what the animal is that?
Jack
Show quoteHide quote
"Jan Hyde" <StellaDrin***@REMOVE.ME.uboot.com> wrote in message
news:tvhau21qsessksjvdilgkv4rjtgdoghnv9@4ax.com...
> "Brian" <bkstig***@usa.net>'s wild thoughts were released on
> Tue, 27 Feb 2007 10:48:49 -0800 bearing the following fruit:
>
>>You should only be distributing the Excel Object model.  Not the
>>Application
>>exe.
>>
>>
>
> The P&DW should only tell you it needs the object model but
> that is not redistributable either.
>
> J
>
>>"Jack" <replyto@it> wrote in message
>>news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
>>> Hello,
>>>            I am confused by the Setup Wizard.
>>> I have 2 applications which include Excel automation: (very simple
>>> interaction with Excel spreadsheet, mostly just reading data from some
>>> cells).
>>> When preparing setup package for one application Setup Wizard does not
>>> include excel.exe file,
>>> but the same Setup Wizard includes excel.exe file with the 2nd
>>> application
>>> setup package.
>>> My questions:
>>> 1.
>>> Why there is such difference between these 2 applications?
>>> 2.
>>> Should I include that excel.exe file with my distributable package or
>>> not.
>>> (MS Office ver.10)
>>> 3.
>>> If yes to 2) above, do I need MSoft license to do that?
>>>
>>> Your comments appreciated,
>>> Jack
>>>
>>
>
Author
28 Feb 2007 4:33 PM
Ken Halter
"Jack" <replyto@it> wrote in message
news:uaxi9X1WHHA.3972@TK2MSFTNGP03.phx.gbl...
> P&DW
> what the animal is that?
> Jack

Package and Deployment Wizard. You can run it "Standalone" or as an add-in
from within VBs IDE.

It's a bit out-dated for modern OSs but can be tweaked if you want to spend
time, instead of money on a modern installation utility.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Author
28 Feb 2007 4:40 PM
Robert Morley
P&DW = Package & Deployment Wizard

Show quoteHide quote
"Jack" <replyto@it> wrote in message
news:uaxi9X1WHHA.3972@TK2MSFTNGP03.phx.gbl...
> P&DW
> what the animal is that?
> Jack
Author
1 Mar 2007 1:43 AM
Jack
Too high level for me.
I am still using neat vbasic 5 and Setup Wizard.
Jack

Show quoteHide quote
"Jack" <replyto@it> wrote in message
news:uaxi9X1WHHA.3972@TK2MSFTNGP03.phx.gbl...
> P&DW
> what the animal is that?
> Jack
> "Jan Hyde" <StellaDrin***@REMOVE.ME.uboot.com> wrote in message
> news:tvhau21qsessksjvdilgkv4rjtgdoghnv9@4ax.com...
>> "Brian" <bkstig***@usa.net>'s wild thoughts were released on
>> Tue, 27 Feb 2007 10:48:49 -0800 bearing the following fruit:
>>
>>>You should only be distributing the Excel Object model.  Not the
>>>Application
>>>exe.
>>>
>>>
>>
>> The P&DW should only tell you it needs the object model but
>> that is not redistributable either.
>>
>> J
>>
>>>"Jack" <replyto@it> wrote in message
>>>news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
>>>> Hello,
>>>>            I am confused by the Setup Wizard.
>>>> I have 2 applications which include Excel automation: (very simple
>>>> interaction with Excel spreadsheet, mostly just reading data from some
>>>> cells).
>>>> When preparing setup package for one application Setup Wizard does not
>>>> include excel.exe file,
>>>> but the same Setup Wizard includes excel.exe file with the 2nd
>>>> application
>>>> setup package.
>>>> My questions:
>>>> 1.
>>>> Why there is such difference between these 2 applications?
>>>> 2.
>>>> Should I include that excel.exe file with my distributable package or
>>>> not.
>>>> (MS Office ver.10)
>>>> 3.
>>>> If yes to 2) above, do I need MSoft license to do that?
>>>>
>>>> Your comments appreciated,
>>>> Jack
>>>>
>>>
>>
>
>
Author
1 Mar 2007 9:15 AM
Jan Hyde
"Jack" <replyto@it>'s wild thoughts were released on Wed, 28
Feb 2007 20:43:24 -0500 bearing the following fruit:

>Too high level for me.
>I am still using neat vbasic 5 and Setup Wizard.

IIRC the 'setup wizard' in VB5 *is* the P&DW.

If you have the time, look at Inno Setup - free and pretty
good.
Author
27 Feb 2007 6:55 PM
Norman Yuan
You cannot "distribute" Excel, unless you are MS software reseller. Your
setup package should not include anything from Excel (even the Excel Object
Type library). The user has to have Excel (no older version than yours,
usually, if you automate Excel using early binding) installed anyway, so
he/she would have all files inside Excel on the computer.


Show quoteHide quote
"Jack" <replyto@it> wrote in message
news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
> Hello,
>            I am confused by the Setup Wizard.
> I have 2 applications which include Excel automation: (very simple
> interaction with Excel spreadsheet, mostly just reading data from some
> cells).
> When preparing setup package for one application Setup Wizard does not
> include excel.exe file,
> but the same Setup Wizard includes excel.exe file with the 2nd application
> setup package.
> My questions:
> 1.
> Why there is such difference between these 2 applications?
> 2.
> Should I include that excel.exe file with my distributable package or not.
> (MS Office ver.10)
> 3.
> If yes to 2) above, do I need MSoft license to do that?
>
> Your comments appreciated,
> Jack
>
Author
27 Feb 2007 8:55 PM
Jack
Thank you all.
But still I do not know why Setup Wizard treats both my applications
differently.
Both have the same code:
In Project>References I have selected: Microsoft Excel 10.0 Object library
and then I just create (or set) Excel Object
    Set moExcelApp = GetObject(, "Excel.Application")
    If moExcelApp Is Nothing Then
        Set moExcelApp = CreateObject("Excel.Application")
    End If
BTW,
           Is that considered early or late binding? I am not familiar with
that term.
Thanks,
Jack

Show quoteHide quote
"Jack" <replyto@it> wrote in message
news:u7MqZ0pWHHA.996@TK2MSFTNGP02.phx.gbl...
> Hello,
>            I am confused by the Setup Wizard.
> I have 2 applications which include Excel automation: (very simple
> interaction with Excel spreadsheet, mostly just reading data from some
> cells).
> When preparing setup package for one application Setup Wizard does not
> include excel.exe file,
> but the same Setup Wizard includes excel.exe file with the 2nd application
> setup package.
> My questions:
> 1.
> Why there is such difference between these 2 applications?
> 2.
> Should I include that excel.exe file with my distributable package or not.
> (MS Office ver.10)
> 3.
> If yes to 2) above, do I need MSoft license to do that?
>
> Your comments appreciated,
> Jack
>
Author
27 Feb 2007 9:16 PM
Bob Butler
Show quote Hide quote
"Jack" <replyto@it> wrote in message
news:eMAfMGrWHHA.5068@TK2MSFTNGP03.phx.gbl
> Thank you all.
> But still I do not know why Setup Wizard treats both my applications
> differently.
> Both have the same code:
> In Project>References I have selected: Microsoft Excel 10.0 Object
> library and then I just create (or set) Excel Object
>     Set moExcelApp = GetObject(, "Excel.Application")
>     If moExcelApp Is Nothing Then
>         Set moExcelApp = CreateObject("Excel.Application")
>     End If
> BTW,
>            Is that considered early or late binding? I am not
> familiar with that term.

Can't tell from that; how do you have moExcelApp declared?
Dim moExcelApp As Object ' late bound
or
Dim moExcelApp As Excel.Application ' early bound

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
27 Feb 2007 11:54 PM
Jack
I have:
Public WithEvents moExcelApp As Excel.Application
Dim moExcelWBk As Excel.Workbook
Dim moExcelWS As Excel.Worksheet

So I believe it is an early bond.
How that does influence the setup program?
Please explain.
Jack

Show quoteHide quote
"Bob Butler" <tiredofit@nospam.ever> wrote in message
news:%23QOSJSrWHHA.600@TK2MSFTNGP05.phx.gbl...
> "Jack" <replyto@it> wrote in message
> news:eMAfMGrWHHA.5068@TK2MSFTNGP03.phx.gbl
>> Thank you all.
>> But still I do not know why Setup Wizard treats both my applications
>> differently.
>> Both have the same code:
>> In Project>References I have selected: Microsoft Excel 10.0 Object
>> library and then I just create (or set) Excel Object
>>     Set moExcelApp = GetObject(, "Excel.Application")
>>     If moExcelApp Is Nothing Then
>>         Set moExcelApp = CreateObject("Excel.Application")
>>     End If
>> BTW,
>>            Is that considered early or late binding? I am not
>> familiar with that term.
>
> Can't tell from that; how do you have moExcelApp declared?
> Dim moExcelApp As Object ' late bound
> or
> Dim moExcelApp As Excel.Application ' early bound
>
> --
> Reply to the group so all can participate
> VB.Net: "Fool me once..."
>
Author
28 Feb 2007 12:01 AM
Bob Butler
"Jack" <replyto@it> wrote in message
news:OhovtqsWHHA.1036@TK2MSFTNGP03.phx.gbl
> I have:
> Public WithEvents moExcelApp As Excel.Application
> Dim moExcelWBk As Excel.Workbook
> Dim moExcelWS As Excel.Worksheet
>
> So I believe it is an early bond.

It's early bound or an early binding; an early bond is when James arrives
before he's expected <g>

> How that does influence the setup program?
> Please explain.

Offhand, I can't based on what you've said.  Are your references both to
excel.exe or is one to the exe and one to a type library?

You will find that the setup wizard does sometimes offer to include things
you are using when you can't redistribute them.  It's not a very robust
application which is why many use other options (visual studio installer,
inno setup, etc).

--
Reply to the group so all can participate
VB.Net: "Fool me once..."