Look into the Environment element in the Wix help. -----Original Message----- From: Timothy Madden [mailto:terminato...@gmail.com] Sent: 23 October 2012 10:51 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Environment variables for local installs
Hello I have a script where I want to install a new file name extension (.exim) and add it to PATHEXT, so cmd.exe can launch files with that extension by their name only, as commands. I would also like to offer both "all users" and "current user" installation for my program. To my big surprise, on my Windows XP system, after I create the PATHEXT environment variable for the current user, with the contents: PATHEXT=.exim the user automatically loses the contents found in the system variable PATHEXT (which is usually .COM;.EXE;.BAT;.CMD, plus whatever other languages (perl, ruby) the user has installed). Is there a way for a local install (current-user only) to add the new extension only for the current user, but still use the variable value from the system variables ? Do other versions of Windows show this problem ? Can I use an REG_EXPAND_SZ value in the registry, like: %PATHEXT%;.exim in order to merge the PATHEXT variables from both (user and system) environments ? Can I find some WiX code that can do the following for user-only installations: - on install: - if the user-local variable PATHEXT does not exit, create it with the value: %PATHEXT%;.exim on install, - only add ";.exim" to the variable if the variable is already present and does not include ";.exim" - on uninstall - remove ".exim" from the value of the variable - if the remaining value of the variable is %PATHEXT% only, remove the variable Thank you, Timothy Madden ----------------------------------------------------------------------------- - Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users