Web Setup - launching application

  • Thread starter Thread starter LIN
  • Start date Start date
L

LIN

Can I launch a EXE file at the end of the Installation?

I am using a .NET Web Setup installer wizard.


Please adivce.

LIN
 
VS setup projects are rather limited in what they can do in this area. You need
a custom action to launch your executtable. That's fairly straightforward,
except that the VS IDE won't let you make it asynchronous, and so the install
will wait until the executable is finished. To make it asynchronous, the easiest
thing is to edit the MSI file with Orca, changing the custom action type. Post
back here if that would be an acceptable solution. The other choice is to use
other tools: see http://www.installsite.org/pages/en/msi/authoring.htm
 
Thanks a lot Phil!

We wouldn't mind if the application launched itself after the user had
clicked on Close button of the basic installer. How should I exactly go
about achieving this?

Thanks again,

Cheers,
LIN




Phil Wilson said:
VS setup projects are rather limited in what they can do in this area. You need
a custom action to launch your executtable. That's fairly straightforward,
except that the VS IDE won't let you make it asynchronous, and so the install
will wait until the executable is finished. To make it asynchronous, the easiest
thing is to edit the MSI file with Orca, changing the custom action type. Post
back here if that would be an acceptable solution. The other choice is to use
other tools: see http://www.installsite.org/pages/en/msi/authoring.htm
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Can I launch a EXE file at the end of the Installation?

I am using a .NET Web Setup installer wizard.


Please adivce.

LIN
 
You'd be doing this manually with Orca from the Windows Installer section of the
Platform SDK. In VS, create a commit custom action that runs your program. If
you install this, when the program runs you'll see that the install waits until
you close the program. To fix this, open your MSI file with Orca, the tables
down the left pane will include CustomAction.There'll be an entry with a long
hex name, Type 1554. This is type 18 (run application exe) + 1536 (commit).
Change this to 1746, which adds the msidbCustomActionTypeAsync +
msidbCustomActionTypeContinue bits, a total of 192. These are in the SDK docs.
This will make your custom action async and run after the install has completed
(after you click close). The VS IDE doesn't let you tie an async custom action
to the close button.

See http://www.installsite.org/pages/en/msi/authoring.htm for a tool
list/comparison for building MSI files.
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Thanks a lot Phil!

We wouldn't mind if the application launched itself after the user had
clicked on Close button of the basic installer. How should I exactly go
about achieving this?

Thanks again,

Cheers,
LIN




Phil Wilson said:
VS setup projects are rather limited in what they can do in this area. You need
a custom action to launch your executtable. That's fairly straightforward,
except that the VS IDE won't let you make it asynchronous, and so the install
will wait until the executable is finished. To make it asynchronous, the easiest
thing is to edit the MSI file with Orca, changing the custom action type. Post
back here if that would be an acceptable solution. The other choice is to use
other tools: see http://www.installsite.org/pages/en/msi/authoring.htm
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Can I launch a EXE file at the end of the Installation?

I am using a .NET Web Setup installer wizard.


Please adivce.

LIN
 
Hi Phil.

This is how my custom action table looks like:

Action Type Source Target
s72 i2 S72 S255
CustomAction Action
_80F13C04_C087_43BD_8FE4_923E7E150220 1746 _D5A3E4F504E56DFFA633AD547324E67E
/Commit
ERRCA_CANCELNEWERVERSION 19 [VSDVERSIONMSG]
ERRCA_UIANDADVERTISED 19 [VSDUIANDADVERTISED]
WEBCA_ApplyWebFolderProperties 1537 MSVBDPCADLL ApplyWebFolderProperties
WEBCA_CreateAppRoots 1 MSVBDPCADLL CreateAppRoots
WEBCA_CreateURLs 1 MSVBDPCADLL CreateURLs
WEBCA_EvaluateURLs 1 MSVBDPCADLL EvaluateURLs
WEBCA_EvaluateURLsMB 1 MSVBDPCADLL EvaluateURLsMB
WEBCA_EvaluateURLsNoFail 1 MSVBDPCADLL EvaluateURLsNoFail
WEBCA_GatherWebFolderProperties 1 MSVBDPCADLL GatherWebFolderProperties
WEBCA_RollbackApplyWebFolderProperties 1281 MSVBDPCADLL
RollbackApplyWebFolderProperties
WEBCA_TARGETPORT 307 TARGETPORT 80
WEBCA_TARGETVDIR 307 TARGETVDIR WebSetup2


I want to run a VB program which has dependencies. While running the program
during the installation it throws up an error saying cannot find
sqldmo.InstallState.

I have not yet implmented the 1746 setting - coz i couldn't get it right.

Please advice. Thanks again.

LIN



Phil Wilson said:
You'd be doing this manually with Orca from the Windows Installer section of the
Platform SDK. In VS, create a commit custom action that runs your program. If
you install this, when the program runs you'll see that the install waits until
you close the program. To fix this, open your MSI file with Orca, the tables
down the left pane will include CustomAction.There'll be an entry with a long
hex name, Type 1554. This is type 18 (run application exe) + 1536 (commit).
Change this to 1746, which adds the msidbCustomActionTypeAsync +
msidbCustomActionTypeContinue bits, a total of 192. These are in the SDK docs.
This will make your custom action async and run after the install has completed
(after you click close). The VS IDE doesn't let you tie an async custom action
to the close button.

See http://www.installsite.org/pages/en/msi/authoring.htm for a tool
list/comparison for building MSI files.
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Thanks a lot Phil!

We wouldn't mind if the application launched itself after the user had
clicked on Close button of the basic installer. How should I exactly go
about achieving this?

Thanks again,

Cheers,
LIN




Phil Wilson said:
VS setup projects are rather limited in what they can do in this area.
You
need
a custom action to launch your executtable. That's fairly straightforward,
except that the VS IDE won't let you make it asynchronous, and so the install
will wait until the executable is finished. To make it asynchronous,
the
easiest
thing is to edit the MSI file with Orca, changing the custom action
type.
Post
back here if that would be an acceptable solution. The other choice is
to
use
other tools: see http://www.installsite.org/pages/en/msi/authoring.htm
--
Phil Wilson [MVP Windows Installer]
----
Can I launch a EXE file at the end of the Installation?

I am using a .NET Web Setup installer wizard.


Please adivce.

LIN
 
I can't tell you why your code is looking for that file. Maybe it's not your
program - I think you have an installer class custom action somewhere - they
typically use .installstate files.
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Hi Phil.

This is how my custom action table looks like:

Action Type Source Target
s72 i2 S72 S255
CustomAction Action
_80F13C04_C087_43BD_8FE4_923E7E150220 1746 _D5A3E4F504E56DFFA633AD547324E67E
/Commit
ERRCA_CANCELNEWERVERSION 19 [VSDVERSIONMSG]
ERRCA_UIANDADVERTISED 19 [VSDUIANDADVERTISED]
WEBCA_ApplyWebFolderProperties 1537 MSVBDPCADLL ApplyWebFolderProperties
WEBCA_CreateAppRoots 1 MSVBDPCADLL CreateAppRoots
WEBCA_CreateURLs 1 MSVBDPCADLL CreateURLs
WEBCA_EvaluateURLs 1 MSVBDPCADLL EvaluateURLs
WEBCA_EvaluateURLsMB 1 MSVBDPCADLL EvaluateURLsMB
WEBCA_EvaluateURLsNoFail 1 MSVBDPCADLL EvaluateURLsNoFail
WEBCA_GatherWebFolderProperties 1 MSVBDPCADLL GatherWebFolderProperties
WEBCA_RollbackApplyWebFolderProperties 1281 MSVBDPCADLL
RollbackApplyWebFolderProperties
WEBCA_TARGETPORT 307 TARGETPORT 80
WEBCA_TARGETVDIR 307 TARGETVDIR WebSetup2


I want to run a VB program which has dependencies. While running the program
during the installation it throws up an error saying cannot find
sqldmo.InstallState.

I have not yet implmented the 1746 setting - coz i couldn't get it right.

Please advice. Thanks again.

LIN



Phil Wilson said:
You'd be doing this manually with Orca from the Windows Installer section of the
Platform SDK. In VS, create a commit custom action that runs your program. If
you install this, when the program runs you'll see that the install waits until
you close the program. To fix this, open your MSI file with Orca, the tables
down the left pane will include CustomAction.There'll be an entry with a long
hex name, Type 1554. This is type 18 (run application exe) + 1536 (commit).
Change this to 1746, which adds the msidbCustomActionTypeAsync +
msidbCustomActionTypeContinue bits, a total of 192. These are in the SDK docs.
This will make your custom action async and run after the install has completed
(after you click close). The VS IDE doesn't let you tie an async custom action
to the close button.

See http://www.installsite.org/pages/en/msi/authoring.htm for a tool
list/comparison for building MSI files.
--
Phil Wilson [MVP Windows Installer]
----
LIN said:
Thanks a lot Phil!

We wouldn't mind if the application launched itself after the user had
clicked on Close button of the basic installer. How should I exactly go
about achieving this?

Thanks again,

Cheers,
LIN




VS setup projects are rather limited in what they can do in this area. You
need
a custom action to launch your executtable. That's fairly straightforward,
except that the VS IDE won't let you make it asynchronous, and so the
install
will wait until the executable is finished. To make it asynchronous, the
easiest
thing is to edit the MSI file with Orca, changing the custom action type.
Post
back here if that would be an acceptable solution. The other choice is to
use
other tools: see http://www.installsite.org/pages/en/msi/authoring.htm
--
Phil Wilson [MVP Windows Installer]
----
Can I launch a EXE file at the end of the Installation?

I am using a .NET Web Setup installer wizard.


Please adivce.

LIN
 
Back
Top