v1.3
This commit is contained in:
parent
da15f468e2
commit
13b3c02549
2
Form1.cs
2
Form1.cs
|
|
@ -16,7 +16,7 @@ namespace ARCHBLOXLauncher_XP
|
||||||
WshShell shell = new WshShell();
|
WshShell shell = new WshShell();
|
||||||
string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\ARCHBLOX Launcher.lnk";
|
string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\ARCHBLOX Launcher.lnk";
|
||||||
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress);
|
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress);
|
||||||
shortcut.Description = "The launcher for ARCHBLOX Player.";
|
shortcut.Description = "ARCHBLOX Player";
|
||||||
shortcut.TargetPath = ARCHBLOXLauncher_XP.Extensions.GetExecutablePath();
|
shortcut.TargetPath = ARCHBLOXLauncher_XP.Extensions.GetExecutablePath();
|
||||||
shortcut.Save();
|
shortcut.Save();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
6
Form2.cs
6
Form2.cs
|
|
@ -112,7 +112,7 @@ namespace ARCHBLOXLauncher_XP
|
||||||
string filePath = Path.Combine(Path.GetTempPath(), version_string + ".zip");
|
string filePath = Path.Combine(Path.GetTempPath(), version_string + ".zip");
|
||||||
Extensions.UnZip(filePath, clientPath);
|
Extensions.UnZip(filePath, clientPath);
|
||||||
File.Delete(filePath);
|
File.Delete(filePath);
|
||||||
label1.Text = "Installing URi...";
|
label1.Text = "Installing URI...";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ARCHBLOXProtocol.ARCHBLOXURIProtocol.Register();
|
ARCHBLOXProtocol.ARCHBLOXURIProtocol.Register();
|
||||||
|
|
@ -124,7 +124,7 @@ namespace ARCHBLOXLauncher_XP
|
||||||
label1.Text = "ARCHBLOX has been installed!";
|
label1.Text = "ARCHBLOX has been installed!";
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
label1.Text = "ARCHBLOX installed without URI.";
|
label1.Text = "Failed to install URI.";
|
||||||
}
|
}
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
this.Hide();
|
this.Hide();
|
||||||
|
|
@ -139,7 +139,7 @@ namespace ARCHBLOXLauncher_XP
|
||||||
double receive = double.Parse(e.BytesReceived.ToString());
|
double receive = double.Parse(e.BytesReceived.ToString());
|
||||||
double total = double.Parse(e.TotalBytesToReceive.ToString());
|
double total = double.Parse(e.TotalBytesToReceive.ToString());
|
||||||
double percentage = receive / total * 100;
|
double percentage = receive / total * 100;
|
||||||
label1.Text = "Installing ARCHBLOX... (" + Math.Truncate(percentage).ToString() + "% Completed)";
|
label1.Text = "Installing ARCHBLOX... (" + Math.Truncate(percentage).ToString() + "%)";
|
||||||
progressBar1.Value = int.Parse(Math.Truncate(percentage).ToString());
|
progressBar1.Value = int.Parse(Math.Truncate(percentage).ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue