new installer prototype

This commit is contained in:
lempamo 2017-09-22 21:18:09 -04:00
parent 2968c39415
commit bd74f334cf
27 changed files with 672 additions and 75 deletions

View file

@ -171,13 +171,13 @@ public static void CheckFiles()
SaveDirectoryInfo(ProfileMyComputerDirectory, "Program Files", true, "Program Files", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "Accessories", false, "Accessories", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "Internet Explorer", true, "Internet Explorer", true);
SaveDirectoryInfo(ProfileProgramsDirectory, "The Microsoft Network", true, "The Microsoft Network", true);
if (CurrentSave.CurrentOS == "95") SaveDirectoryInfo(ProfileProgramsDirectory, "The Microsoft Network", true, "The Microsoft Network", true);
SaveDirectoryInfo(ProfileMyComputerDirectory, "Windows", true, "Windows", true);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Accessories"), "wordpad.exe", "wordpad", 16, 183296);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Internet Explorer"), "ie20.exe", "ie", 8, 512);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Internet Explorer"), "lnfinst.exe", "iebrokeninstaller", 8, 512);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), "msnver.txt", "5900", 12, 4);
if (CurrentSave.CurrentOS == "95") CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), "msnver.txt", "5900", 12, 4);
CreateWindowsDirectory();
}
@ -322,7 +322,7 @@ public static void RenameFile(string path, string filename, string newname)
public static void UpgradeFileSystem(string newOS)
{
if (newOS == "98" || newOS == "2000" || newOS == "ME")
if (newOS == "98")
{
// We are upgrading from the old WinClassic file System to the new WinClassic filesystem!
// All the above OSes share basically the same file layout!
@ -336,10 +336,11 @@ public static void UpgradeFileSystem(string newOS)
// There is no "The Microsoft Network" folder!
if (Directory.Exists(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"))) Directory.Delete(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), true);
if (Directory.Exists(Path.Combine(ProfileProgramsDirectory, "12padams"))) Directory.Delete(Path.Combine(ProfileProgramsDirectory, "12padams"), true);
FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(ProfileProgramsDirectory, "_data.info")));
foreach (THDirInfo dir in fsfi.SubDirs)
{
if (dir.Name == "The Microsoft Network")
if (dir.Name == "The Microsoft Network" || dir.Name == "12padams")
{
fsfi.SubDirs.Remove(dir);
break;

View file

@ -45,6 +45,7 @@ private void InitializeComponent()
this.bottom = new System.Windows.Forms.Panel();
this.right = new System.Windows.Forms.Panel();
this.top = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.program.SuspendLayout();
this.programtopbar.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit();
@ -57,6 +58,7 @@ private void InitializeComponent()
//
this.program.BackColor = System.Drawing.Color.Silver;
this.program.Controls.Add(this.programContent);
this.program.Controls.Add(this.panel1);
this.program.Controls.Add(this.programtopbar);
this.program.Controls.Add(this.toprightcorner);
this.program.Controls.Add(this.bottomrightcorner);
@ -75,9 +77,9 @@ private void InitializeComponent()
// programContent
//
this.programContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.programContent.Location = new System.Drawing.Point(4, 22);
this.programContent.Location = new System.Drawing.Point(4, 23);
this.programContent.Name = "programContent";
this.programContent.Size = new System.Drawing.Size(292, 274);
this.programContent.Size = new System.Drawing.Size(292, 273);
this.programContent.TabIndex = 9;
this.programContent.ControlAdded += new System.Windows.Forms.ControlEventHandler(this.programContent_ControlAdded);
//
@ -265,6 +267,14 @@ private void InitializeComponent()
this.top.MouseMove += new System.Windows.Forms.MouseEventHandler(this.top_MouseMove);
this.top.MouseUp += new System.Windows.Forms.MouseEventHandler(this.border_MouseUp);
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(4, 22);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(292, 1);
this.panel1.TabIndex = 0;
//
// WinClassic
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -307,5 +317,6 @@ private void InitializeComponent()
public System.Windows.Forms.PictureBox maximizebutton;
public System.Windows.Forms.PictureBox minimizebutton;
public System.Windows.Forms.PictureBox programIcon;
private System.Windows.Forms.Panel panel1;
}
}

View file

@ -0,0 +1,107 @@
namespace Histacom2.GlobalPrograms.InstallerPanes
{
partial class WelcomePane
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel3 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel4 = new Histacom2.Engine.UI.ClassicLabel();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.BackgroundImage = global::Histacom2.Properties.Resources.WinClassicInstallSidebar;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(164, 314);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// classicLabel1
//
this.classicLabel1.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.classicLabel1.Location = new System.Drawing.Point(177, 19);
this.classicLabel1.Name = "classicLabel1";
this.classicLabel1.Size = new System.Drawing.Size(311, 40);
this.classicLabel1.TabIndex = 1;
this.classicLabel1.Text = "Welcome to the Program Setup Wizard";
//
// classicLabel2
//
this.classicLabel2.Location = new System.Drawing.Point(177, 72);
this.classicLabel2.Name = "classicLabel2";
this.classicLabel2.Size = new System.Drawing.Size(311, 13);
this.classicLabel2.TabIndex = 2;
this.classicLabel2.Text = "This will install Program on your computer.";
//
// classicLabel3
//
this.classicLabel3.Location = new System.Drawing.Point(177, 98);
this.classicLabel3.Name = "classicLabel3";
this.classicLabel3.Size = new System.Drawing.Size(311, 26);
this.classicLabel3.TabIndex = 3;
this.classicLabel3.Text = "It is recommended that you close all other applications before continuing.";
//
// classicLabel4
//
this.classicLabel4.Location = new System.Drawing.Point(177, 137);
this.classicLabel4.Name = "classicLabel4";
this.classicLabel4.Size = new System.Drawing.Size(311, 13);
this.classicLabel4.TabIndex = 4;
this.classicLabel4.Text = "Click Next to continue, or Cancel to exit Setup.";
//
// WelcomePane
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.classicLabel4);
this.Controls.Add(this.classicLabel3);
this.Controls.Add(this.classicLabel2);
this.Controls.Add(this.classicLabel1);
this.Controls.Add(this.pictureBox1);
this.Name = "WelcomePane";
this.Size = new System.Drawing.Size(495, 314);
this.Load += new System.EventHandler(this.WelcomePane_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private Engine.UI.ClassicLabel classicLabel1;
private Engine.UI.ClassicLabel classicLabel2;
private Engine.UI.ClassicLabel classicLabel3;
private Engine.UI.ClassicLabel classicLabel4;
}
}

View file

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.GlobalPrograms.InstallerPanes
{
public partial class WelcomePane : UserControl
{
public WelcomePane()
{
InitializeComponent();
}
private void WelcomePane_Load(object sender, EventArgs e)
{
classicLabel1.Text = $"Welcome to the {((WinClassicInstaller)Parent.Parent).progName} Setup Wizard";
classicLabel2.Text = $"This will install {((WinClassicInstaller)Parent.Parent).progName} on your computer.";
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -1,4 +1,4 @@
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
partial class WinClassicCalculator
{

View file

@ -9,7 +9,7 @@
using System.Windows.Forms;
using Histacom2.Engine;
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
public partial class WinClassicCalculator : UserControl
{

View file

@ -1,4 +1,4 @@
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
partial class WinClassicDownloader
{

View file

@ -3,7 +3,7 @@
using System.Windows.Forms;
using static Histacom2.Engine.SaveSystem;
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
public partial class WinClassicDownloader : UserControl
{
@ -55,16 +55,11 @@ private void dlTimer_Tick(object sender, EventArgs e)
case "Downloading: Start Runner 95":
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Start Runner Setup.exe", "sr95 setup", 11, 34846);
break;
case "Downloading: Web Chat 1999":
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Web Chat Setup.exe", "web chat 99 setup", 11, 37048);
break;
}
/* if (appName.Text == "Downloading: Start Runner")
{
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner");
}
if (appName.Text == "Downloading: Error Blaster")
{
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Error Blaster Setup.exe"), "ErrorBlaster");
}
if (appName.Text == "Downloading: Skindows 95")
/* if (appName.Text == "Downloading: Skindows 95")
{
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Skindows 95 Setup.exe"), "Skindows95Setup");
} */

View file

@ -0,0 +1,110 @@
namespace Histacom2.GlobalPrograms
{
partial class WinClassicInstaller
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.classicButton1 = new Histacom2.Engine.UI.ClassicButton();
this.classicButton2 = new Histacom2.Engine.UI.ClassicButton();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(495, 314);
this.panel1.TabIndex = 0;
//
// pictureBox1
//
this.pictureBox1.BackgroundImage = global::Histacom2.Properties.Resources.ie4_hsplitter;
this.pictureBox1.Location = new System.Drawing.Point(0, 314);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(495, 2);
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// classicButton1
//
this.classicButton1.AdaptBackColorWithTheme = true;
this.classicButton1.AdaptFontWithTheme = true;
this.classicButton1.AdaptForeColorWithTheme = true;
this.classicButton1.BackColor = System.Drawing.Color.Silver;
this.classicButton1.DialogResult = System.Windows.Forms.DialogResult.None;
this.classicButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.classicButton1.ForeColor = System.Drawing.Color.Black;
this.classicButton1.Location = new System.Drawing.Point(408, 326);
this.classicButton1.Name = "classicButton1";
this.classicButton1.Size = new System.Drawing.Size(75, 23);
this.classicButton1.TabIndex = 2;
this.classicButton1.Text = "Cancel";
//
// classicButton2
//
this.classicButton2.AdaptBackColorWithTheme = true;
this.classicButton2.AdaptFontWithTheme = true;
this.classicButton2.AdaptForeColorWithTheme = true;
this.classicButton2.BackColor = System.Drawing.Color.Silver;
this.classicButton2.DialogResult = System.Windows.Forms.DialogResult.None;
this.classicButton2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.classicButton2.ForeColor = System.Drawing.Color.Black;
this.classicButton2.Location = new System.Drawing.Point(323, 326);
this.classicButton2.Name = "classicButton2";
this.classicButton2.Size = new System.Drawing.Size(75, 23);
this.classicButton2.TabIndex = 3;
this.classicButton2.Text = "&Next >";
//
// WinClassicInstaller
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Silver;
this.Controls.Add(this.classicButton2);
this.Controls.Add(this.classicButton1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.panel1);
this.MaximumSize = new System.Drawing.Size(495, 358);
this.MinimumSize = new System.Drawing.Size(495, 358);
this.Name = "WinClassicInstaller";
this.Size = new System.Drawing.Size(495, 358);
this.Load += new System.EventHandler(this.WinClassicInstaller_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PictureBox pictureBox1;
private Engine.UI.ClassicButton classicButton1;
private Engine.UI.ClassicButton classicButton2;
}
}

View file

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.GlobalPrograms
{
public partial class WinClassicInstaller : UserControl
{
public string progName;
public int state = 0;
public WinClassicInstaller(string prog)
{
InitializeComponent();
progName = prog;
}
private void WinClassicInstaller_Load(object sender, EventArgs e)
{
var welkom = new InstallerPanes.WelcomePane();
welkom.Parent = panel1;
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -1,6 +1,6 @@
using System;
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
partial class WinClassicNotepad
{

View file

@ -11,7 +11,7 @@
using static Histacom2.Engine.FileDialogBoxManager;
using System.IO;
namespace Histacom2.OS.Win95.Win95Apps
namespace Histacom2.GlobalPrograms
{
public partial class WinClassicNotepad : UserControl
{

View file

@ -132,6 +132,18 @@
<Compile Include="AchievementBox.Designer.cs">
<DependentUpon>AchievementBox.cs</DependentUpon>
</Compile>
<Compile Include="GlobalPrograms\InstallerPanes\WelcomePane.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="GlobalPrograms\InstallerPanes\WelcomePane.Designer.cs">
<DependentUpon>WelcomePane.cs</DependentUpon>
</Compile>
<Compile Include="GlobalPrograms\WinClassicInstaller.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="GlobalPrograms\WinClassicInstaller.Designer.cs">
<DependentUpon>WinClassicInstaller.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win2K\Win2KApps\SurviveTheDay.cs">
<SubType>UserControl</SubType>
</Compile>
@ -401,6 +413,12 @@
<EmbeddedResource Include="AchievementBox.resx">
<DependentUpon>AchievementBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GlobalPrograms\InstallerPanes\WelcomePane.resx">
<DependentUpon>WelcomePane.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GlobalPrograms\WinClassicInstaller.resx">
<DependentUpon>WinClassicInstaller.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win2K\Win2KApps\SurviveTheDay.resx">
<DependentUpon>SurviveTheDay.cs</DependentUpon>
</EmbeddedResource>
@ -765,6 +783,7 @@
<Content Include="Resources\WinClassic\WinClassicInbox.png" />
<None Include="Resources\WinClassic\WinClassicInstallPic.png" />
<None Include="Resources\WinClassic\WinClassicMinesweeper.png" />
<None Include="Resources\WinClassic\WinClassicInstallSidebar.png" />
<Content Include="Resources\WinClassic\WinClassicMSN.png" />
<Content Include="Resources\WinClassic\WinClassicNetworking.png" />
<None Include="Resources\WinClassic\WinClassicNotepad.png" />

View file

@ -12,6 +12,7 @@
using static Histacom2.Engine.SaveSystem;
using Histacom2.OS.Win95.Win95Apps._12padamViruses;
using Histacom2.OS.Win95.Win95Apps._12padamsViruses;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win95
{

View file

@ -9,6 +9,7 @@
using System.Windows.Forms;
using Histacom2.Engine;
using System.Threading;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{

View file

@ -41,14 +41,14 @@ private void InitializeComponent()
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.label6 = new System.Windows.Forms.Label();
this.progressBar1 = new Histacom2.Engine.UI.ProgressBar();
this.panel4 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.progressBar1 = new Histacom2.Engine.UI.ProgressBar();
((System.ComponentModel.ISupportInitialize)(this.installPic)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
@ -184,14 +184,14 @@ private void InitializeComponent()
this.panel2.TabIndex = 11;
this.panel2.Visible = false;
//
// label3
// label5
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(-3, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(268, 13);
this.label3.TabIndex = 0;
this.label3.Text = "Setup will install GenericName in the following directory:";
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(-3, 28);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(178, 13);
this.label5.TabIndex = 2;
this.label5.Text = "To install in this directory, click Next.";
//
// label4
//
@ -202,14 +202,14 @@ private void InitializeComponent()
this.label4.TabIndex = 1;
this.label4.Text = "C:\\Program Files\\12padams\\GenericName\\";
//
// label5
// label3
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(-3, 28);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(178, 13);
this.label5.TabIndex = 2;
this.label5.Text = "To install in this directory, click Next.";
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(-3, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(268, 13);
this.label3.TabIndex = 0;
this.label3.Text = "Setup will install GenericName in the following directory:";
//
// panel3
//
@ -230,6 +230,23 @@ private void InitializeComponent()
this.label6.TabIndex = 1;
this.label6.Text = "Installing...";
//
// progressBar1
//
this.progressBar1.BlockSpacing = 5;
this.progressBar1.BlockWidth = 20;
this.progressBar1.Location = new System.Drawing.Point(3, 115);
this.progressBar1.MarqueeWidth = 125;
this.progressBar1.Maximum = 100D;
this.progressBar1.Minimum = 0D;
this.progressBar1.Name = "progressBar1";
this.progressBar1.ProgressColor = System.Drawing.Color.Navy;
this.progressBar1.ShowText = false;
this.progressBar1.Size = new System.Drawing.Size(312, 28);
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Blocks;
this.progressBar1.TabIndex = 0;
this.progressBar1.Text = "progressBar1";
this.progressBar1.Value = 0D;
//
// panel4
//
this.panel4.Controls.Add(this.label7);
@ -248,23 +265,6 @@ private void InitializeComponent()
this.label7.TabIndex = 0;
this.label7.Text = "GenericName Setup has been completed.";
//
// progressBar1
//
this.progressBar1.BlockSpacing = 5;
this.progressBar1.BlockWidth = 20;
this.progressBar1.Location = new System.Drawing.Point(3, 115);
this.progressBar1.MarqueeWidth = 125;
this.progressBar1.Maximum = 100D;
this.progressBar1.Minimum = 0D;
this.progressBar1.Name = "progressBar1";
this.progressBar1.ProgressColor = System.Drawing.Color.Navy;
this.progressBar1.ShowText = false;
this.progressBar1.Size = new System.Drawing.Size(312, 28);
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Blocks;
this.progressBar1.TabIndex = 0;
this.progressBar1.Text = "progressBar1";
this.progressBar1.Value = 0D;
//
// Win95Installer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View file

@ -14,6 +14,7 @@
using Histacom2.Engine.Template;
using System.Diagnostics;
using Histacom2.OS.Win95.Win95Apps._12padamViruses;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win95.Win95Apps
{

View file

@ -8,6 +8,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
using Histacom2.Engine;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win95.Win95Apps
{

View file

@ -11,6 +11,7 @@
using Histacom2.OS.Win95.Win95Apps.Story;
using static Histacom2.Engine.SaveSystem;
using Histacom2.OS.Win98.Win98Apps;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win98
{
@ -232,7 +233,7 @@ private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
{
Win95Installer openinstaller = new Win95Installer("Testing");
WinClassicInstaller openinstaller = new WinClassicInstaller("Testing");
WinClassic app = wm.Init(openinstaller, "Installer", null, false, true);
AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);

View file

@ -58,6 +58,8 @@ private void InitializeComponent()
this.classicLabel13 = new Histacom2.Engine.UI.ClassicLabel();
this.classicButton6 = new Histacom2.Engine.UI.ClassicButton();
this.classicLabel14 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel15 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel16 = new Histacom2.Engine.UI.ClassicLabel();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
@ -99,7 +101,7 @@ private void InitializeComponent()
this.panel1.Controls.Add(this.classicLabel8);
this.panel1.Controls.Add(this.classicButton1);
this.panel1.Controls.Add(this.panel2);
this.panel1.Location = new System.Drawing.Point(104, 90);
this.panel1.Location = new System.Drawing.Point(104, 78);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(225, 209);
this.panel1.TabIndex = 2;
@ -126,6 +128,7 @@ private void InitializeComponent()
this.classicButton1.Size = new System.Drawing.Size(72, 23);
this.classicButton1.TabIndex = 1;
this.classicButton1.Text = "Download";
this.classicButton1.Click += new System.EventHandler(this.classicButton1_Click);
//
// panel2
//
@ -158,7 +161,7 @@ private void InitializeComponent()
this.panel3.Controls.Add(this.classicLabel13);
this.panel3.Controls.Add(this.classicButton6);
this.panel3.Controls.Add(this.panel4);
this.panel3.Location = new System.Drawing.Point(630, 90);
this.panel3.Location = new System.Drawing.Point(630, 78);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(225, 209);
this.panel3.TabIndex = 3;
@ -194,7 +197,7 @@ private void InitializeComponent()
this.panel5.Controls.Add(this.classicLabel10);
this.panel5.Controls.Add(this.classicButton3);
this.panel5.Controls.Add(this.panel6);
this.panel5.Location = new System.Drawing.Point(369, 90);
this.panel5.Location = new System.Drawing.Point(369, 78);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(225, 209);
this.panel5.TabIndex = 4;
@ -225,8 +228,9 @@ private void InitializeComponent()
this.panel7.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.panel7.BackColor = System.Drawing.Color.Lime;
this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel7.Controls.Add(this.classicLabel15);
this.panel7.Controls.Add(this.panel8);
this.panel7.Location = new System.Drawing.Point(104, 314);
this.panel7.Location = new System.Drawing.Point(104, 302);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(353, 135);
this.panel7.TabIndex = 5;
@ -257,8 +261,9 @@ private void InitializeComponent()
this.panel9.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.panel9.BackColor = System.Drawing.Color.Lime;
this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel9.Controls.Add(this.classicLabel16);
this.panel9.Controls.Add(this.panel10);
this.panel9.Location = new System.Drawing.Point(502, 314);
this.panel9.Location = new System.Drawing.Point(502, 302);
this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(353, 135);
this.panel9.TabIndex = 6;
@ -298,6 +303,7 @@ private void InitializeComponent()
this.classicButton2.Size = new System.Drawing.Size(72, 23);
this.classicButton2.TabIndex = 3;
this.classicButton2.Text = "Download";
this.classicButton2.Click += new System.EventHandler(this.classicButton2_Click);
//
// classicLabel9
//
@ -324,7 +330,7 @@ private void InitializeComponent()
//
// classicLabel10
//
this.classicLabel10.Location = new System.Drawing.Point(3, 49);
this.classicLabel10.Location = new System.Drawing.Point(4, 49);
this.classicLabel10.Name = "classicLabel10";
this.classicLabel10.Size = new System.Drawing.Size(107, 13);
this.classicLabel10.TabIndex = 5;
@ -347,7 +353,7 @@ private void InitializeComponent()
//
// classicLabel11
//
this.classicLabel11.Location = new System.Drawing.Point(3, 79);
this.classicLabel11.Location = new System.Drawing.Point(4, 79);
this.classicLabel11.Name = "classicLabel11";
this.classicLabel11.Size = new System.Drawing.Size(107, 13);
this.classicLabel11.TabIndex = 7;
@ -408,6 +414,28 @@ private void InitializeComponent()
this.classicLabel14.TabIndex = 7;
this.classicLabel14.Text = "© 12padams, 1999";
//
// classicLabel15
//
this.classicLabel15.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.classicLabel15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.classicLabel15.ForeColor = System.Drawing.Color.Navy;
this.classicLabel15.Location = new System.Drawing.Point(90, 44);
this.classicLabel15.Name = "classicLabel15";
this.classicLabel15.Size = new System.Drawing.Size(167, 13);
this.classicLabel15.TabIndex = 2;
this.classicLabel15.Text = "Y2K: A Global Computer Crisis";
//
// classicLabel16
//
this.classicLabel16.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.classicLabel16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.classicLabel16.ForeColor = System.Drawing.Color.Navy;
this.classicLabel16.Location = new System.Drawing.Point(122, 44);
this.classicLabel16.Name = "classicLabel16";
this.classicLabel16.Size = new System.Drawing.Size(109, 13);
this.classicLabel16.TabIndex = 3;
this.classicLabel16.Text = "Microsoft Windows";
//
// _12padams1999
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -469,5 +497,7 @@ private void InitializeComponent()
private Engine.UI.ClassicLabel classicLabel13;
private Engine.UI.ClassicButton classicButton6;
private Engine.UI.ClassicLabel classicLabel14;
private Engine.UI.ClassicLabel classicLabel15;
private Engine.UI.ClassicLabel classicLabel16;
}
}

View file

@ -7,6 +7,8 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Histacom2.Engine;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win98.Win98Apps.IE4Sites
{
@ -16,5 +18,19 @@ public _12padams1999()
{
InitializeComponent();
}
private void classicButton2_Click(object sender, EventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();
wm.Init(opendownload, "Downloader", null, false, true);
opendownload.appName.Text = "Downloading: Web Chat 1999";
opendownload.amountToDL = 37;
}
private void classicButton1_Click(object sender, EventArgs e)
{
}
}
}

View file

@ -13,6 +13,8 @@
using Newtonsoft.Json;
using System.Diagnostics;
using Histacom2.Engine.Template;
using Histacom2.OS.Win98.Win98Apps;
using Histacom2.GlobalPrograms;
namespace Histacom2.OS.Win95.Win95Apps
{
@ -304,30 +306,22 @@ void OpenApplication(string appname, string path)
break;
case "ie":
if (TitleScreen.frm95.ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
TitleScreen.frm95.ie = wm.Init(new WinClassicIE3(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
TitleScreen.frm95.ie = wm.Init(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
Program.AddTaskbarItem(TitleScreen.frm95.ie, TitleScreen.frm95.ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
TitleScreen.frm95.ie.BringToFront();
TitleScreen.frm95.ie.FormClosing += new FormClosingEventHandler(TitleScreen.frm95.InternetExplorer4_Closing);
break;
case "web chat setup":
Win95Installer inst = new Win95Installer("Web Chat 1998");
case "web chat 99 setup":
Win95Installer inst = new Win95Installer("Web Chat 1999");
inst.InstallCompleted += (sendr, args) => TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true;
WinClassic appInstaller = wm.Init(inst, "Web Chat Setup", null, true, true);
Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null);
appInstaller.BringToFront();
break;
case "ftp client setup":
Win95Installer instFtp = new Win95Installer("FTP Client");
instFtp.InstallCompleted += (sendr, args) => TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true;
WinClassic appFtp = wm.Init(instFtp, "FTP Client Setup", null, true, true);
Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null);
appFtp.BringToFront();
break;
case "time distorter setup":
Win95Installer instTd = new Win95Installer("Time Distorter 0.1");
Win95Installer instTd = new Win95Installer("Time Distorter 0.2");
instTd.InstallCompleted += (sendr, args) =>
{
TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true;

View file

@ -1954,4 +1954,7 @@
<data name="IE4Home_WinTechLogo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\IE4\IE4Home_WinTechLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="WinClassicInstallSidebar" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\WinClassicInstallSidebar.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View file

@ -1713,6 +1713,16 @@ public static System.Drawing.Bitmap WinClassicInstallPic {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap WinClassicInstallSidebar {
get {
object obj = ResourceManager.GetObject("WinClassicInstallSidebar", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB