Anthony Wieser wrote: > I thought I'd got the hang of this, but just can't understand what's going > on. I need to install a file to a location specified in the registry, and > need some help. >
The answer to most every MSI-related question is "check a verbose log." A verbose log on MSI 3.x contains entries for every property change or deletion so you can see when MSI is setting it. > First, I try to read in the properties at the top of the file from the > registry: > <Property Id="CEAPPMGRDIR" Value="c:\defaultdir\"> > <RegistrySearch Id="CEAPPMGRDIRreg" Root="HKLM" Type="directory" > Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App > Paths\CEAPPMGR.EXE" Name="c:\crud\crud\myapp.txt"></RegistrySearch> > </Property> > The MSI doc is woefully inadequate when it comes to the types of registry searches but I can tell you with high certainty that it won't convert a file path to a directory. It's likely never setting your property, because it doesn't match what you've told it to look for. You can try this: Nest a DirectorySearch under the RegistrySearch. I don't know if that will work but it kinda makes sense: The RegistrySearch returns a path which when nested, provides the default starting place for the DirectorySearch. -- sig://boB http://bobs.org ------------------------------------------------------------------------- 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