mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
add AppData.tmpl/vendor
This commit is contained in:
parent
0d0a798b9d
commit
8f1d1e39bc
0
AppData.tmpl/vendor/_Cache_/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_Cache_/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_PEMaterial_/Installers/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_PEMaterial_/Installers/gitkeep
vendored
Normal file
67
AppData.tmpl/vendor/_PEMaterial_/PEStartup.bat
vendored
Normal file
67
AppData.tmpl/vendor/_PEMaterial_/PEStartup.bat
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
--[=[ 2>nul
|
||||
rem -- ==================== batch script ====================
|
||||
set "f0=%~f0"&&set "dp0=%~dp0"&&set "_Loc=%dp0%"
|
||||
call :%1
|
||||
goto :EOF
|
||||
|
||||
|
||||
:BeforeShell
|
||||
|
||||
if exist "%dp0%wallpaper.jpg" (
|
||||
copy /y "%dp0%wallpaper.jpg" "%windir%\Web\wallpaper\img0.jpg"
|
||||
start WinXShell.exe -code "app:call('Desktop::SetWallpaper',[[%windir%\Web\wallpaper\img0.jpg]])"
|
||||
)
|
||||
|
||||
xcopy /E /Y "%dp0%Program Files\*.*" "%ProgramFiles%\"
|
||||
|
||||
rem ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rem ---------------------------------------------------------------------------------
|
||||
start /wait WinXShell.exe -script "%f0%"
|
||||
goto :EOF
|
||||
|
||||
:PostShell
|
||||
if not "x%USERNAME%"=="xSYSTEM" (
|
||||
start WinXShell.exe -code "app:call('Desktop::SetWallpaper', [[%windir%\Web\wallpaper\img0.jpg]])"
|
||||
)
|
||||
start /wait WinXShell.exe -script "%f0%"
|
||||
goto :EOF
|
||||
]=]
|
||||
|
||||
--- -- ==================== lua script ====================
|
||||
local dp0 = os.getenv('dp0')
|
||||
|
||||
local function AppToDesk(path, arch)
|
||||
local name = path:match('([^\\]+)$')
|
||||
LINK('%Desktop%\\' .. name .. '.lnk', dp0 .. 'PortableApps\\' .. path .. arch .. '.exe')
|
||||
end
|
||||
|
||||
function BeforeShell()
|
||||
-- LINK([[%Desktop%\BOOTICE.lnk]], dp0 ..[[PortableApps\BOOTICE\BOOTICEx64.exe]])
|
||||
-- LINK([[%Desktop%\Install Office2007.lnk]], dp0 .. [[Installers\Office2007\install.cmd]], nil, dp0 .. [[Installers\Office2007\Office.ico]], 0)
|
||||
-- LINK([[%Desktop%\Startup PotPlayer.lnk]], dp0 .. [[Installers\PotPlayer\install.cmd]], nil, dp0 .. [[Installers\PotPlayer\Pot.ico]], 0)
|
||||
-- AppToDesk('BOOTICE\\BOOTICE', 'x%_V8664%')
|
||||
-- AppToDesk('CPU-Z\\cpuz', '_x%_V3264%')
|
||||
-- AppToDesk('NTPWEdit\\ntpwedit', '%_V64%')
|
||||
|
||||
|
||||
end
|
||||
|
||||
function PostShell()
|
||||
-- Startmenu:Pin(dp0 .. [[PortableApps\BOOTICE\BOOTICEx%_V8664%.exe]])
|
||||
-- Taskbar:Pin(dp0 .. [[PortableApps\Everything\Everything.exe]])
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
local function main()
|
||||
local phase = os.getenv('STARTUP_PHASE')
|
||||
if phase then load(phase .. '()')() end
|
||||
end
|
||||
main()
|
0
AppData.tmpl/vendor/_PEMaterial_/PortableApps/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_PEMaterial_/PortableApps/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_PEMaterial_/Program Files/gitkeep
vendored
Normal file
0
AppData.tmpl/vendor/_PEMaterial_/Program Files/gitkeep
vendored
Normal file
15
AppData.tmpl/vendor/_PEMaterial_/README.txt
vendored
Normal file
15
AppData.tmpl/vendor/_PEMaterial_/README.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
把PEMaterial目录复制到磁盘分区根目录即可,不需要修改WIM内核,启动系统后自动加载。
|
||||
|
||||
外置加载时:
|
||||
将 Program Files 复制到 X:\Program Files (弹出设备后**仍可**使用)
|
||||
为 Installers 中的程序创建 安装的快捷方式 (弹出设备后**无法**安装)
|
||||
为 PortableApps 中的程序创建快捷方式,程序注册关联等 (弹出设备后**无法**使用)
|
||||
|
||||
=================================================================================
|
||||
|
||||
Copy the PEMaterial directory to the disk partition root directory, do not need to modify the WIM file, it will be loaded automatically on booting.
|
||||
|
||||
When external loading:
|
||||
Copy the 'Program Files' folder to X:\Program Files (they can **still be used** even the device was ejected)
|
||||
Create shortcut(s) to the Installer(s) for program(s) in 'Installers' folder (they **cannot be installed** if the device was ejected)
|
||||
Create shortcut(s) for programs in 'PortableApps' folder, also you can do associations for programs and any action. (they **cannot be used** if the device was ejected)
|
BIN
AppData.tmpl/vendor/_PEMaterial_/wallpaper.jpg
vendored
Normal file
BIN
AppData.tmpl/vendor/_PEMaterial_/wallpaper.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
Loading…
x
Reference in New Issue
Block a user