As has been pointed out, it is a fact that the InstallUISequence is not run 
during a silent install. Therefore your custom action in the UI sequence cannot 
be running.  Beware that you may have a faith-based install instead of one that 
relies on Windows known behavior. 

Also, you can't run an MSI-based install from the execute sequence, that's been 
mentioned too, so be glad that you didn't think of it because it won't work 
anyway. Recursive MSI installs don't work. Prepare for error 1618. 

I'm going to repeat what's been said:

1. Use the merge modules. 
2. If you have a bootstrapper and a reason to get the VC++ on the system for 
the duration of the install, then run the vcredist exe. 

I'll also add something Bob A mentioned in case it matters. The UI sequence is 
not elevated unless the entire MSI is launched elevated, so there may be 
situations where installing the redist from the UI sequence will fail because 
of insufficient privilege. 

Phil Wilson 

-----Original Message-----
From: Tobias S [mailto:tobias.s1...@gmail.com] 
Sent: Thursday, April 28, 2011 9:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VC++ redistributable questions

Thanks for your feedback.

I used the InstallUI sequence to install the VCRedist.exe and did
nothing in InstallExecute sequence. So actually my implementation can
lead to an installed product without installed VCRedist when user runs
in /qn.

When writing

>> - Most installs run in UI mode, otherwise also for InstallExecute a
>> condition could be integrated. Same scenario must be considered when
>> designing an installer with a bootstrapper


I thought of

<CustomAction Id='NoVCRedist' Error="No VCRedist ... detected" />
<InstallExecuteSequence>
  <Custom Action='NoVCRedist' After='LaunchConditions'>Not Installed
And Not VC2010REDIST_X86</Custom>
</InstallExecuteSequence>

I didn't think of installing another MSI in InstallExecute sequence.
Sorry for the misunderstanding.

Right now I also mentioned that properties are not re-evaluated when
FindRelatedProducts is called in InstallUISequence and
InstallExecuteSequence. So a set property CA must be implemented...



2011/4/28 Bob Arnson <b...@joyofsetup.com>:
> On 28-Apr-11 09:52, Tobias S wrote:
>> - With this implementation the VCRedist installer runs at a point
>> where the user can run the installation unattended (for bootstrapper
>> normally waiting until completion necessary - not considering Burn
>> here as it is in beta)
>> - Most installs run in UI mode, otherwise also for InstallExecute a
>> condition could be integrated. Same scenario must be considered when
>> designing an installer with a bootstrapper
>
> Neither of these is the case: Unattended installs skip the UI sequence
> so anything done only in the UI sequence is also skipped. And you cannot
> run another installer from the execute sequence; that requires a chainer.
>
>> PS: I know this approach is somehow quick-and-dirty and not MSDN
>> compliant ... but it does a good job ...
>
> There's nothing wrong with quick, but dirty and unsupported are bad news.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to