AFAIK, this property is mapped to the ARPINSTALLLOCATION property. You
should have set this property during that installation in order to be
able to address the ProductInstallation.InstallLocation API the way you
do.
This could be done with a custom action, e.g.
<CustomAction Id="SetARPInstallLocation"
Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
Hope this helps.
-- Yan
-----Original Message-----
From: Essam Salah [mailto:[email protected]]
Sent: Wednesday, June 24, 2009 4:51 PM
To: [email protected]
Subject: [WiX-users] ProductInstallation . InstallLocation returns an
empty string for a valid installed package
Importance: High
All,
We are getting an empty string when we read the property
InstallLocation, any advice?
ProductInstallation p = new ProductInstallation("{valid guid
here to an installed product}");
MessageBox.Show(string.Format("Product is installed? = {0}",
p.IsInstalled));
if (p.IsInstalled)
{
MessageBox.Show(p.InstallLocation);
}
Thanks and have a nice day
Essam Salah
Team Leader
ITWorx
------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users