{"id":15202888,"url":"https://github.com/kernferm/winrar","last_synced_at":"2026-02-08T20:30:50.529Z","repository":{"id":244519909,"uuid":"815478536","full_name":"KernFerm/WinRAR","owner":"KernFerm","description":"This PowerShell script automates the process of downloading, installing, and adding WinRAR to the system PATH on Windows machines.","archived":false,"fork":false,"pushed_at":"2024-10-26T20:24:00.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T22:35:44.711Z","etag":null,"topics":["installer-script","powershell","powershell-script","windows","winrar"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KernFerm.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":"CONTRIBUTING.MD","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.MD","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-15T09:26:50.000Z","updated_at":"2025-03-20T19:04:40.000Z","dependencies_parsed_at":"2024-06-28T01:22:32.684Z","dependency_job_id":"e69ff951-a7c1-4655-bb19-fb64ed821148","html_url":"https://github.com/KernFerm/WinRAR","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"ebe3170879d752a043f1485773dea1bde178b967"},"previous_names":["kernferm/winrar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/KernFerm/WinRAR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FWinRAR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FWinRAR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FWinRAR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FWinRAR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KernFerm","download_url":"https://codeload.github.com/KernFerm/WinRAR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FWinRAR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269362330,"owners_count":24404524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["installer-script","powershell","powershell-script","windows","winrar"],"created_at":"2024-09-28T04:07:04.710Z","updated_at":"2026-02-08T20:30:50.524Z","avatar_url":"https://github.com/KernFerm.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Support the Project ⭐\r\n\r\nIf you find this project useful, please give it a star! Your support is appreciated and helps keep the project growing. 🌟\r\n\r\n\r\n# 📦 WinRAR Auto-Installer Script\r\n\r\nThis **PowerShell script** automates the process of **downloading**, **installing**, and adding **WinRAR** to the system PATH on Windows machines 🪟.\r\n\r\n---\r\n\r\n## 📥 How to Download the Repo (First-Time Users)\r\n\r\nClick the link to read [**Instructions**](https://www.gitprojects.fnbubbles420.org/how-to-download-repos) 📄.\r\n\r\n### Join The Discord\r\n- **Discord Server**: [![](https://invidget.switchblade.xyz/zQbJJgwbUv)](https://discord.gg/zQbJJgwbUv)\r\n\r\n---\r\n\r\n## ✨ Features\r\n\r\n- **Automated Download**: Downloads the WinRAR installer directly from the official website 🌐.\r\n- **Silent Installation**: Installs WinRAR silently without requiring user interaction 🛠️.\r\n- **PATH Update**: Adds the WinRAR installation directory to the system PATH, allowing WinRAR commands to be run from anywhere in the command line ✅.\r\n\r\n---\r\n\r\n# 🛠️ WinRAR Silent Installer Script - Logging Information\r\n\r\nThis script includes **robust logging** mechanisms to ensure detailed tracking of the script's operations and for troubleshooting 🔍.\r\n\r\n### 📝 Logging\r\n\r\n- The script logs all actions and errors to a file named `winrar-install.log` located in the **temporary directory**.\r\n\r\n### 📁 Log File Location\r\n\r\nThe log file is saved in the user's temporary directory. The typical path is:\r\n`C:\\Users\u003cYourUsername\u003e\\AppData\\Local\\Temp\\winrar-install.log`\r\n\r\n### 🛠️ Log-Message Function\r\n\r\nThe script includes a custom function `Log-Message` to handle logging. This function logs messages with a timestamp and a message type (INFO, ERROR, or WARNING).\r\n\r\n#### Log-Message Function Definition\r\n\r\n```\r\nfunction Log-Message {\r\n    param (\r\n        [string]$message,\r\n        [string]$type = \"INFO\"\r\n    )\r\n    $timestamp = Get-Date -Format \"yyyy-MM-dd HH:mm:ss\"\r\n    $logEntry = \"$timestamp [$type] $message\"\r\n    Write-Host $logEntry\r\n    Add-Content -Path $logFile -Value $logEntry\r\n}\r\n```\r\n\r\n- **message:** The message to log.\r\n- **type:** The type of message (INFO, ERROR, WARNING). Default is \"INFO\".\r\n\r\n### 📊 Example Log Entries\r\n\r\n- **Info Message:**\r\n```\r\n2024-07-18 14:32:01 [INFO] Starting download of WinRAR from https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-713.exe\r\n```\r\n\r\n- **Error Message:\r\n```\r\n2024-07-18 14:32:45 [ERROR] Failed to download WinRAR installer: Exception calling \"Invoke-WebRequest\" with \"2\" argument(s): \"The remote server returned an error: (404) Not Found.\"\r\n```\r\n\r\n- **Warning Message:**\r\n```\r\n2024-07-18 14:33:10 [WARNING] Failed to remove the downloaded installer: Exception calling \"Remove-Item\" with \"1\" argument(s): \"Cannot find path 'C:\\Users\\User\\AppData\\Local\\Temp\\winrar-installer.exe' because it does not exist.\"\r\n```\r\n\r\n### 🛠️ Logging Steps in the Script\r\n\r\n1. **Starting Download:** Logs the beginning of the download process.\r\n```\r\nLog-Message \"Starting download of WinRAR from $url\"\r\n```\r\n\r\n2. **Download Complete:** Logs the completion of the download.\r\n```\r\nLog-Message \"Download complete.\"\r\n```\r\n\r\n3. **Download Failure:** Logs any errors during the download process.\r\n```\r\nLog-Message \"Failed to download WinRAR installer: $_\" \"ERROR\"\r\n```\r\n\r\n4. **Starting Installation:** Logs the beginning of the installation process.\r\n```\r\nLog-Message \"Starting silent installation of WinRAR.\"\r\n```\r\n\r\n5. **Installation Complete:** Logs the completion of the installation.\r\n```\r\nLog-Message \"WinRAR installation complete.\"\r\n```\r\n\r\n6. **Clean Up:** Logs the removal of the downloaded installer.\r\n```\r\nLog-Message \"Cleaned up the downloaded installer.\"\r\n```\r\n\r\n### ⚙️ Prerequisites\r\n\r\n- **PowerShell 5.0 or higher** 🖥️.\r\n- **Internet connection** to download the installer 🌐.\r\n- **Administrative privileges** to install and update the system PATH 🔒.\r\n\r\n---\r\n\r\n### 🔧 v7.4.6 Release of PowerShell - Latest (recommended)\r\n\r\nSelect the version that matches your system specs:\r\n\r\n- For **Windows 64-bit systems**: [Download 64-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.5.3/PowerShell-7.5.3-win-x64.msi)\r\n- For **Windows 32-bit systems**: [Download 32-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.5.3/PowerShell-7.5.3-win-x86.msi)\r\n\r\n### 🚀 Usage\r\n\r\n1. **Open PowerShell (Run as Admin)** 🔒.\r\n2. Navigate to the directory containing the script using `cd`.\r\n3. Run the script:\r\n\r\n   ```\r\n   .\\WinRAR-7.01-auto-installer.ps1\r\n   ```\r\n\r\n4. The script will handle the rest, providing output messages to indicate progress and completion status.\r\n\r\n### ❓ If Usage Fails\r\n\r\nIf the script doesn't run, change the execution policy by running:\r\n```\r\nSet-ExecutionPolicy Bypass -Scope Process\r\n```\r\n- if a message pops up `red` type `Y` click enter.\r\n\r\nThen, run the script again without closing PowerShell.\r\n\r\n   ```\r\n   .\\WinRAR-7.01-auto-installer.ps1\r\n   ```\r\n\r\n### 🛠️ How It Works\r\n\r\n1. **Download**: The script starts by downloading the **WinRAR installer** using `Invoke-WebRequest`.\r\n2. **Install**: After downloading, it proceeds to install **WinRAR silently** using the `/S` switch.\r\n3. **PATH Update**: Finally, it checks if WinRAR's installation path is in the system PATH. If not, it adds it, allowing WinRAR commands to be run from the command line.\r\n\r\n---\r\n\r\n### 📝 Note\r\n\r\nThis script is for **educational purposes** and should be used responsibly. Ensure you have the right to install software on your machine ⚠️.\r\n\r\n---\r\n\r\n### 📜 License\r\n\r\nThis script is provided \"as is\", without warranty of any kind, express or implied. Use it at your own risk.\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernferm%2Fwinrar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernferm%2Fwinrar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernferm%2Fwinrar/lists"}