I'm able to copy a file using the custom action, letting the Custom Action (in this case an .exe) handle the entire process.
I'm still wondering if there's a way to use the Property Id's and Registry Search to handle this. What is the best practice for determining an installation path that could be different based on what is installed on the users machine? In this case a version of Adobe. Thanks for any suggestions. Brad -----Original Message----- From: Jones, Bradley (TA WSS) Sent: Wednesday, March 02, 2011 4:59 PM To: [email protected] Subject: [WiX-users] Installation path of Adobe/Return a value from a CustomAction I'm looking for the best way to find a version of Adobe that's installed on a user's machine. This will determine the installation path of some files to deploy. I've tried the following: <Property Id="ACROBAT_VERSION"> <RegistrySearch Id="Acrobat_Version" Root="HKLM" Key="SOFTWARE\Classes\AcroExch.Document\AcrobatVersion" Type="raw"/> </Property> <Property Id="ACROBATPATH"> <RegistrySearch Id="AcrobatPath" Root="HKLM" Key="HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\VERSION\InstallPath" Type="raw"/> </Property> The issue I have here is depending on what version the user has installed, "VERSION" changes. Is there a way to pass a Property Id to part of the key, for example: HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\[ACROBAT_VERSION]\InstallPath The above does not work, but was wondering if there's a way to accomplish this? I also thought of going the route of a custom action, I've written an exe that returns the path to Adobe. I've written an .exe and called from a custom action: If there's a way, what is the syntax to return a value from a custom action? Can a Custom action return a value that I can pass to a Directory or use as a DirectoryRef? <DirectoryRef Id="PROPERTYRETURNEDFROMCUSTOMACTION"> <Component Id="FindAdobeLocation.exe" Guid="GUID HERE"> <File Id="FindAdobeLocation.exe" Source="SourceLocation" KeyPath="yes" Checksum="yes" /> </Component> </DirectoryRef> Thanks for any suggestions. Brad ------------------------------------------------------------------------ ------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

