Thinking out loud:

I would probably use a RegistrySearch to set the properties in question from 
the registry. I think these execute prior to LaunchConditions and will leave 
the properties blank *if* the values _do not_ exist in the registry.

I would then code a custom action that reads the xml file and sets properties 
that still do not have values. (Always prefer what is already in the registry.) 
I would schedule this custom action prior to LaunchConditions and add a few 
LaunchConditions that check the properties to have values. (Fail the installer 
if the properties do not have values either from the registry or the xml file.)

I would then have a component for each registry value that sets the property 
values in the registry.

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: lewisv [mailto:le...@nitorco.com]
> Sent: Wednesday, March 31, 2010 7:38 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] read a file + advertise
> 
> 
> Ok, i can save the data that is in my xml in the registry. But i will
> need to
> do that only the first time.
> How do i determine, if this is a first time install ( where i need to
> read
> the xml file) for an advertise install where i need to read the
> registry.
> 
> Should i just have my custom action check the registry first? If i do
> that,
> what will happen on an uninstall/re-install. I need to to re-read the
> xml
> file then.
> 
> Should i always write to the registry also, even if the values are
> already
> there?
> 
> --
> View this message in context: http://n2.nabble.com/read-a-file-
> advertise-tp4834153p4834819.html
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> -----------------------------------------------------------------------
> -------
> Download Intel® 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
------------------------------------------------------------------------------
Download Intel® 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

Reply via email to