Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retrieve Mozc's installation dir from registry
This is a preparation to switch Mozc's installation directory from %ProgramFiles(x86)%\Mozc into %ProgramFiles%\Mozc without user observable downtime (google#1086). Currently the directory %ProgramFiles(x86)%\Mozc is effectively hard coded in 'mozc_tip{32,64}.dll'. This means if older versions of 'mozc_tip{32,64}.dll' continue assuming the previous installation directory until it is unloaded or the process is restarted. To avoid such mismatch, with this commit SystemUtil::GetServerDirectory() starts dynamically retrieving Mozc's installation directory from registry by checking COM entries of 'mozc_tip64.dll'. If it fails, we fall back to the previous behavior. Note that this is the first step of the migration and we cannot go to the next step until 'mozc_tip{32,64}.dll' with this commit is deployed to users.
- Loading branch information