From 6958c950223e1b1db9648f92a40fe7dd925ca466 Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 6 Jul 2017 00:28:38 -0400 Subject: New Installer for Win95 --- TimeHACK.Main/OS/Win95/Win95.cs | 4 +- .../OS/Win95/Win95Apps/Win95Installer.Designer.cs | 144 +++++++++++++++++++++ TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs | 29 +++++ .../OS/Win95/Win95Apps/Win95Installer.resx | 132 +++++++++++++++++++ TimeHACK.Main/OS/Win98/Win98.cs | 4 +- 5 files changed, 309 insertions(+), 4 deletions(-) create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.Designer.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs create mode 100644 TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.resx (limited to 'TimeHACK.Main/OS') 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 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 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. + + \ 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); -- cgit v1.2.3