You should be able to Google "msi chainer" or "msi bootstrapper" (or something 
similar) and find some information.

There is one free chainer that I have used in the past and that works well 
located at:
http://www.codeproject.com/KB/install/dotNetInstaller.aspx

You can download the source and see how it works. Basically, I think it all 
boils down to calling CreateProcess for each msi you want to install and then 
processing return codes, etc.


-----Original Message-----
From: David Bartmess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2008 10:18 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom actions failing

Can you point me to a resource for information on how to do this?

Thanks!

-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2008 5:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom actions failing

The Windows Installer does not support installing an MSI inside an MSI.
That's called "nested installations".  You need to "chain installs"
instead... unfortunately, that requires an external program.

-----Original Message-----
From: David Bartmess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2008 14:17
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom actions failing

Oops, forgot the actual CustomAction, sorry...

    <CustomAction Id="O2003PIA"
              BinaryKey="o2003pia.msi"
              ExeCommand=""
              Execute="immediate"
              Return="check"
              HideTarget="no"
              Impersonate="no" />

    <CustomAction Id="O2007PIA"
              BinaryKey="o2007pia.msi"
              ExeCommand=""
              Execute="immediate"
              Return="check"
              HideTarget="no"
              Impersonate="no" />


-----Original Message-----
From: David Bartmess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2008 3:12 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Custom actions failing

I'm trying to wrap my head around the custom actions, and how to code
them. I've got the following in my fragment, and although it builds
fine, I always get an error about "a program required could not be run".

Any suggestions would be helpful and appreciated!

Thanks!



<Binary Id="o2007pia.msi" SourceFile="Dashboard\Redist\o2007pia.msi"/>

<Binary Id="extensibilityMSM.msi"
SourceFile="Dashboard\Redist\extensibilityMSM.msi"/>

<Binary Id="o2003pia.msi" SourceFile="Dashboard\Redist\O2003PIA.msi"/>

<InstallExecuteSequence>

<Custom Action="O2003PIA" Before="InstallFinalize">(OFFICEVERSION =
"Outlook.Application.11") AND Not Installed AND Not
O2003PIAINSTALLED</Custom>

<Custom Action="O2007PIA" Before="InstallFinalize">(OFFICEVERSION =
"Outlook.Application.12") AND Not Installed AND Not
O2007PIAINSTALLED</Custom>

</InstallExecuteSequence>

Here's the relative part of the verbose logs...

MSI (s) (04:64) [14:58:07:962]: Executing op:
End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=15803510)
MSI (s) (04:64) [14:58:07:977]: User policy value 'DisableRollback' is 0
MSI (s) (04:64) [14:58:07:977]: Machine policy value 'DisableRollback'
is 0
Action 14:58:07: RollbackCleanup. Removing backup files MSI (s) (04:64)
[14:58:07:993]: Calling SRSetRestorePoint API.
dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 284,
szDescription: "".
MSI (s) (04:64) [14:58:07:993]: The call to SRSetRestorePoint API
succeeded. Returned status: 0.
MSI (s) (04:64) [14:58:07:993]: Unlocking Server MSI (s) (04:64)
[14:58:07:993]: PROPERTY CHANGE: Deleting UpdateStarted property. Its
current value is '1'.
Action ended 14:58:07: InstallFinalize. Return value 1.
MSI (s) (04:64) [14:58:07:993]: Doing action: O2003PIA MSI (s) (04:64)
[14:58:07:993]: Note: 1: 2205 2:  3: ActionText Action 14:58:07:
O2003PIA.
Action start 14:58:07: O2003PIA.
MSI (s) (04:64) [14:58:08:431]: Note: 1: 1721 2: O2003PIA 3:
C:\WINDOWS\Installer\MSI2EC6.tmp 4:
MSI (s) (04:64) [14:58:08:431]: Note: 1: 2205 2:  3: Error MSI (s)
(04:64) [14:58:08:431]: Note: 1: 2228 2:  3: Error 4: SELECT `Message`
FROM `Error` WHERE `Error` = 1721 Error 1721. There is a problem with
this Windows Installer package. A program required for this install to
complete could not be run. Contact your support personnel or package
vendor. Action: O2003PIA, location:
C:\WINDOWS\Installer\MSI2EC6.tmp, command:
MSI (s) (04:64) [14:58:16:087]: Note: 1: 2205 2:  3: Error MSI (s)
(04:64) [14:58:16:087]: Note: 1: 2228 2:  3: Error 4: SELECT `Message`
FROM `Error` WHERE `Error` = 1709 MSI (s) (04:64) [14:58:16:087]:
Product: Maestro -- Error 1721. There is a problem with this Windows
Installer package. A program required for this install to complete could
not be run. Contact your support personnel or package vendor. Action:
O2003PIA, location:
C:\WINDOWS\Installer\MSI2EC6.tmp, command:





David Bartmess

Wall Street On Demand

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

direct: 303.417.9999 x585

cell: 303.883-9117

fax: 303.444.2586


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to