Hi Mike,

The DefaultDir column in the Directory table (In Wix, Name attribute of the 
Directory element) is not of Formatted type, therefore you can't use a property 
to set the name of the directory.  What you need is to give some fake value to 
the Name attribute of Directory element with Id="JavaJreExtFolder" and use 
custom action type 35 
(http://www.wixwiki.com/index.php?title=Custom_Action_Type_35) to set its value 
to the value of the property JRE_LIB_EXT.

Regards,
Alex


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Rerick
Sent: Tuesday, March 18, 2008 2:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem setting property from registry values

I am having a problem getting a property set correctly. I am fairly new to WiX 
and to the Windows Installer.

When I build the installer, I get a directory called [JRE_LIB_EXT] created in 
the root directory of my install drive.
When I look at the msiexec verbose log file, the CreateFolder action has 
c:\[JRE_LIB_EXT] and this is also the directory name used
in the InstallFiles action.  When I look at the Properties (S) and Properties 
(C) in the log, I see:
    Property(S): JRE_CURRENT_VERSION = 1.6
    Property(S): JRE_MICRO_VERSION = 0
    Property(S): JRE_HOME_FOLDER = C:\Program Files\Java\jre1.6.0_05
    Property(S): SystemFolder = C:\WINDOWS\system32\
    Property(S): JavaJreExtFolder = C:\[JRE_LIB_EXT]\
    Property(S): WixUIRMOption = UseRM
    Property(S): ARPNOMODIFY = true
    Property(S): ARPNOREPAIR = true
    Property(S): Dummy = Dummy
    Property(S): JRE_LIB_EXT = C:\Program Files\Java\jre1.6.0_05\lib\ext

The install finishes without errors and the correct files do get installed in 
the
[JRE_LIB_EXT] folder. I just need it to point to JRE_HOME_FOLDER\lib\ext
instead.

Thanks!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to