Personally I would just install it to a directory named "Microsoft SDKs" under the appropriate ProgramFiles location and not try to "match" it. The default path for all SDKs from MSFT is in that folder and none of the otherwise unrelated ones track the others if they were installed in a different location.
-----Original Message----- From: Qi Ning [mailto:qin...@microsoft.com] Sent: Wednesday, November 11, 2009 5:06 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to set a property based on another property (by stripping the trailing substring)? Hi, I want to install my SDK in a parallel directory of the Silverlight SDK install dir. So I query the SLv3.0 SDK install dir as follows: <Property Id="SL30SDKINSTALLDIR"> <RegistrySearch Id="RegSearchSL30InstallPath" Key="SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v3.0\Install Path" Name="Install Path" Root="HKLM" Type="raw" /> </Property> The value in SL30SDKINSTALLDIR = C:\Program Files\Microsoft SDKs\Silverlight\v3.0\ My question is how to strip from SL30SDKINSTALLDIR the trailing "Silverlight\v3.0\" so that I can get a property value "C:\Program Files\Microsoft SDKs\" I tried the following, but it does not work: the installer complains about the illegal directory name "..": <CustomAction Id="SetMsSdkInstallDir" Property="MSSDKINSTALLDIR" Value="[SL30SDKINSTALLDIR]..\.." /> Any ideas on how to do this? Thank you. -- Qi ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users