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

Reply via email to