Hi Mark,

MSI packages support three top level actions.  Which one of them will be run 
depends on the switch we pass to the msiexec utility (I will omit for now MSI 
API calls) and that also will determine which sequence tables will be used 
during install.
So, when /i switch is passed, MSI will execute INSTALL action 
(http://msdn.microsoft.com/en-us/library/aa369547(v=VS.85).aspx) and actions 
from InstallUISequence and InstallExecuteSequence will be executed.
When /a switch is passed, MSI will execute ADMIN action 
(http://msdn.microsoft.com/en-us/library/aa367546(v=VS.85).aspx) and actions 
from AdminUISequence and AdminExecuteSequence tables will be executed.
When /j switch is passed, MSI will execute ADVERTISE action 
(http://msdn.microsoft.com/en-us/library/aa367549(v=VS.85).aspx) and actions 
from AdvtExecuteSequence table will be executed (even though AdvtUISequence 
table is defined, installer does not use it).

What it means is that when you install the product, none of the actions from 
AdminExecuteSequence will be executed.  Also, when you do an administrative 
install, installer only copies files and do not run custom actions.  That's why 
your administrative install didn't fail.

As Rob mentioned already, assemblies committed into GAC during InstallFinalize. 
 So, you have two options for your first initial question:  run custom step 
which is running InstallUtil after InstallFinalize or, much better choice, get 
rid of that custom step and do whatever InstallUtil is doing using native 
MSI/WiX custom actions.

Alex



-----Original Message-----
From: Mark Modrall [mailto:mmodr...@mzinga.com] 
Sent: Wednesday, April 21, 2010 6:49 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] A couple of Wix 2.0 questions

I noticed that it's legal to have <InstallFiles/> and <InstallFinalize/> as a 
child of any of the sequences...  Can you put InstallFiles and InstallFinalize 
in one sequence (say the AdminExecuteSequence) and run InstallUtil from 
another?  And which order do the Sequences get run in?

Thanks
Mark


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: Tuesday, April 20, 2010 1:08 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] A couple of Wix 2.0 questions

0. Nothing wrong with WiX v2.0. Now InstallUtil, that's a big problem.
<smile/>

1. Assemblies are not committed to the GAC until InstallFinalize. Thus, you 
cannot depend on them during your install.

2. Nothing built into the Preprocessor about MSBuild or VS. You need to push 
the values down from VS or MSBuild into candle.exe. My MSBuild-fu isn't that 
strong so others may be of more use yere.

On Tue, Apr 20, 2010 at 9:56 AM, Mark Modrall <mmodr...@mzinga.com> wrote:

> I know I know...  I shouldn't even be using it...  But I inherited 
> this old hairball when I got here and no one has wanted to spend the time to 
> upgrade.
>
> I tried to make a quick new installer using our already-written merge 
> modules but I ran into a couple of odd quirks...
>
>
> 1)      One merge module installs a few .net assemblies in the GAC.  The
> last, custom step of the new installer is to run InstallUtil.exe on an 
> assembly *using* one of the gac components.  But InstallUtil fails 
> because trying to run up the assembly - bind failures, saying the gac 
> components aren't there.  I've tried a number of things  (declaring 
> InstallFiles explicitly, trying to explicitly set the sequence 
> numbers, moving all the actions to AdminExecuteSequence) and nothing 
> has worked.  Oddly, moving everything to AdminExecuteSequence ran to 
> completion just fine - it just didn't execute the  custom actions.  Anyone 
> out there contended with this?
>  Trying to put some pieces in the gac with the installer yet still 
> have them available to run InstallUtil.exe on something consuming them?
>
> 2)      In my wxs, I tried to default the platform to the setting from the
> VS Configuration Manager, but none of the methods I found with Google 
> appeared to work.  None of the supposed pre-defined variables existed, 
> and I couldn't put a <DefineConstants> group in a 2.0 wix project.  
> Are there any preprocessor variables in 2.0 that will tell you what 
> configuration you're running in?
>
> Thanks
> mark
>
>
> ----------------------------------------------------------------------
> -------- Download Intel&#174; Parallel Studio Eval Try the new 
> software tools for yourself. Speed compiling, find bugs proactively, 
> and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval Try the new software tools for 
yourself. Speed compiling, find bugs proactively, and fine-tune applications 
for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to