https://github.com/sangafabrice/silent-install-kb
Central repo for some windows application updaters.
https://github.com/sangafabrice/silent-install-kb
7zip curl jq pup vbscript windows-shell xmlstarlet
Last synced: about 1 month ago
JSON representation
Central repo for some windows application updaters.
- Host: GitHub
- URL: https://github.com/sangafabrice/silent-install-kb
- Owner: sangafabrice
- Created: 2021-09-06T16:05:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T10:48:20.000Z (almost 3 years ago)
- Last Synced: 2025-04-13T04:04:18.027Z (about 1 month ago)
- Topics: 7zip, curl, jq, pup, vbscript, windows-shell, xmlstarlet
- Language: Batchfile
- Homepage:
- Size: 81.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## **Use cURL, Jq, Pup, XmlStarlet and 7zip**
### **To update Windows 10 applications from the command line**
---
##### Author: Fabrice Sanga## **`cURL`**
`cURL` is used to:
- Get update information (latest version, setup location, checksum) in the form of an HTTP response header or body.
- To download the requested resource, provided that the setup location is retrieved from the HTTP request.## **`Jq`, `Pup`, `XMLStarlet`**
The response body is in either JSON, HTML, or XML formats. Then `Jq`, `Pup` and `XMLStarlet` are used to parse the body in the previous data formats taken respectively and retrieve the requested update information as tokens.## **`Find` and `FindStr` batch commands**
They are equivalent to `grep` in Linux and help parse HTTP response headers that are not in the previously listed formats.## **`7zip`**
It is used to unzip compressed setups in zip archives files and self-extracting files like chromium setups.
## **Usage**
The `profile.init.bat` file contains the installation folders of the apps to update and the path to the batchfile autorun script that is run at `cmd` startup. If the app id is not this script, then it is installed in the default folder or the autorun folder in case it is a console app.
```batfile
@Echo OFF
If %~1==autorun_parent Echo Path\To\Autorun\Profile\Folder
If %~1==app_id Set program_data=Path\To\Installation\Folder
```The usage :
```batfile
Update-App [CopyToDirectory]
CopyToDirectory The directory where to backup the installer
App GoogleChrome, AvastSecure, Chocolatey, 7zip, Hugo, GitHubCLI,
Jq, Yq, Pup, XML, WmiExplorer, Rufus, Rainmeter, FirefoxDev,
MJML, VLC, YoutubeDL, etc.
```### **Examples**
Update curl and save the setup to C:\Backup\Curl.
```batchfile
> Update-Curl.bat C:\Backup\Curl
> curl --version
7.83.1_3
```Update chrome and save the setup to C:\Backup\Chrome.
```batchfile
> Type assets\profile.init.bat
If %~1==autorun_parent Echo %ProgramData%\Autorun
If %~1==app_id Set program_data=%ProgramData%\Chrome> Update-GoogleChrome.bat C:\Backup\Chrome
> chrome --version
102.0.5005.63
```