Alex:
I use the <RegistrySearch> element of the <Property> to retrieve previous
user-selected property values on uninstalls. I think you could do the same
thing for updates.
<Property Id="YOUR_PROPERTY" Value="SomeValue">
<RegistrySearch Id="PropSearch" Root="HKLM" Name="YourKeyName"
Type="raw"
Key="SOFTWARE\YourCompany\YourSection\YourKey"
/>
</Property>
In this case, the property value is retreived from the registry if found.
If the key is not found in the registry, then the property value is
defaulted to the @Value attribute.
I would think the same model would work with the <IniFileSearch> element of
the <Property> as well.
David Adams
MSN MessengerID: [EMAIL PROTECTED]
>From: Alexander Gnauck <[EMAIL PROTECTED]>
>To: [email protected]
>Subject: [WiX-users] properties form previous versions
>Date: Thu, 21 Sep 2006 11:27:54 +0200
>MIME-Version: 1.0
>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by
>bay0-mc7-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 21
>Sep 2006 02:28:55 -0700
>Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by
>sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 8A0E9FFC8; Thu, 21 Sep
>2006 02:28:45 -0700 (PDT)
>Received: from sc8-sf-mx2-b.sourceforge.net
>([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net
>with esmtp (Exim 4.43)id 1GQKrL-00034e-LCfor
>[email protected]; Thu, 21 Sep 2006 02:28:43 -0700
>Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org)by
>mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256)(Exim 4.44) id
>1GQKrG-0001aL-Qqfor [email protected]; Thu, 21 Sep 2006
>02:28:40 -0700
>Received: from list by ciao.gmane.org with local (Exim 4.43)id
>1GQKr0-0005M0-Itfor [email protected]; Thu, 21 Sep 2006
>11:28:24 +0200
>Received: from p54a49f80.dip0.t-ipconnect.de ([84.164.159.128])by
>main.gmane.org with esmtp (Gmexim 0.1 (Debian))id 1AlnuQ-0007hv-00for
><[email protected]>; Thu, 21 Sep 2006 11:28:22 +0200
>Received: from gnauck by p54a49f80.dip0.t-ipconnect.de with local (Gmexim
>0.1(Debian)) id 1AlnuQ-0007hv-00for <[email protected]>; Thu,
>21 Sep 2006 11:28:22 +0200
>X-Message-Info: LsUYwwHHNt1srELUhBlyEizRtdUD5QeOq6wo8pJtuVg=
>X-Injected-Via-Gmane: http://gmane.org/
>Lines: 8
>X-Complaints-To: [EMAIL PROTECTED]
>X-Gmane-NNTP-Posting-Host: p54a49f80.dip0.t-ipconnect.de
>User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
>X-Spam-Score: 0.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=200001
>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]
>X-OriginalArrivalTime: 21 Sep 2006 09:28:55.0404 (UTC)
>FILETIME=[5BD6CAC0:01C6DD60]
>
>Hello,
>
>is there a way to get/access properties like INSTALLDIR and other custom
>properties from a previous installation which i update with an major
>upgrade using standard WIX functions?
>
>Thanks
>Alex
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>WiX-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users