There isn't a data item called ProductVersion under those those registry
keys. 

Why not use a component guid in an AppSearch instead? 

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harvey
Werner
Sent: Monday, February 12, 2007 2:09 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to use the registry to detect if a product
isinstalled

I would like to use the Windows registry (and not the file system) to
detect if a package is already installed.

I was thinking of using something like this, but can't seem to get it to
work. I most likely have the logic wrong in CDATA.

    <Property Id="PACKAGE_INSTALLED">
      <RegistrySearch
        Id="REG_FOUND"
        Root="HKLM"
 
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{xxxxxxxx-xxxx-
xxxx-xxxx-xxxxxxxxxxxx}"
        Name="ProductVersion"
        Type="raw"
        Win64="no" />
    </Property>

    <Condition
        Message="Package X is installed. Please uninstall it before
trying again.">
                <![CDATA[(NOT PACKAGE_INSTALLED) OR REMOVE]]>
    </Condition>

Any advice is appreciated.

--
Harvey Werner

------------------------------------------------------------------------
-
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to