You can't schedule deferred (aka: in-script) CustomActions outside of the 
InstallExecuteSequence script execution phase.

-----Original Message-----
From: Yuri N. Sakharov [mailto:yun...@yahoo.com]
Sent: Friday, January 09, 2009 13:54
To: WiX-users@lists.sourceforge.net
Subject: Re: [WiX-users] Save configuration data during upgrade.

At the moment I did not have original sources but I have made something like:

<CustomAction Id="SaveConfig" Return="check" Execute="deferred" 
BinaryKey="InstallUtil" DllEntry="ManagedInstall" />
<CustomAction Id="SaveConfigSetProperty" Return="check" Property="SaveConfig" 
Value='/installtype=notransaction /action=install "[#MyCustomInstall.dll]" 
"[#ConfigFile]"' />

<InstallExecuteSequence>
  <Custom Action="SaveConfigSetProperty" 
After="FindRelatedProducts"><![CDATA[$C_MyCustomInstall.dll>2]]></Custom>
  <Custom Action="SaveConfig" 
After="SaveConfigSetProperty"><![CDATA[$C_MyCustomInstall.dll>2]]></Custom>
</InstallExecuteSequence>

and then got the next message:

“ICE77: SaveConfig is a in-script custom action.  It must be sequenced in 
between the InstallInitialize action and the InstallFinalize action in the 
InstallExecuteSequence table”.

What is wrong or how to shedule CA before InstallFinalize?


> --- On Fri, 1/9/09, Rob Mensching
> <rob.mensch...@microsoft.com> wrote:
>
> > From: Rob Mensching
> <rob.mensch...@microsoft.com>
> > Subject: RE: [WiX-users] Save configuration data
> during upgrade.
> > To: "yun...@yahoo.com"
> <yun...@yahoo.com>
> > Date: Friday, January 9, 2009, 11:15 PM
> > 1.  It is possible to schedule CustomActions before
> > InstallInitialize.
> >
> > 2.  It is possible to schedule CustomActions before
> > LaunchConditions.
> >
> > -----Original Message-----
> > From: Yuri N. Sakharov [mailto:yun...@yahoo.com]
> > Sent: Friday, January 09, 2009 13:15
> > To: Rob Mensching
> > Subject: RE: [WiX-users] Save configuration data
> during
> > upgrade.
> >
> > Thank you for answer, Rob.
> >
> > Does this answer also mean what if I'll write my
> own
> > CustomAction with C++ or C# (and InstallUtils) I could
> not
> > shedule it before InstallInitialize?
> >
> > Is it possble to shedule some user's CustomActions
> > before LaunchConditions in InstallUISequence?
> >
> >
> > --- On Fri, 1/9/09, Rob Mensching
> > <rob.mensch...@microsoft.com> wrote:
> >
> > > From: Rob Mensching
> > <rob.mensch...@microsoft.com>
> > > Subject: RE: [WiX-users] Save configuration data
> > during upgrade.
> > > To: "yun...@yahoo.com"
> > <yun...@yahoo.com>, "General discussion for
> > Windows Installer XML toolset."
> > <wix-users@lists.sourceforge.net>
> > > Date: Friday, January 9, 2009, 10:02 PM
> > > WiX does not currently have CustomActions to read
> XML
> > files.
> > >  It’s an outstanding feature request.
> > >
> > > -----Original Message-----
> > > From: Yuri N. Sakharov [mailto:yun...@yahoo.com]
> > > Sent: Friday, January 09, 2009 08:49
> > > To: wix-users@lists.sourceforge.net
> > > Subject: [WiX-users] Save configuration data
> during
> > > upgrade.
> > >
> > > There are exe-file and its XML config-file in the
> WiX
> > 3
> > > installer.
> > > There is some user data stored inside this
> > config-file.
> > > How can I save and restore this user data during
> > upgrade
> > > the product?
> > >
> > > I could not find the standard way to do that but
> > Microsoft
> > > says that the best practice is to store data in
> these
> > files
> > > instead Windows registry.
> > >
> > > Can XmlFile or XmlConfig be used to _read_(them
> write
> > well)
> > > data from application’s XML config files?
> > >
> > > I tried to do that with custom action but got
> error
> > > “ICE77: XXX is a in-script custom action.  It
> must
> > be
> > > sequenced in between the InstallInitialize action
> and
> > the
> > > InstallFinalize action in the
> InstallExecuteSequence
> > > table”.
> > >
> > > Also I would prefer to have custom action
> scheduled
> > before
> > > InstallInitialize and even at the beginning of
> > > InstallUISequence to have possibility to show
> this
> > user data
> > > in the dialogs.
> > >
> > > Thanks,
> > > Yuri
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Check out the new SourceForge.net Marketplace.
> > > It is the best place to buy or sell services for
> > > just about anything Open Source.
> > > http://p.sf.net/sfu/Xq1LFB
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to