Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
xupefei committed Jul 28, 2015
1 parent 2870006 commit c4b87bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 37 deletions.
7 changes: 3 additions & 4 deletions LEInstaller/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 1 addition & 15 deletions LEInstaller/Form1.cs
Expand Up @@ -267,14 +267,7 @@ private static bool Is64BitOS()
return ((DoesWin32MethodExist("kernel32.dll", "IsWow64Process") &&
IsWow64Process(GetCurrentProcess(), out flag)) && flag);
}

private static bool IsInstalled()
{
return
File.Exists(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"LECommonLibrary.dll"));
}


private static bool DoesWin32MethodExist(string moduleName, string methodName)
{
var moduleHandle = GetModuleHandle(moduleName);
Expand Down Expand Up @@ -309,13 +302,6 @@ private void Form1_Load(object sender, EventArgs e)

Environment.Exit(0);
}

Text += @" - Version " + GetLEVersion();

if (IsInstalled())
{
buttonInstall.Text = "Upgrade";
}
}
}
}
18 changes: 1 addition & 17 deletions LEProc/LERegistry.xml
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<LERegistry>
<Entries Version="00000000">
<Entry Root="HKEY_LOCAL_MACHINE" Key="System\CurrentControlSet\Control\Nls\CodePage" Name="ACP" Type="REG_SZ">
Expand All @@ -11,23 +10,8 @@
<Entry Root="HKEY_LOCAL_MACHINE" Key="System\CurrentControlSet\Control\Nls\Language" Name="Default" Type="REG_SZ">
<Data>1041</Data>
</Entry>
<Entry Root="HKEY_LOCAL_MACHINE" Key="System\CurrentControlSet\Control\Nls\Language" Name="InstallLanguage"
Type="REG_SZ">
<Entry Root="HKEY_LOCAL_MACHINE" Key="System\CurrentControlSet\Control\Nls\Language" Name="InstallLanguage" Type="REG_SZ">
<Data>1041</Data>
</Entry>
<!--
<Entry Root="HKEY_CURRENT_USER" Key="Control Panel\Desktop" Name="PreferredUILanguages" Type="REG_MULTI_SZ">
<Data>ja-JP[0x00]</Data>
</Entry>
<Entry Root="HKEY_CURRENT_USER" Key="Control Panel\Desktop\MuiCached" Name="MachinePreferredUILanguages" Type="REG_MULTI_SZ">
<Data>ja-JP[0x00]</Data>
</Entry>
-->
<Entry Root="HKEY_CURRENT_USER" Key="Control Panel\International" Name="LocaleName" Type="REG_SZ">
<Data>ja-JP</Data>
</Entry>
<Entry Root="HKEY_CURRENT_USER" Key="Control Panel\International" Name="Locale" Type="REG_SZ">
<Data>00000411</Data>
</Entry>
</Entries>
</LERegistry>
2 changes: 1 addition & 1 deletion LEProc/LEVersion.xml
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>

<LEVersion Version="1.4.1.2" Date="20150321" />
<LEVersion Version="2.0.0.0" Date="20150728" />

0 comments on commit c4b87bf

Please sign in to comment.