Bug 248044. Fix login capture on 64 bit windows.

This commit is contained in:
Jim Norman 2007-04-05 19:31:28 +00:00
parent 960af8b1d5
commit 5b7948b5d2
2 changed files with 11 additions and 0 deletions

View File

@ -946,6 +946,8 @@ namespace sscs.cache
#else #else
string sNewPath = GetUserHomeDirectory() + "\\CASA"; string sNewPath = GetUserHomeDirectory() + "\\CASA";
System.Diagnostics.Trace.WriteLine("Migrate files to " + sNewPath);
if (!Directory.Exists(sNewPath)) if (!Directory.Exists(sNewPath))
{ {
Directory.CreateDirectory(sNewPath); Directory.CreateDirectory(sNewPath);

View File

@ -117,6 +117,15 @@ namespace sscs.init
private static string GetCredMgrPath() private static string GetCredMgrPath()
{ {
string sPath = Environment.GetEnvironmentVariable("ProgramFiles"); string sPath = Environment.GetEnvironmentVariable("ProgramFiles");
// are we on x64?
if (sPath.IndexOf("x86") > 0)
{
sPath = Environment.GetEnvironmentVariable("SystemDrive") + "\\Program Files";
}
System.Diagnostics.Trace.WriteLine("System Path is " + sPath);
if (sPath != null) if (sPath != null)
{ {
// look for regsvr32.exe // look for regsvr32.exe