PC Review


Reply
Thread Tools Rate Thread

how do I start up an external application at the end of my installation ?

 
 
Flemming Knudsen
Guest
Posts: n/a
 
      6th Jan 2004
I need to start up an external application when my own installation is
finished - the application is present in a sub-directory next to the
MSI-file.

I also need to be able to display an readme.txt file ... I have tried to add
some 'custom actions' for it but without result.


 
Reply With Quote
 
 
 
 
Carolyn Napier [MSFT]
Guest
Posts: n/a
 
      8th Jan 2004
The Windows Installer documentation on MSDN provides information on how to
launch a file at the end of the installation. Consult the topic "How do I use a
custom action to launch an installed file at the end of installation?" at <
http://msdn.microsoft.com/library/de...stallation.asp
>. The Windows Installer SDK available at <

http://www.microsoft.com/msdownload/...sdk/sdkupdate/ > provides sample
code for the custom action that accomplishes this.

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>

"Flemming Knudsen" <(E-Mail Removed)> wrote in message
news:uB$(E-Mail Removed)...
>I need to start up an external application when my own installation is
> finished - the application is present in a sub-directory next to the
> MSI-file.
>
> I also need to be able to display an readme.txt file ... I have tried to add
> some 'custom actions' for it but without result.
>
>



 
Reply With Quote
 
Flemming Knudsen
Guest
Posts: n/a
 
      8th Jan 2004
you are right - if it is an installed file - what if the file isn't
installed but located next to the msi-file ?

"Carolyn Napier [MSFT]" <(E-Mail Removed)> skrev i en meddelelse
news:(E-Mail Removed)...
> The Windows Installer documentation on MSDN provides information on how to
> launch a file at the end of the installation. Consult the topic "How do I

use a
> custom action to launch an installed file at the end of installation?" at

<
>

http://msdn.microsoft.com/library/de...stallation.asp
> >. The Windows Installer SDK available at <

> http://www.microsoft.com/msdownload/...sdk/sdkupdate/ > provides

sample
> code for the custom action that accomplishes this.
>
> Hope this helps,
> - Carolyn Napier
> Microsoft Windows Installer Team
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> Please do not send email directly to this alias. This alias is for

newsgroup
> purposes only.
> MSI FAQ:
>

<http://www.microsoft.com/windows2000...ment/msi_faq.m
spx>
>
> "Flemming Knudsen" <(E-Mail Removed)> wrote in message
> news:uB$(E-Mail Removed)...
> >I need to start up an external application when my own installation is
> > finished - the application is present in a sub-directory next to the
> > MSI-file.
> >
> > I also need to be able to display an readme.txt file ... I have tried to

add
> > some 'custom actions' for it but without result.
> >
> >

>
>



 
Reply With Quote
 
Carolyn Napier [MSFT]
Guest
Posts: n/a
 
      17th Jan 2004
So this file is present at the installation source location and not actually
installed during installation? There are a number of different custom action
types as documented in the Windows Installer documentation on MSDN. Try <
http://msdn.microsoft.com/library/de...tion_types.asp >
for the summary list.

A lot depends on the type of file to launch, but given this is an application
we'll go with EXE. In general, I would suggest looking at a type 50 custom
action which you use a property to indicate the source location for the package
(SourceDir is good on initial install). Alternatively, you can embed the
executable directly in the Binary table of the MSI package and use a type 2
custom action to launch it. More information on the individual custom action
types can be found on MSDN.

I generally recommend avoiding launching custom actions from the install source
location -- particularly if you don't conditionalize so they don't launch
outside of original installation. If the user doesn't have access to the source
(perhaps s/he isn't connected to the network), the install can fail because it
can't run the custom action.

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>

"Flemming Knudsen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> you are right - if it is an installed file - what if the file isn't
> installed but located next to the msi-file ?
>
> "Carolyn Napier [MSFT]" <(E-Mail Removed)> skrev i en meddelelse
> news:(E-Mail Removed)...
>> The Windows Installer documentation on MSDN provides information on how to
>> launch a file at the end of the installation. Consult the topic "How do I

> use a
>> custom action to launch an installed file at the end of installation?" at

> <
>>

> http://msdn.microsoft.com/library/de...stallation.asp
>> >. The Windows Installer SDK available at <

>> http://www.microsoft.com/msdownload/...sdk/sdkupdate/ > provides

> sample
>> code for the custom action that accomplishes this.
>>
>> Hope this helps,
>> - Carolyn Napier
>> Microsoft Windows Installer Team
>>
>> --
>> This posting is provided "AS IS" with no warranties, and confers no

> rights.
>> Please do not send email directly to this alias. This alias is for

> newsgroup
>> purposes only.
>> MSI FAQ:
>>

> <http://www.microsoft.com/windows2000...ment/msi_faq.m
> spx>
>>
>> "Flemming Knudsen" <(E-Mail Removed)> wrote in message
>> news:uB$(E-Mail Removed)...
>> >I need to start up an external application when my own installation is
>> > finished - the application is present in a sub-directory next to the
>> > MSI-file.
>> >
>> > I also need to be able to display an readme.txt file ... I have tried to

> add
>> > some 'custom actions' for it but without result.
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel cannot auto start external application Jason Falzon Microsoft Excel Misc 0 25th Mar 2010 08:57 AM
start an external application on workbook open waterskyle Microsoft Excel Programming 0 28th Feb 2008 07:19 PM
Start external application Broeden Microsoft Dot NET Compact Framework 1 10th May 2007 06:31 PM
how i can start an external exe application Lonifasiko Microsoft Dot NET Compact Framework 3 10th Apr 2006 11:30 PM
Start Application with External Arguments news.microsoft.com Microsoft VB .NET 2 11th Dec 2003 09:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 PM.