diff options
| author | lempamo <[email protected]> | 2017-07-06 00:28:38 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-06 00:28:38 -0400 |
| commit | 6958c950223e1b1db9648f92a40fe7dd925ca466 (patch) | |
| tree | 5bbfc78c2d6ed20dc87032522fe37c59976bc388 /TimeHACK.Main/OS | |
| parent | eb5b4265492b47bb477767cc524ff99401baaac9 (diff) | |
| download | histacom2-6958c950223e1b1db9648f92a40fe7dd925ca466.tar.gz histacom2-6958c950223e1b1db9648f92a40fe7dd925ca466.tar.bz2 histacom2-6958c950223e1b1db9648f92a40fe7dd925ca466.zip | |
New Installer for Win95
Diffstat (limited to 'TimeHACK.Main/OS')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 4 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.Designer.cs | 144 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs | 29 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.resx | 132 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win98/Win98.cs | 4 |
5 files changed, 309 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index c6db739..e6ea876 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -238,7 +238,7 @@ namespace TimeHACK.OS.Win95 private void installerTestToolStripMenuItem_Click(object sender, EventArgs e) { - WinClassicInstaller openinstaller = new WinClassicInstaller(); + Win95Installer openinstaller = new Win95Installer(); WinClassic app = wm.StartWin95(openinstaller, "Installer", null, false, true); AddTaskBarItem(app, app.Tag.ToString(), "Installer", null); @@ -278,7 +278,7 @@ namespace TimeHACK.OS.Win95 } else if (objListViewItem.Text == "Web Chat Setup") { - WinClassicInstaller inst = new WinClassicInstaller(); + Win95Installer inst = new Win95Installer(); inst.installname.Text = "Web Chat 1998"; WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.Designer.cs new file mode 100644 index 0000000..0bfab81 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.Designer.cs @@ -0,0 +1,144 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class Win95Installer + { + /// <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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Win95Installer)); + this.installPic = new System.Windows.Forms.PictureBox(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.label1 = new System.Windows.Forms.Label(); + this.installname = new System.Windows.Forms.Label(); + this.cancelbutton1 = new System.Windows.Forms.Button(); + this.nextbutton1 = new System.Windows.Forms.Button(); + this.backbutton1 = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.installPic)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // installPic + // + this.installPic.BackgroundImage = global::TimeHACK.Properties.Resources.WinClassicInstallPic; + this.installPic.Location = new System.Drawing.Point(18, 16); + this.installPic.Name = "installPic"; + this.installPic.Size = new System.Drawing.Size(120, 260); + this.installPic.TabIndex = 0; + this.installPic.TabStop = false; + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::TimeHACK.Properties.Resources.WinAboutSeparator95; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.pictureBox1.Location = new System.Drawing.Point(18, 292); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(450, 2); + this.pictureBox1.TabIndex = 1; + this.pictureBox1.TabStop = false; + // + // label1 + // + this.label1.Location = new System.Drawing.Point(147, 16); + this.label1.Margin = new System.Windows.Forms.Padding(0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(321, 260); + this.label1.TabIndex = 2; + this.label1.Text = resources.GetString("label1.Text"); + // + // installname + // + this.installname.AutoSize = true; + this.installname.Location = new System.Drawing.Point(18, 301); + this.installname.Name = "installname"; + this.installname.Size = new System.Drawing.Size(35, 13); + this.installname.TabIndex = 3; + this.installname.Text = "label2"; + this.installname.Visible = false; + // + // cancelbutton1 + // + this.cancelbutton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cancelbutton1.Location = new System.Drawing.Point(393, 301); + this.cancelbutton1.Name = "cancelbutton1"; + this.cancelbutton1.Size = new System.Drawing.Size(75, 23); + this.cancelbutton1.TabIndex = 4; + this.cancelbutton1.Text = "Cancel"; + this.cancelbutton1.UseVisualStyleBackColor = true; + // + // nextbutton1 + // + this.nextbutton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.nextbutton1.Location = new System.Drawing.Point(312, 301); + this.nextbutton1.Name = "nextbutton1"; + this.nextbutton1.Size = new System.Drawing.Size(75, 23); + this.nextbutton1.TabIndex = 5; + this.nextbutton1.Text = "Next"; + this.nextbutton1.UseVisualStyleBackColor = true; + // + // backbutton1 + // + this.backbutton1.Enabled = false; + this.backbutton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.backbutton1.Location = new System.Drawing.Point(241, 301); + this.backbutton1.Name = "backbutton1"; + this.backbutton1.Size = new System.Drawing.Size(75, 23); + this.backbutton1.TabIndex = 6; + this.backbutton1.Text = "Back"; + this.backbutton1.UseVisualStyleBackColor = true; + // + // Win95Installer + // + 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.backbutton1); + this.Controls.Add(this.nextbutton1); + this.Controls.Add(this.cancelbutton1); + this.Controls.Add(this.installname); + this.Controls.Add(this.label1); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.installPic); + this.Name = "Win95Installer"; + this.Size = new System.Drawing.Size(488, 340); + this.Load += new System.EventHandler(this.Win95Installer_Load); + ((System.ComponentModel.ISupportInitialize)(this.installPic)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox installPic; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.Label label1; + internal System.Windows.Forms.Label installname; + private System.Windows.Forms.Button cancelbutton1; + private System.Windows.Forms.Button nextbutton1; + private System.Windows.Forms.Button backbutton1; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs new file mode 100644 index 0000000..0ae74df --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs @@ -0,0 +1,29 @@ +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 TimeHACK.OS.Win95.Win95Apps +{ + public partial class Win95Installer : UserControl + { + public Win95Installer() + { + InitializeComponent(); + label1.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + cancelbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + nextbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + backbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + } + + private void Win95Installer_Load(object sender, EventArgs e) + { + label1.Text.Replace("GenericName", installname.Text); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.resx b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.resx new file mode 100644 index 0000000..3c5d753 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.resx @@ -0,0 +1,132 @@ +<?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> + <data name="label1.Text" xml:space="preserve"> + <value>Welcome to the GenericName Setup program. This program will install GenericName on your computer. + +It is strongly recommended that you exit all Windows programs before running this setup program. + +Click Cancel to quit Setup and then close any programs you have running. Click Next to continue with the Setup program. + + +WARNING: This program is protected by copyright law and international treaties. + +Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under law.</value> + </data> +</root>
\ No newline at end of file diff --git a/TimeHACK.Main/OS/Win98/Win98.cs b/TimeHACK.Main/OS/Win98/Win98.cs index b80d943..198108d 100644 --- a/TimeHACK.Main/OS/Win98/Win98.cs +++ b/TimeHACK.Main/OS/Win98/Win98.cs @@ -218,7 +218,7 @@ namespace TimeHACK.OS.Win98 private void installerTestToolStripMenuItem_Click(object sender, EventArgs e) { - WinClassicInstaller openinstaller = new WinClassicInstaller(); + Win95Installer openinstaller = new Win95Installer(); WinClassic app = wm.StartWin95(openinstaller, "Installer", null, false, true); AddTaskBarItem(app, app.Tag.ToString(), "Installer", null); @@ -258,7 +258,7 @@ namespace TimeHACK.OS.Win98 } else if (objListViewItem.Text == "Web Chat Setup") { - WinClassicInstaller inst = new WinClassicInstaller(); + Win95Installer inst = new Win95Installer(); inst.installname.Text = "Web Chat 1998"; WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null); |
