Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 13,184
» Latest member: MirketBey
» Forum threads: 1,653
» Forum posts: 6,665
Full Statistics
|
Online Users |
There are currently 124 online users. » 0 Member(s) | 120 Guest(s) Bing, Facebook, Google, Twitter
|
Latest Threads |
Updating Windows on vhd i...
Forum: Ventoy Plugin Forum
Last Post: vcespon
06-15-2025, 01:11 PM
» Replies: 0
» Views: 106
|
VHD don't work
Forum: Ventoy Plugin Forum
Last Post: vcespon
06-15-2025, 12:54 PM
» Replies: 1
» Views: 930
|
plz update hardware info ...
Forum: Ventoy Discussion Forum
Last Post: kcs
06-09-2025, 02:57 PM
» Replies: 0
» Views: 293
|
gParted Live-ISO 1.7.0-1 ...
Forum: Ventoy Discussion Forum
Last Post: odie
06-06-2025, 11:55 AM
» Replies: 0
» Views: 352
|
请问是否支持Loongarch64架构的启动引导
Forum: Ventoy Discussion Forum
Last Post: zp1688
06-01-2025, 11:57 AM
» Replies: 5
» Views: 7,830
|
还是希望能有支持国芯架构的安排吧。
Forum: Ventoy Discussion Forum
Last Post: zp1688
06-01-2025, 11:56 AM
» Replies: 1
» Views: 1,336
|
能否让ventoy直接安装到硬盘和本机的系统形成双...
Forum: Ventoy Discussion Forum
Last Post: zp1688
06-01-2025, 11:55 AM
» Replies: 2
» Views: 1,997
|
Ventoy is genius!
Forum: Ventoy Discussion Forum
Last Post: Epictetus
05-28-2025, 12:56 AM
» Replies: 0
» Views: 556
|
安装vtoyboot后,grub启动项丢失
Forum: Ventoy Plugin Forum
Last Post: 1902550300
05-17-2025, 04:07 AM
» Replies: 0
» Views: 869
|
[Feature Request] WIM / V...
Forum: iVentoy Discussion Forum
Last Post: METALHEAD
05-14-2025, 05:19 PM
» Replies: 1
» Views: 1,255
|
|
|
Sharing a code for creating "windows_injection.zip" |
Posted by: Matthew Wai - 01-15-2022, 12:44 PM - Forum: Ventoy Plugin Forum
- No Replies
|
 |
https://github.com/ventoy/WinInjection/b...ection.zip
The above ZIP file contains the script "pack.bat", which uses 7-Zip to create "windows_injection.7z".
I have written the following code, which uses PowerShell to create "windows_injection.zip", which also works with Ventoy Injection Plugin. As PowerShell is a Windows built-in app, the third-party apps "7za32.exe" and "7za64.exe" are not needed. Just copy the following code into a CMD/batch script, which can then be used in place of "pack.bat". The "internal" folder, which contains the said third-party apps, can simply be deleted.
Code: @echo off & CD /d "%~dp0" & Set "[ZIP]=windows_injection"
If exist "%[ZIP]%.zip" Del "%[ZIP]%.zip"
PowerShell Compress-Archive """X\*""" """%[ZIP]%"""
Mode con cols=72 lines=10 & color 17 & Echo.
Echo ======================================================================
If exist "%~dp0%[ZIP]%.zip" (Echo.
Echo The following file has been created in the current working directory.
Echo. & Echo "%[ZIP]%.zip") else (Echo.
Echo The operation has failed for some reason.)
Echo.
Echo ======================================================================
Pause>nul
|
|
|
|