MSI-Downloader/README.md

56 lines
1.7 KiB
Markdown
Raw Normal View History

2024-05-21 09:16:54 +00:00
# Chrome Downloader Script
This PowerShell script automates the process of downloading and organizing Google Chrome installers based on specified configurations. It supports downloading both 64-bit and 32-bit versions of Chrome and organizing them into appropriate folders.
## Script Overview
### Configuration
The script reads its configuration from a JSON file named `config.json` located in the same directory as the script. The configuration options include:
- `enableRegularVersion`: Boolean flag to enable the downloading of the regular version of Chrome.
- `enableForcedVersion`: Boolean flag to enable the downloading of the forced update version of Chrome.
### Configuration File (`config.json`)
```json
{
"options": {
"enableRegularVersion": true,
"enableForcedVersion": false
}
}
```
## Script Usage
### 1. Prepare the Environment:
2024-05-21 09:20:48 +00:00
Ensure that `config.json` is present in the same directory as the script.
2024-05-21 09:16:54 +00:00
Create the following template folders and populate them with necessary files:
- `Template\Chrome-Template`
- `Template\Chrome-Template-Forced`
2024-05-21 09:20:48 +00:00
### 2. Downloading the Script:
You can download the script using `git clone` command. Follow these steps:
1. Open your terminal or command prompt.
2. Navigate to the directory where you want to download the script.
3. Run the following command:
```
git clone https://github.com/OlaYZen/Chrome-Downloader.git
```
This command will clone the repository into your current directory.
### 3. Run the Script:
2024-05-21 09:16:54 +00:00
- Open PowerShell and navigate to the directory containing the script and config.json.
- Execute the script:
2024-05-21 09:17:38 +00:00
```css
2024-05-21 10:08:15 +00:00
& '.\Chrome Downloader.ps1'
2024-05-21 09:16:54 +00:00
```
2024-05-21 09:20:48 +00:00
### 4. Monitor the Logs:
2024-05-21 09:16:54 +00:00
- Check `Log.txt` in the script directory for detailed logs of the execution process, including any errors encountered.