Set registry value with environment string on x64
- From: "Dennis S" <dennissignh.noemail@xxxxxxxxx>
- Date: Sat, 30 Sep 2006 23:25:49 -0700
I am trying to set a value of a registry key on x64 which contains the
environment string. The value looks like:
%ProgramFiles%\CompanyName\ProgramName.exe
My program is a 32bit application, when the value is set, WOW64
automatically changes the value to:
%ProgramFiles(x86)%\CompanyName\ProgramName.exe
I understand why WOW64 append (x86) to the string, but is there anyway to
disable the change? I want to do that because what I really want to write is
the original one and it should point to the 64 bit program files directory.
I am using RegSetValueEx and specify REG_EXPAND_SZ as type.
I tried disable the file system redirector and it has no effect with the
string written in registry.
Regards,
Dennis S
.
- Follow-Ups:
- Re: Set registry value with environment string on x64
- From: Jochen Kalmbach [MVP]
- Re: Set registry value with environment string on x64
- Prev by Date: Re: mutex overkill ?
- Next by Date: Re: Vista's OV header
- Previous by thread: Re: increase buffer size for RegQueryValueEx
- Next by thread: Re: Set registry value with environment string on x64
- Index(es):
Relevant Pages
|