If you are using Windows Installer UI you could try adding a Publish element to 
your Change button where the Event attribute is set to "reinstall" and the 
Value attribute set to a feature that contains your components. According to 
this page: http://msdn.microsoft.com/library/aa371181.aspx the Order attribute 
should be set to 2 and the event that moves to the next dialog should be set 
with an Order of 3 (that page indicates setting an Event of "reinstallMode" 
with an Order of 1, but the mode isn't used by the XmlFile action. However it 
may be used by other components in your feature. You may consider using a 
subfeature to isolate your XmlFile components and calling that in your 
reinstall event).
 
If you are using a command-line passed to the MSI you could try adding a 
command-line option of setting the REPAIR property to the name of the feature, 
but that disables things like conditions on features and things. So will using 
the api MsiReinstallFeature(), also mentioned on that page.
 
-Blair
 
> From: kaize...@hotmail.com
> To: wix-users@lists.sourceforge.net
> Date: Mon, 25 Nov 2013 06:01:15 +1100
> Subject: Re: [WiX-users] Getting XmlFile 'Components' to be re-triggered      
> when executing a Change 'install'
> 
> Thanks Blair
> 
> The verbose log says that the component is already installed, so it won't
> perform any action.
> I guess I have to explicitly modify the install action for the appropriate
> components?
> Is there a WiX standard CA to perform this?  I assume it'd just need to look
> at the WiX_InstallState property (I'm sure I've got the naming of that
> wrong.. but it has 'Change' when performing a Change install action)
> 
> Bevan
> 
> Date: Sun, 24 Nov 2013 10:16:43 -0800
> From: Blair Murri <os...@live.com>
> Subject: Re: [WiX-users] Getting XmlFile 'Components' to be
>       re-triggered when executing a Change 'install'
> 
> In your verbose log what does MSI's plan say about what it intends to do
> with your XmlFile components? What about the features that contain those
> components? What are you triggering for repair when you select "Change"?
>  
> -Blair
>  
> > From: kaize...@hotmail.com
> > To: wix-users@lists.sourceforge.net
> > Date: Sat, 23 Nov 2013 22:52:37 +1100
> > Subject: [WiX-users] Getting XmlFile 'Components' to be re-triggered when
> executing a Change 'install'
> > 
> > Hi again,
> > 
> > I've got another problem I'd like some help with...
> > I need to make some modifications to a web.config file to push in a 
> > certificate to use for some Web Service stuff I've got.
> > The initial installation of this works beautifully, the web.config 
> > file gets modified using the XmlFile custom action under a component.
> > However during a 'Change' installation, I would like for the user to 
> > be able to choose an alternative certificate.
> > 
> > How would I get the XmlFile 'Components' to be re-installed in this 
> > situation, or for the XmlFile CustomAction to be re-called with the 
> > appropriate properties (which are already defined in the XmlFile element).
> 
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing 
> conversations that shape the rapidly evolving mobile landscape. Sign up now. 
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to