From b41e52a657aa47dbb485a87a79c7518e49a19622 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Fri, 16 Aug 2019 17:05:58 +0300 Subject: [PATCH] Refine install instructions --- LEInstaller/Form1.Designer.cs | 75 +++++++++++++++++++++++------------ LEInstaller/Form1.cs | 13 +++++- LEInstaller/Form1.resx | 13 +++--- 3 files changed, 66 insertions(+), 35 deletions(-) diff --git a/LEInstaller/Form1.Designer.cs b/LEInstaller/Form1.Designer.cs index 5d8013f..f8ede61 100644 --- a/LEInstaller/Form1.Designer.cs +++ b/LEInstaller/Form1.Designer.cs @@ -37,16 +37,19 @@ this.groupBox2 = new System.Windows.Forms.GroupBox(); this.buttonInstallAllUsers = new System.Windows.Forms.Button(); this.buttonEditGlobal = new System.Windows.Forms.Button(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); this.SuspendLayout(); // // buttonInstall // this.buttonInstall.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.buttonInstall.Location = new System.Drawing.Point(15, 17); + this.buttonInstall.Location = new System.Drawing.Point(30, 33); + this.buttonInstall.Margin = new System.Windows.Forms.Padding(6); this.buttonInstall.Name = "buttonInstall"; - this.buttonInstall.Size = new System.Drawing.Size(164, 25); + this.buttonInstall.Size = new System.Drawing.Size(328, 48); this.buttonInstall.TabIndex = 0; this.buttonInstall.Text = "Install for current user"; this.buttonInstall.UseVisualStyleBackColor = true; @@ -55,9 +58,10 @@ // buttonUninstall // this.buttonUninstall.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.buttonUninstall.Location = new System.Drawing.Point(186, 17); + this.buttonUninstall.Location = new System.Drawing.Point(372, 33); + this.buttonUninstall.Margin = new System.Windows.Forms.Padding(6); this.buttonUninstall.Name = "buttonUninstall"; - this.buttonUninstall.Size = new System.Drawing.Size(164, 25); + this.buttonUninstall.Size = new System.Drawing.Size(328, 48); this.buttonUninstall.TabIndex = 1; this.buttonUninstall.Text = "Uninstall for current user"; this.buttonUninstall.UseVisualStyleBackColor = true; @@ -66,9 +70,10 @@ // buttonUninstallAllUsers // this.buttonUninstallAllUsers.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.buttonUninstallAllUsers.Location = new System.Drawing.Point(186, 17); + this.buttonUninstallAllUsers.Location = new System.Drawing.Point(372, 33); + this.buttonUninstallAllUsers.Margin = new System.Windows.Forms.Padding(6); this.buttonUninstallAllUsers.Name = "buttonUninstallAllUsers"; - this.buttonUninstallAllUsers.Size = new System.Drawing.Size(164, 25); + this.buttonUninstallAllUsers.Size = new System.Drawing.Size(328, 48); this.buttonUninstallAllUsers.TabIndex = 3; this.buttonUninstallAllUsers.Text = "Uninstall for all users"; this.buttonUninstallAllUsers.UseVisualStyleBackColor = true; @@ -77,10 +82,10 @@ // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.label1.Location = new System.Drawing.Point(8, 12); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Location = new System.Drawing.Point(16, 23); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(363, 125); + this.label1.Size = new System.Drawing.Size(726, 231); this.label1.TabIndex = 4; this.label1.Text = resources.GetString("label1.Text"); // @@ -89,35 +94,36 @@ this.groupBox1.Controls.Add(this.buttonInstall); this.groupBox1.Controls.Add(this.buttonUninstall); this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.groupBox1.Location = new System.Drawing.Point(7, 139); - this.groupBox1.Margin = new System.Windows.Forms.Padding(2); + this.groupBox1.Location = new System.Drawing.Point(14, 271); + this.groupBox1.Margin = new System.Windows.Forms.Padding(4); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(2); - this.groupBox1.Size = new System.Drawing.Size(364, 52); + this.groupBox1.Padding = new System.Windows.Forms.Padding(4); + this.groupBox1.Size = new System.Drawing.Size(728, 100); this.groupBox1.TabIndex = 5; this.groupBox1.TabStop = false; - this.groupBox1.Text = "For current user"; + this.groupBox1.Text = "(1.1) Install for yourself"; // // groupBox2 // this.groupBox2.Controls.Add(this.buttonInstallAllUsers); this.groupBox2.Controls.Add(this.buttonUninstallAllUsers); this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.groupBox2.Location = new System.Drawing.Point(7, 204); - this.groupBox2.Margin = new System.Windows.Forms.Padding(2); + this.groupBox2.Location = new System.Drawing.Point(14, 376); + this.groupBox2.Margin = new System.Windows.Forms.Padding(4); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(2); - this.groupBox2.Size = new System.Drawing.Size(364, 52); + this.groupBox2.Padding = new System.Windows.Forms.Padding(4); + this.groupBox2.Size = new System.Drawing.Size(728, 100); this.groupBox2.TabIndex = 6; this.groupBox2.TabStop = false; - this.groupBox2.Text = "For all users (requires admin)"; + this.groupBox2.Text = "(1.2) ... or install for all users on this PC (requires admin)"; // // buttonInstallAllUsers // this.buttonInstallAllUsers.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.buttonInstallAllUsers.Location = new System.Drawing.Point(15, 17); + this.buttonInstallAllUsers.Location = new System.Drawing.Point(30, 33); + this.buttonInstallAllUsers.Margin = new System.Windows.Forms.Padding(6); this.buttonInstallAllUsers.Name = "buttonInstallAllUsers"; - this.buttonInstallAllUsers.Size = new System.Drawing.Size(164, 25); + this.buttonInstallAllUsers.Size = new System.Drawing.Size(328, 48); this.buttonInstallAllUsers.TabIndex = 2; this.buttonInstallAllUsers.Text = "Install for all users"; this.buttonInstallAllUsers.UseVisualStyleBackColor = true; @@ -127,25 +133,40 @@ // this.buttonEditGlobal.Enabled = false; this.buttonEditGlobal.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); - this.buttonEditGlobal.Location = new System.Drawing.Point(22, 261); + this.buttonEditGlobal.Location = new System.Drawing.Point(31, 34); + this.buttonEditGlobal.Margin = new System.Windows.Forms.Padding(6); this.buttonEditGlobal.Name = "buttonEditGlobal"; - this.buttonEditGlobal.Size = new System.Drawing.Size(335, 25); + this.buttonEditGlobal.Size = new System.Drawing.Size(670, 48); this.buttonEditGlobal.TabIndex = 4; this.buttonEditGlobal.Text = "Edit global profile list"; this.buttonEditGlobal.UseVisualStyleBackColor = true; this.buttonEditGlobal.Click += new System.EventHandler(this.buttonEditGlobal_Click); // + // groupBox3 + // + this.groupBox3.Controls.Add(this.buttonEditGlobal); + this.groupBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F); + this.groupBox3.Location = new System.Drawing.Point(14, 484); + this.groupBox3.Margin = new System.Windows.Forms.Padding(4); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Padding = new System.Windows.Forms.Padding(4); + this.groupBox3.Size = new System.Drawing.Size(728, 100); + this.groupBox3.TabIndex = 7; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "(2) Customise your profiles"; + // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Window; - this.ClientSize = new System.Drawing.Size(376, 291); - this.Controls.Add(this.buttonEditGlobal); + this.ClientSize = new System.Drawing.Size(752, 602); + this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(6); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; @@ -155,6 +176,7 @@ this.Load += new System.EventHandler(this.Form1_Load); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); this.ResumeLayout(false); } @@ -169,6 +191,7 @@ private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.Button buttonInstallAllUsers; private System.Windows.Forms.Button buttonEditGlobal; + private System.Windows.Forms.GroupBox groupBox3; } } diff --git a/LEInstaller/Form1.cs b/LEInstaller/Form1.cs index f121fd0..e49c64c 100644 --- a/LEInstaller/Form1.cs +++ b/LEInstaller/Form1.cs @@ -177,7 +177,9 @@ namespace LEInstaller NotifyShell(); - MessageBox.Show(this, "Uninstall finished. Thanks for using Locale Emulator :)", + MessageBox.Show(this, "Uninstall finished. Thanks for using Locale Emulator :)\r\n" + + "\r\n" + + "PS: A reboot is required to unlock some components.", "LE Context Menu Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); @@ -203,7 +205,9 @@ namespace LEInstaller NotifyShell(); - MessageBox.Show(this, "Uninstall finished. Thanks for using Locale Emulator :)", + MessageBox.Show(this, "Uninstall finished. Thanks for using Locale Emulator :)\r\n" + + "\r\n" + + "PS: A reboot is required to unlock some components.", "LE Context Menu Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); @@ -437,5 +441,10 @@ namespace LEInstaller [DllImport("user32.dll")] private static extern bool SetProcessDPIAware(); + + private void ButtonExtract_Click(object sender, EventArgs e) + { + + } } } \ No newline at end of file diff --git a/LEInstaller/Form1.resx b/LEInstaller/Form1.resx index 9f8e5bb..b7a828c 100644 --- a/LEInstaller/Form1.resx +++ b/LEInstaller/Form1.resx @@ -118,12 +118,11 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Welcome to Locale Emulator. - -Begin by selecting either installation mode below. - * For current user: Register context menu for current user only. - * For all users: Register context menu for all users on this PC. This installation requires administrator privilege. - -Afterwards, edit the languages and timezones available and advanced settings by using the global profile list. + Welcome to Locale Emulator! +If you want to use LE without installation (i.e., portable application), you can close the window now. +Otherwise, please follow the steps below to install LE: + 1. Install Locale Emulator (1.1) for yourself or (1.2) for all users on this PC (requires admin rights). + 2. Run LEGUI.exe to customise the profile list; + 3. Right-click on any application and you will see the Locale Emulator items. Enjoy! \ No newline at end of file