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.

 

I'm trying this:

 

    <Property Id="INSTALLDIR" Value="[ProgramFilesFolder]\My Product">

      <RegistrySearch Id="__42E1B969D8E64539B094322695057F0F" Root="HKLM"
Key="Software\[Manufacturer]\RegKey" Name="InstallRoot" Type="raw" />

    </Property>

 

But [ProgramFilesFolder] isn't getting substituted, and I'm thus getting a
"Could not access network location" error.

 

Any help?

 

Thanks very much,

Steve

 

Steve Bennett

[POWERflex Corporation                             ]

[Tel: +61-3-9548-9006          Fax: +61-3-9548-9003]

[Email: spb @ pfxcorp.com      Web: www.pfxcorp.com]

 

-------------------------------------------------------------------------
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

Reply via email to