Creating and Setting Environment Variables during Installation
Hi,
I want to create and set environment variables during the installation of an application that is written in VB.NET using VS2003. (using the standard installer)
I need to create 4 of these variables that appear in the system variables list of windows. Does somebody out there have some sample code that will show me how I can achieve this?
Any help would be greatly appreciated.
Regards,
Matt
One option is to set them through the registry key: HKEY_LOCAL_Machine\System\CurrentControlSet\Control\Session Manager\Environment.
Use the installer project's Registry editor (in VS.NET IDE) for this.
HTH.
Hi,
I have the same issue here too. But, I would like the system variables to be dynamic. i.e. I want to create an environment variable that is the value of the installation directory (which will depends on the user's input).
Anyone can help me out here?
Thanks!
Jfk at 2008-1-30 >
