Yes, I like Raymond Chen's blog :) Like the original poster, I just found that the documented method wasn't actually working for me.
Rob Rob Mensching wrote: > Understood. > > My point was that unorthodox methods for doing things that are naturally > supported via specifically documented means can create support burdens for > either your application or the platform that supports your application. > > Raymond Chen is one of the more popular historians of such things. > > -----Original Message----- > From: Rob Hamflett [mailto:r...@snsys.com] > Sent: Friday, February 06, 2009 01:00 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] How to reference a system environment variable? > > Rob Mensching wrote: >> And what are you going to do when there is a support issue? > > My point was that it works, not that I've been lucky. > > Rob > >> -----Original Message----- >> From: Rob Hamflett [mailto:r...@snsys.com] >> Sent: Thursday, February 05, 2009 03:01 >> To: wix-users@lists.sourceforge.net >> Subject: Re: [WiX-users] How to reference a system environment variable? >> >> As horrible as it may be, I've been reading system environment values out of >> SYSTEM\CurrentControlSet\Control\Session Manager\Environment for about 4 >> years now and there haven't >> been any support issues (both XP and Vista). I don't use this for setting >> values though. I use the >> normal Environment WiX element. >> >> Rob >> >> Yan Sklyarenko wrote: >>> He-he, nope, this references the local TEMP as well, I've tried this. >>> I've also browsed the forums for this info, and the best approach I've >>> found so far is to search the system registry for the key >>> HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, and >>> the value TEMP underneath. >>> >>> This works for me, but maybe others know about the drawbacks of this >>> approach? I would really like to know if there's any. >>> >>> Thank you. >>> >>> -- Yan >>> >>> -----Original Message----- >>> From: Wilson, Phil [mailto:phil.wil...@wonderware.com] >>> Sent: Wednesday, February 04, 2009 10:29 PM >>> To: General discussion for Windows Installer XML toolset. >>> Subject: Re: [WiX-users] How to reference a system environment variable? >>> >>> The MSI way to get this would be [%TEMP] (formatted type in Windows >>> Installer) so you just need to get that in your WiX source somewhere. >>> >>> Phil Wilson >>> >>> >>> -----Original Message----- >>> From: Yan Sklyarenko [mailto:y...@sitecore.net] >>> Sent: Wednesday, February 04, 2009 8:07 AM >>> To: General discussion for Windows Installer XML toolset. >>> Subject: [WiX-users] How to reference a system environment variable? >>> >>> Hello WiX community, >>> >>> That's a really newbie question. >>> >>> I need to set permissions to the TEMP folder, the one stated in the >>> system TEMP environment variable. >>> I was trying this way: >>> >>> <!-- Setting permissions to the environment Temp folder --> >>> <DirectoryRef Id="TempFolder"> >>> <Component DiskId="1" Id="TempComp" >>> Guid="{YOURGUID-GOES-HERE-B106-B9D9705E01D7}" Permanent="yes"> >>> <CreateFolder> >>> <util:PermissionEx ... /> >>> </CreateFolder> >>> </Component> >>> </DirectoryRef> >>> >>> But this way it references the user-specific TEMP variable, the one >>> under Documents & Settings. >>> >>> Could you please point me to the right direction? >>> Thanks. >>> >>> -- Yan >>> >>> >>> ------------------------------------------------------------------------ >>> ------ >>> Create and Deploy Rich Internet Apps outside the browser with >>> Adobe(R)AIR(TM) >>> software. With Adobe AIR, Ajax developers can use existing skills and >>> code to >>> build responsive, highly engaging applications that combine the power of >>> local >>> resources and data with the reach of the web. Download the Adobe AIR SDK >>> and >>> Ajax docs to start building applications >>> today-http://p.sf.net/sfu/adobe-com >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> >>> >>> ------------------------------------------------------------------------ >>> ------ >>> Create and Deploy Rich Internet Apps outside the browser with >>> Adobe(R)AIR(TM) >>> software. With Adobe AIR, Ajax developers can use existing skills and >>> code to >>> build responsive, highly engaging applications that combine the power of >>> local >>> resources and data with the reach of the web. Download the Adobe AIR SDK >>> and >>> Ajax docs to start building applications >>> today-http://p.sf.net/sfu/adobe-com >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> ------------------------------------------------------------------------------ >>> Create and Deploy Rich Internet Apps outside the browser with >>> Adobe(R)AIR(TM) >>> software. With Adobe AIR, Ajax developers can use existing skills and code >>> to >>> build responsive, highly engaging applications that combine the power of >>> local >>> resources and data with the reach of the web. Download the Adobe AIR SDK and >>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and code to >> build responsive, highly engaging applications that combine the power of >> local >> resources and data with the reach of the web. Download the Adobe AIR SDK and >> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and code to >> build responsive, highly engaging applications that combine the power of >> local >> resources and data with the reach of the web. Download the Adobe AIR SDK and >> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users