If you knew the UpgradeCode of an existing product, you could find it
using the FindRelatedProducts action. Use the <Upgrade> element and
specify OnlyDetect="yes" on the <UpgradeVersion> element if you only
want to know if the product is installed rather than actually removing
it. A ProductCode refers only to one specific version and language of a
product, while the same UpgradeCode is normally used for all versions
and languages of the same product.

As far as the MSM goes, if your product depends on the contents of that
MSM, you should merge it into your package. This ensures that the
reference counts on the components of that MSM are incremented, ensuring
that the components are not prematurely removed when all other products
which installed those components are uninstalled.

If you're trying to limit the size of the package downloaded by the
user, you might be able to keep the files to be installed in separate
CABs, and have Windows Installer download them on-demand, but someone
else will have to help you there! (I know Windows Installer has the
capability since I've seen the Platform SDK Web Install do it, but I
don't know how to do it).

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter G.
Sakhno
Sent: 09 October 2006 14:02
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to find is product/merge module installed?

How to find if a product is already installed if it's Product Id is
known? Should be implemented some DLL/EXE-based CA or there are any
"standard" MSI commands available?

The same about merge module. I want to find out if any copy of
particular MSM (defined by its GUID) is installed, regardless of a
product that encloses the MSM.

Best regards,
Peter G. Sakhno
C-MAP RUSSIA Ltd
http://www.c-map.ru/


------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to