Dave:
I use the following model to update the element values of a standard XML
file that we include with each of our installs. In our case, we are
installing a web application so we can navigate to the InstallLog.Xml file
in our web folder to find settings of property values used during our
install. A separate component is used to install the "pre-install" xml file
and this update component sets the specific element values.
I do not have to reschedule any custom actions using this model.
I use Wix 2.0.4221.0
<Product>
...
<Component Id="UpdateInstallLogXml"
Guid="C9F6BCD4-23D1-4A7B-A9BE-35D72F8A5D90">
<XmlFile Id="applicationName" Action="setValue"
File="[INSTALLLOCATION]InstallLog.xml"
ElementPath="/installLog/application/name" Value="[WEBAPPLICATIONNAME]" />
</Component>
---
<Feature>
<ComponentRef Id="UpdateInstallLogXml" />
</Product>
I have a BAT file that I use to create my MSI files. The [Light] command in
the BAT file is formatted in the following manner. (This assumes that your
wxs & wixobj files are in the same folder as light & wixca. If they are not
(like in my case), you can use relative pathing or specific folder addresses
in the command line like: "d:\program files\windows installer xml\bin\light"
to run light from the Program Files folder inside of your project
directory.)
light -b ./files -out foo.msi foo.wixobj wixca.wixlib
David Adams
MSN MessengerID: [EMAIL PROTECTED]
>From: "David Walton" <[EMAIL PROTECTED]>
>To: <[email protected]>
>Subject: [WiX-users] HELP. Can someone send me a COMPLETE example of
>wixcustom actions working
>Date: Tue, 31 Oct 2006 17:17:55 -0000
>MIME-Version: 1.0
>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by
>bay0-mc12-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue,
>31 Oct 2006 09:18:36 -0800
>Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by
>sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid B1905128DD; Tue, 31 Oct
>2006 09:18:16 -0800 (PST)
>Received: from sc8-sf-mx1-b.sourceforge.net
>([10.3.1.91]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net
>with esmtp (Exim 4.43)id 1GexFd-0006Hs-Dzfor
>[email protected]; Tue, 31 Oct 2006 09:18:13 -0800
>Received: from smtpout.btconnect.com ([213.123.26.90]
>helo=hesl01uker.he.local)by mail.sourceforge.net with esmtp (Exim 4.44) id
>1GexFZ-0002gg-0afor [email protected]; Tue, 31 Oct 2006
>09:18:13 -0800
>Received: from HEMV2DUKER.he.local ([10.87.8.43]) by hesl01uker.he.local
>withMicrosoft SMTPSVC(6.0.3790.211); Tue, 31 Oct 2006 17:17:55 +0000
>X-Message-Info: LsUYwwHHNt0bxEY1HxT9GoUopyIqk8LsGS7E/1djajI=
>X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
>Content-class: urn:content-classes:message
>X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: HELP. Can someone send
>me a COMPLETE example of wix customactions working
>Thread-Index: Acb9EIEE0cQbovUZTJu0/AxcOBRgUg==
>X-OriginalArrivalTime: 31 Oct 2006 17:17:55.0681
>(UTC)FILETIME=[81464D10:01C6FD10]
>X-Spam-Score: 1.0 (+)
>X-Spam-Report: Spam Filtering performed by sourceforge.net.See
>http://spamassassin.org/tag/ for more details.Report problems
>tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000011.0
>FORGED_RCVD_HELO Received: contains a forged HELO
>X-BeenThere: [email protected]
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: "General discussion for Windows Installer XML
>toolset."<wix-users.lists.sourceforge.net>
>List-Unsubscribe:
><https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL
>PROTECTED]>
>List-Archive:
><http://sourceforge.net/mailarchive/forum.php?forum=wix-users>
>List-Post: <mailto:[email protected]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Subscribe:
><https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL
>PROTECTED]>
>Errors-To: [EMAIL PROTECTED]
>Return-Path: [EMAIL PROTECTED]
>
>hi
>
>I admit I am a beginner at wix. I have packaged basic files but I am at my
>wits end in regard to custom actions implemented using the wix libraries
>(eg, XmlFile). I have found loads of example of xml syntax, but have never
>got any of them to work as they omit the mechanism used to actual scdedule
>an call the implicit actions. This means that I am doing some very basic
>stuff wrong. I really want to use WIX.
>
>Can someone send me a simple but COMPLETE example including:
>- how to build it, (how to link in the libraries with light, how to know
>which ones)
>- how do you get the custom actions to be called in the xml
>- do you have to explicitly schedule (eg SchedXmlFile) and explicitly
>include binaries in the xml.
>- which version of WIX
>
>I just need an example that works, to get going.
>
>regards
>Dave.
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>WiX-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free
trip!
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users