Ahh, that makes sense. The example I read didn't... but of course I was calling you Brian so who knows what I was really thinking. <smile/>
On Fri, Dec 18, 2009 at 2:28 PM, Markus Gaugusch <w...@gaugusch.at> wrote: > Hi Rob, > > (You probably ment me, because I don't know who Brian is ;-) > I needed to set a property to the value of an environment variable because > I wanted to populate an input field with it. I didn't see any other > solution. > > Markus > > On Dec 17, Rob Mensching <r...@robmensching.com> wrote: > > > Brian, Why are you using a Property to set another Property? Why not just > > use [%MY_ENV_VAR] where you would use [MY_ENV_PROPERTY]? > > > > Bruce, > > > > 1. You can refer to the install location of a file in your MSI using the > > [!FileId] syntax. > > > > 2. Under ProgramFilesFolder is where you should install your applications > > files. Under CommonFilesFolder is where you should install files that are > > shared across your applications. Under system32 is right out. <smile/> > > > > On Tue, Dec 15, 2009 at 10:51 PM, Markus Gaugusch <w...@gaugusch.at> > wrote: > > > >> On Dec 15, Bruce Cran <br...@cran.org.uk> wrote: > >> > >>> I've written an installer with WiX 3.5 which installs a Winsock > >>> provider, netsh helper and a kernel driver. After doing some > >>> restructuring I started getting a warning about installing a > >>> non-permanant component into system32, so I'm now trying to change the > >>> installation location to be under %ProgramFiles%\Product . > >>> However, I need to create a registry entry which points to the new > >>> location so that netsh can find it, and it seems that netsh doesn't > >>> understand REG_EXPAND_SZ types. Is there a way to write a string to a > >>> REG_SZ type during installation which already has the > >>> environment variables expanded, or would I need to write a custom > >>> action? > >> > >> Hi Bruce, > >> I did this the following (hopefully correct) way: > >> > >> <InstallUISequence> > >> <Custom Action="GetMyEnvVar" Before="LaunchConditions"/> > >> </InstallUISequence> > >> > >> <CustomAction Id="SetSystemMaxRam" Property="MY_ENV_PROPERTY" > >> Value="[%MY_ENV_VAR]" /> > >> You can use [MY_ENV_PROPERTY] to write the correct registry string. > >> > >> regards, > >> Markus > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.Net email is sponsored by the Verizon Developer Community > >> Take advantage of Verizon's best-in-class app development support > >> A streamlined, 14 day to market process makes app distribution fast and > >> easy > >> Join now and get one step closer to millions of Verizon customers > >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ > >> WiX-users mailing list > >> WiX-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wix-users > >> > >> > > > > > > > > -- > __________________ /"\ > Markus Gaugusch \ / ASCII Ribbon Campaign > markus(at)gaugusch.at X Against HTML Mail > / \ > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users