Hi,
I was able to get aound the issue using a dummy custom action that sets a
dummy property.

*<Product ...>
  <Property Id="DummyProperty" Value='1' />*
*  <CustomAction Id="DummyAction" Property="DummyProperty" Value="2" />
  <InstallExecuteSequence>
    ........
    <ScheduleReboot>NOT Installed</ScheduleReboot>*
*    <Custom Action="DummyAction" After="InstallValidate" />
  </InstallExecuteSequence>
</Product>*
**
And then I added a CustomActionRef to the DummyAction in the patch.
This works. But the solution seems hackish.

I tried but could not find a way to refernce ScheduleRebootAction from the
patch.
I am just repeating myself... Is there any way to reference a standard
action from the patch?

1 more thing.....
The above solution worked only if I change the condion for ScheduleReboot
action.
However, if we want to *delete* the ScheduleReboot action then it does not
work (Even after applying the patch ScheduleReboot action exists in the
InstallExecuteSequence table). Can there be any specific reason for this?

Regards
Abhijit



>
> -----Original Message-----
> From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
> Sent: Wednesday, October 17, 2012 7:04 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] FW: FW: FW: Patch installation asks for a reboot
>
> I've never tried it, but I'd expect so.
>
> -----Original Message-----
> From: abhijit chakraborty [mailto:abhi.chak.ju...@gmail.com]
> Sent: 17 October 2012 14:27
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] FW: FW: FW: Patch installation asks for a reboot
>
> *I think to get around that, you would need to add CustomActionRefs for
> any action whose order (sequence
> number) has changed.*
> **
> Can we add custom action refs for predefined actions?
> In InstallExecuteSequence we are changing the conditon for
> *ScheduleReboot*action.
>
> Regards
> Abhijit
>
> -----Original Message-----
> From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
>
> > Sent: Wednesday, October 17, 2012 5:05 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] FW: FW: Patch installation asks for a reboot
> >
> > Your code snippet shows the right way to proceed.
> > If you can see the property change but not the sequence change, it
> > might be because the property and sequence are in different fragments.
> > Are you using admin installations, rather than wixpdbs, to build your
> > patch ?
> > If so, the MSI is automatically fragmented behind the scenes and the
> > property would effectively be in a fragment on its own. I think to get
> > around that, you would need to add CustomActionRefs for any action
> > whose order (sequence
> > number) has changed.
> >
> > I'll try to explain my earlier comment:
> > When you REFerence an element (as in ComponentRef, CustomActionRef),
> > everything in the same fragment is also pulled into the patch.
> > Therefore, if you want your sequence changes in the patch, you must
> > reference something in the same fragment as the execute sequence -
> > because there is no InstallExecuteSequenceRef element.
> >
> > -----Original Message-----
> > From: abhijit chakraborty [mailto:abhi.chak.ju...@gmail.com]
> > Sent: 17 October 2012 12:18
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] FW: FW: Patch installation asks for a reboot
> >
> >
> >    I had added a dummy property in the ddp file like
> >
> > > *<Product ...>*
> > > *<Property Id="DummyProperty" Value='1' />*
> > > *<InstallExecuteSequence>*
> > > *........*
> > > *........*
> > > *</InstallExecuteSequence>*
> > > *</Product>*
> > >
> > > and added a PropertyRef for the dummy property in the patch.
> > >
> > > I saw that the new dummy property got added to the patch and on it
> > > showed up in the orca tool too in the Property table.
> > > However InstallExecuteSequence was still not updated.
> > >
> > > Can you please explain what you mean when you say "referencing the
> > > same fragment as the installexecutesequence"?
> > > In the above dummy code snippet is there something that I need to
> change?
> > >
> > > Regards
> > > Abhijit
> > >
> > >
> > > -----Original Message-----
> > > From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
> > >
> > >> Sent: Wednesday, October 17, 2012 3:01 PM
> > >> To: General discussion for Windows Installer XML toolset.
> > >> Subject: Re: [WiX-users] FW: Patch installation asks for a reboot
> > >>
> > >> Have you anything referencing the fragment that the
> > >> installexecutesequence is in ? There is no
> > >> installexecutesequenceRef element so you'll need some way to tell
> > >> Wix to include the new sequence in the patch.
> > >>
> > >> -----Original Message-----
> > >> From: abhijit chakraborty [mailto:abhi.chak.ju...@gmail.com]
> > >> Sent: 17 October 2012 03:09
> > >> To: wix-users@lists.sourceforge.net
> > >> Subject: Re: [WiX-users] FW: Patch installation asks for a reboot
> > >>
> > >> Hi,
> > >> There is still one more problem.
> > >> I thought if I change the install execute sequence in the target
> > >> msi, that will be picked up by the msp.
> > >> However when I drop the msp on the base msi in Orca tool I do not
> > >> see any change in the install sequence.
> > >>
> > >> All the new components that I have added, modified seem to be there
> > >> in the tables - basically I can see all other changes that I have
> > >> made in the patch except for the install execute sequence change.
> > >>
> > >> Can you please provide some idea as to what might be happening here?
> > >>
> > >> Regards
> > >> Abhijit
> > >>
> > >>
> > >> > -----Original Message-----
> > >> > From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
> > >> > Sent: Tuesday, October 16, 2012 4:18 PM
> > >> > To: General discussion for Windows Installer XML toolset.
> > >> > Subject: Re: [WiX-users] Patch installation asks for a reboot
> > >> >
> > >> > A patch works by transforming the installed and cached MSI with
> > >> > the patch and then running a repair on the resulting MSI. That's
> > >> > why you see the MSI apparently installing again.
> > >> > Altering the condition to NOT REMOVE AND NOT PATCH in the patch
> > >> > sounds like a reasonable fix, if you're certain that the
> > >> > condition that required the reboot won't occur again.
> > >> >
> > >> > -----Original Message-----
> > >> > From: abhijit chakraborty [mailto:abhi.chak.ju...@gmail.com]
> > >> > Sent: 16 October 2012 11:23
> > >> > To: wix-users@lists.sourceforge.net
> > >> > Subject: [WiX-users] Patch installation asks for a reboot
> > >> >
> > >> > Hi,
> > >> > We are creating a patch on top of already shipped product.
> > >> >
> > >> > In the product msi we schedule a reboot like <ScheduleReboot
> > >> > sequence=AfterInstallFinalize>NOT REMOVE</ScheduleReboot>
> > >> >
> > >> > It appears while installing the patch which targets the above
> > >> > msi, it reruns the msi and a reboot gets scheduled.
> > >> >
> > >> > Is there any way we can avoid the ScheduleReboot while installing
> > >> > the patch?
> > >> >
> > >> > Will changing the schedule reboot condition in product msi to
> > >> > something like *NOT REMOVE AND NOT PATCH* or, *NOT REMOVE AND NOT
> > >> > OLDERPRODUCTFOUND* help?
> > >> >
> > >> > While re-running the msi installsequence does the patch pick up
> > >> > the actions from already installed msi i.e is it runtime event?
> > >> > Or, the msi installsequence run by the patch is determined at
> > >> > compile time (I.e. if I change the condition for reboot in the
> > >> > product msi will it be honored by the patch)?
> > >> >
> > >> > Regards
> > >> > Abhijit
> > >> >
> > >> > -----------------------------------------------------------------
> > >> > --
> > >> > ---
> > >> > -------
> > >> > -
> > >> > Don't let slow site performance ruin your business. Deploy New
> > >> > Relic APM Deploy New Relic app performance management and know
> > >> > exactly what is happening inside your Ruby, Python, PHP, Java,
> > >> > and .NET app Try New Relic at no cost today and get our sweet
> > >> > Data Nerd
> > shirt too!
> > >> > http://p.sf.net/sfu/newrelic-dev2dev
> > >> > _______________________________________________
> > >> > WiX-users mailing list
> > >> > WiX-users@lists.sourceforge.net
> > >> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >> > SDL PLC confidential, all rights reserved.
> > >> > If you are not the intended recipient of this mail SDL requests
> > >> > and requires that you delete it without acting upon or copying
> > >> > any of its contents, and we further request that you advise us.
> > >> > SDL PLC is a public limited company registered in England and Wales.
> > >> >  Registered number: 02675207.
> > >> > Registered address: Globe House, Clivemont Road, Maidenhead,
> > >> > Berkshire
> > >> > SL6 7DY, UK.
> > >> >
> > >> >
> > >> >
> > >> > -----------------------------------------------------------------
> > >> > --
> > >> > ---
> > >> > -------- Don't let slow site performance ruin your business.
> > >> > Deploy New Relic APM Deploy New Relic app performance management
> > >> > and know exactly what is happening inside your Ruby, Python, PHP,
> > >> > Java, and .NET app Try New Relic at no cost today and get our
> > >> > sweet Data Nerd shirt too!
> > >> > http://p.sf.net/sfu/newrelic-dev2dev
> > >> > _______________________________________________
> > >> > WiX-users mailing list
> > >> > WiX-users@lists.sourceforge.net
> > >> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >> >
> > >> >
> > >>
> > >> -------------------------------------------------------------------
> > >> --
> > >> --------
> > >> -
> > >> Everyone hates slow websites. So do we.
> > >> Make your web apps faster with AppDynamics Download AppDynamics
> > >> Lite for free
> > >> today:
> > >> http://p.sf.net/sfu/appdyn_sfd2d_oct
> > >> _______________________________________________
> > >> WiX-users mailing list
> > >> WiX-users@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wix-users
> > >>
> > >>
> > >> -------------------------------------------------------------------
> > >> --
> > >> --------- Everyone hates slow websites. So do we.
> > >> Make your web apps faster with AppDynamics Download AppDynamics
> > >> Lite for free today:
> > >> http://p.sf.net/sfu/appdyn_sfd2d_oct
> > >> _______________________________________________
> > >> WiX-users mailing list
> > >> WiX-users@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wix-users
> > >>
> > >>
> > >
> >
> > ----------------------------------------------------------------------
> > -------
> > -
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics Download AppDynamics Lite
> > for free
> > today:
> > http://p.sf.net/sfu/appdyn_sfd2d_oct
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ----------------------------------------------------------------------
> > -------- Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics Download AppDynamics Lite
> > for free today:
> > http://p.sf.net/sfu/appdyn_sfd2d_oct
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
> -----------------------------------------------------------------------------
> -
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for
> free
> today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for
> free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to