If you give the directory an ID with all uppercase letters, you can treat it as 
a property.  This 
means you can use RegSearch or a custom action to get hold of the env var 
value, and then use a 
custom action to set the directory property to that value.  Everything 
downstream of that directory 
then gets resolved correctly too.

Rob

Jeff MacDuff wrote:
> Does anyone else have a method to install to a directory that isn’t a 
> “named” directory?
> 
>  
> 
> Surely I can somehow set the path based on environment variable? Is 
> there a expand method within wix?
> 
>  
> 
> Thanks,
> 
> JEff
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Jeff MacDuff
> *Sent:* Monday, November 27, 2006 3:40 PM
> *To:* Rob Mensching; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Here is the log entry:
> 
>  
> 
> MSI (c) (44:78) [13:58:30:775]: PROPERTY CHANGE: Modifying ALLUSERS 
> property. Its current value is '2'. Its new value: '1'.
> 
>  
> 
> *From:* Rob Mensching
> *Sent:* Monday, November 27, 2006 3:39 PM
> *To:* Jeff MacDuff; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* RE: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> What does your log file say the value for ALLUSERS is?  If it isn’t 1, 
> then you’re not doing a per-machine install and you won’t get the “All 
> Users” profile to install into.
> 
>  
> 
> *From:* Jeff MacDuff
> *Sent:* Monday, November 27, 2006 15:26
> *To:* Rob Mensching; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* RE: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> It should be per machine… is there a good way to tell?
> 
>  
> 
> *From:* Rob Mensching
> *Sent:* Monday, November 27, 2006 3:24 PM
> *To:* Jeff MacDuff; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* RE: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Jeff, are you doing a per-machine or a per-user install?
> 
>  
> 
> *From:* Jeff MacDuff
> *Sent:* Monday, November 27, 2006 15:14
> *To:* Rob Mensching; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* RE: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Looks /like //Windows SDK: KnownFolders.h/ has the list of folders.
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Jeff MacDuff
> *Sent:* Monday, November 27, 2006 2:10 PM
> *To:* Rob Mensching; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> No I don’t off the bat… but I know that users\public\pictures is one of em J
> 
>  
> 
> I will send some offline email and see if I can dig it up… no promises.
> 
>  
> 
> *From:* Rob Mensching
> *Sent:* Monday, November 27, 2006 2:10 PM
> *To:* Jeff MacDuff; Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* RE: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> I’ve been considering the need to create a standard CustomAction to 
> process all the new standard directories on Vista.  It sounds like we’ll 
> need to do that.  Jeff, do you have a pointer to the documentation that 
> points at all the new standard folders provided by the Vista shell?
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Jeff MacDuff
> *Sent:* Monday, November 27, 2006 14:04
> *To:* Dana Gutride; wix-users@lists.sourceforge.net
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Ok that worked, I now see all the propertys…. However there is no 
> property set for c:\users\public.
> 
>  
> 
> So since there isn’t a MSI property I can latch on too… is there another 
> method?
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Dana Gutride
> *Sent:* Monday, November 27, 2006 1:56 PM
> *To:* wix-users@lists.sourceforge.net
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Try specifying l*v instead of lv.
> 
> Dana
> 
> On 11/27/06, *Jeff MacDuff* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> Ok I ran the verbose install like this:
> 
>  
> 
> msiexec /i foo.msi /lv foo.txt however I didn't see anything in the log 
> that shows all the propertys? I did look for the value ( 
> c:\users\public) but it wasn't listed at all.
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> 
> [mailto:[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>] *On Behalf Of *Dana 
> Gutride
> *Sent:* Monday, November 27, 2006 1:16 PM
> 
> 
> *To:* wix-users@lists.sourceforge.net 
> <mailto:wix-users@lists.sourceforge.net>
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> My other idea:  try a verbose install on vista (my vista vm isn't 
> running right now, or I'd try it for you).  Take a look at the 
> properties at the end of the log, is the property you need in there 
> somewhere?  You might be able to use it the same way.
> 
> Dana
> 
> On 11/27/06, *Jeff MacDuff* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> The problem is that it's not in the list.
> 
>  
> 
> Users\public is new "common" directory introduced in Vista, it's there 
> on every install.. if my user name was joe I would also have users\joe 
> was well.
> 
>  
> 
> The pubic folder contains music / docs / etc that all users inherit .
> 
>  
> 
> Since it's not a "named" folder is there another way to expand the 
> variable?
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>[mailto:[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>] *On Behalf Of *Dana 
> Gutride
> *Sent:* Monday, November 27, 2006 12:03 PM
> *To:* wix-users@lists.sourceforge.net 
> <mailto:wix-users@lists.sourceforge.net>
> *Subject:* Re: [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> Jeff:
> 
> If it's in the following list, you can use it relatively easily.
> http://msdn2.microsoft.com/en-gb/library/aa372057.aspx 
> <http://msdn2.microsoft.com/en-gb/library/aa372057.aspx>
> 
> The directory structure would look something like what is below (just 
> the beginning, you should be able to fill in the rest.
> <Directory Id='TARGETDIR' Name='SourceDir'>
>  <Directory Id='ProgramFilesFolder' Name='PFiles'>   <<<<----------- 
> this is the important part, change the id to match what you find in the 
> msdn link above.
> 
> Dana
> 
> On 11/27/06, *Jeff MacDuff* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> Any help?
> 
>  
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>[mailto:[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>] *On Behalf Of *Jeff 
> MacDuff
> *Sent:* Monday, November 27, 2006 7:22 AM
> *To:* wix-users@lists.sourceforge.net 
> <mailto:wix-users@lists.sourceforge.net>
> *Subject:* [WiX-users] How to specify a envirorment variable dir
> 
>  
> 
> I need to install some sample content into the %public%\pictures folder 
> on the target machine but I am unsure how to do this.
> 
>  
> 
> How do I specify a environment variable path for a directory element?
> 
>  
> 
> Thanks,
> 
> Jeff
> 
> 
> -------------------------------------------------------------------------
> 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 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net <mailto:WiX-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
>  
> 
>  
> 
> 
> -------------------------------------------------------------------------
> 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 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net <mailto:WiX-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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


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