🧺 MC Laundry Shop Application 🧼
This guide will help you install and run the application on your Windows machine.
Download Links
- Database Script: Database Script 📄
Installation Summary
Here's a quick overview of the steps you'll follow. Click on any step to jump to its detailed instructions:
- Step 1: Install .NET Framework 4.6.2 or Higher
- Step 2: Install MySQL Server 8.0.36 or Higher
- Step 3: Run the Database Script in MySQL
- Step 4: Extract mc-2016-csharp-winforms.rar
- Step 5: Edit the Connection String
- Step 6: Run the Application Installer
🛠️ Prerequisites
Before proceeding with the installation, ensure your system meets the following requirements:
- Operating System: Windows 7 or higher (Windows 10/11 recommended) 💻
- Internet Connection: Required for downloading prerequisites and application files. 🌐
🚀 Installation Guide
Please follow these steps in the specified order to successfully set up and run the MC Laundry Shop application:
Step 1: Install .NET Framework 4.6.2 or Higher
The MC Laundry Shop application is built using the .NET Framework and requires it to be installed on your system.
- Check if installed:
- Go to
Control Panel>Programs>Programs and Features. - Look for "Microsoft .NET Framework 4.6.2" or any higher 4.x version (e.g., 4.7.2, 4.8). ✅
- Go to
- If not installed:
- Download the official Microsoft .NET Framework 4.8 Runtime (recommended, as it's backward compatible with 4.6.2) from the Microsoft website. Search for "Download .NET Framework 4.8 Runtime". ⬇️
- Run the downloaded installer and follow the on-screen instructions. A computer restart may be required. 🔄
Step 2: Install MySQL Server 8.0.36 or Higher
The application relies on a MySQL database server to store and manage its data. 💾
- If not installed:
- Download the MySQL Community Server 8.0.36 (or a higher version) from the official MySQL website: https://dev.mysql.com/downloads/mysql/ 🌐
- Choose the "MySQL Installer for Windows" for a guided setup process.
- Run the installer and follow the instructions to set up the MySQL server.
- Important: During the MySQL setup, you will be prompted to set a password for the
rootuser. Remember this password, as it will be used in a later step to configure the application's connection. 🔑
Step 3: Run the Database Script in MySQL
After MySQL Server is installed and running, you need to set up the specific database and tables required by the MC Laundry Shop application. 📋
- Locate the Database Script:
- Download the database script from the link provided above: Database Script 📄
- Execute the Script:
- Open a MySQL client tool (e.g., MySQL Workbench, or the MySQL Command Line Client, which comes with MySQL Server installation).
- Log in to your MySQL server using the
rootuser and the password you set in Step 2. 🔒 - Execute the downloaded database script. This will create the necessary database named
mc_laundrycleanand its tables, as expected by the application. ✨
Step 4: Extract mc-2016-csharp-winforms.rar
This RAR file contains the application's installer and core files. 📦
- Locate the RAR file: Download the application RAR file from the link provided above: [Application RAR File]
- Extract the contents:
- Right-click on the
.rarfile. - Select "Extract Here" or "Extract to
mc-2016-csharp-winforms\" using an archiving tool like WinRAR or 7-Zip. 📂 - This will create a new folder (e.g.,
mc-2016-csharp-winforms) containingsetup.exeand anApplication Filessubfolder. - Note: Inside the
Application Filesfolder, you will find your application's executable, along with the MySQL Connector/NET (MySql.Data.dll) and its related files. These are crucial libraries that enable your application to communicate with the MySQL Server. 🔗
- Right-click on the
Step 5: Edit the Connection String
The application needs to be configured with the correct details to connect to your specific MySQL database instance. ⚙️
- Navigate to the Application Files:
- Go to the extracted folder:
[Extracted Folder]\Application Files\MC.LaundryShop.App_1_0_0_0\- (Replace
[Extracted Folder]with the actual name of the folder created in Step 4, such asmc-2016-csharp-winforms).
- (Replace
- Go to the extracted folder:
- Rename the configuration file:
- Find the file named
MC.LaundryShop.App.exe.config.deploy. - Rename this file to
MC.LaundryShop.App.exe.config(remove the.deployextension). 📝
- Find the file named
- Open and Edit:
-
Open
MC.LaundryShop.App.exe.configusing Notepad or any text editor. -
Locate the
<connectionStrings>section. It will look exactly like this:<connectionStrings> <add name="MySQLConnection" connectionString="Server=localhost;Port=3306;Database=mc_laundryclean;Uid=root;Pwd=root_password;" providerName="MySql.Data.MySqlClient" /> </connectionStrings>
-
- Modify the
connectionStringbased on your MySQLrootuser's password:- Change
root_passwordto the actual password you set for the MySQLrootuser during installation (in Step 2). ✏️ - If your MySQL Server is on a different computer on your network (not the same machine where you're installing the app), change
Server=localhostto its IP address (e.g.,Server=192.168.1.100) or hostname. KeepPort=3306unless you've changed the default MySQL port. 📍
- Change
- Save the
MC.LaundryShop.App.exe.configfile. ✅
Step 6: Run the Application Installer
Finally, run the ClickOnce installer to deploy the application to your system.
- Go back to the main extracted folder (e.g.,
mc-2016-csharp-winforms). - Double-click on
setup.exe. 🏃♂️ - Follow the on-screen prompts to install the MC Laundry Shop application. 📩
🔑 Default Login Credentials
After installation, use these credentials to log into the application for the first time:
- Username:
sa - Password:
SecretPassword_00
✨ After Installation
Once installed, you should find a shortcut to "MC Laundry Shop App" in your Start Menu or on your Desktop. Double-click the shortcut to launch the application.
If all steps were followed correctly, the application should now connect to your mc_laundryclean database using the configured connection and be ready for use! 🎉