Steve Bennett wrote:

Hi all,

  I'm trying to do something pretty simple:

1) Check the registry for a key specifying an existing installation directory

2) If it exists, use that key as the installation directory by default

3) If it doesn't, use a default c:\program files\... directory by default.

4) Either way, let the user override it if they want.

How do I do this? One problem is I don't understand the difference between specifying the installation directory through a tree of <Directory> elements, or through the Value attribute of a <Property> element.


MSI turns Directory entries into properties, then uses those property values to determine where files end up. So use Directory/@Id to provide the default location, then Property with the same @Id and RegistrySearch to overwrite it. If the value isn't found, MSI doesn't change the existing property value.

--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to