Hello Sandun, You cannot initialize the property default value with another property value or environment variable. You may either use a SetProperty custom action or get the default value from the registry using a <RegistrySearch> within that <Property> to get the environment variable value from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment (System variables) or HKEY_CURRENT_USER\Environment (User variables)
Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: sandun css [mailto:sandun...@gmail.com] Sent: July 16, 2009 10:17 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Read install location from an env variable Hi, I need to install my msi to a certain location. That location is read from an env. variable. I am not quite sure how to do it. <Property Id="INSTALLLOCATION">[%myPath]</Property> is not working. (When installing I get an error saying "Could not find network location [%myPath]") Any idea regarding this? Thanks, Sandun ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users