Purpose: Automate the installation and re-installation of Discord, ensuring it is operational on user systems. This utility is particularly useful in environments where Discord is critical and needs to be re-provisioned automatically after failures.
- Automated Discord Installation: Ensures Discord is installed on user systems.
- Login Check: Automatically checks for Discord installation at each login and re-installs it if missing or broken.
- Machine-Wide Opt-Out:
- Administrators can disable the utility machine-wide by removing boot logon entries.
- Re-Enabling: Easily re-enable the functionality using the
/install
switch. - Source Code Transparency: Fully open-source for audit and improvement.
To configure the utility and enable login checks:
MDT-InstallDiscord.exe /install
- Downloads and configures the utility in the
C:\Users\Public
folder. - Adds a login check to ensure Discord remains installed.
At each login, the utility will:
- Check if Discord is installed for the current user.
- If Discord is missing or broken, re-install it automatically.
To stop the utility from running for all users on the machine:
MDT-InstallDiscord.exe /optout
- This removes the utility’s boot logon entry and related registry entries.
- Administrators can re-enable the utility by running the
/install
command.
Argument | Description |
---|---|
/install |
Installs the utility, downloads it to C:\Users\Public , and configures login checks. |
/check |
Runs the utility in check mode to ensure Discord is installed (automatically triggered at login). |
/optout |
Disables login checks for all users and cleans up related registry entries (requires admin). |
-
Installation:
- The utility is copied to
C:\Users\Public
and registered to run at login with the/check
argument. - It ensures Discord is installed and operational for the user.
- The utility is copied to
-
Login Behavior:
- At each login, the utility checks for Discord’s presence.
- If missing or broken, Discord is downloaded and installed automatically.
-
Opt-Out:
- Administrators can remove the utility’s boot logon entry machine-wide using the
/optout
command.
- Administrators can remove the utility’s boot logon entry machine-wide using the
-
Re-Enabling:
- Running the
/install
argument re-enables the utility and login checks.
- Running the
Discord is often critical in collaborative or gaming environments. This utility ensures Discord is always available and operational, even if corrupted or uninstalled.
Run the following command to reinstall the utility and re-enable login checks:
MDT-InstallDiscord.exe /install
Administrative rights are required for:
- Installing the utility (
/install
). - Removing boot logon entries (
/optout
).
The full source code for this utility is available here.
Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, open an issue to discuss the proposed updates.
This project is licensed under the MIT License. See the LICENSE file for details.