You'd need to build a CustomAction.  A "Class 2" CustomAction: 
http://robmensching.com/blog/posts/2007/8/10/Zataoca-Classes-of-Custom-Actions. 
 I personally always recommend building CustomActions with the fewest 
dependencies, so C/C++ statically linked to C runtime.  That's what all the WiX 
CustomActions do.

An extension would just provide "syntactic sugar" for authoring the data for 
the CustomAction.  It isn't necessary to get the job done.


-----Original Message-----
From: Mordecai Zibkoff [mailto:mzibk...@netik.com] 
Sent: Wednesday, January 21, 2009 12:15
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] how to read appsettings values within wix

Rob,

Thanks For your prompt response. The code that you mention having to
write (read data, set properties...) what form does it take? (I can
write it in c#) but what should I be building? An wix extension? Is
there any tutorials on the subject?

Thanks,
Mordecai

-----Original Message-----
From: Rob Mensching [mailto:rob.mensch...@microsoft.com]
Sent: Wednesday, January 21, 2009 1:30 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] how to read appsettings values within wix

Doesn't exist today (unfortunately)... probably not too hard since you
don't have to modify machine state.  Just read data, set properties...
let XmlConfig do all the heavy lifting (aka:
install/uninstall/rollback/etc.).

-----Original Message-----
From: Mordecai Zibkoff [mailto:mzibk...@netik.com]
Sent: Wednesday, January 21, 2009 10:28
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] how to read appsettings values within wix

Hi,



I have a requirement to build an installer the does the following:



1 - the installer should read an appsettings value from a pre existing
web.config on the target machine.

2 - This value should then be used to edit a web.config file before
writing it, as a new file to the target directory (different than the
directory where the first web.config resides)



I can get step 2 done easily with the Util:XmlFile, but I don't have a
way to extract the value, as described in step 1. I can imagine an
XmlSearch or an AppSettingsSearch tag would be a nice way to solve this.
Is there such an animal? If not, how difficult would it be to write one?



Thanks,

Mordecai



Netik LLC - Incorporated with limited liability in the State of
Delaware, USA Head Office: 40 Fulton Street, 11th Floor, New York, NY
10038, USA London Branch registered in England & Wales with Company No
FC025482 and Branch No BR007789 London Branch Office: Broken Wharf
House, 2 Broken Wharf, High Timber Street, London EC4V 3DT, United
Kingdom.
------------------------------------------------------------------------
------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to