add AppData.tmpl/vendor

This commit is contained in:
slore 2021-04-01 19:59:13 +09:00
parent 0d0a798b9d
commit 8f1d1e39bc
7 changed files with 82 additions and 0 deletions

0
AppData.tmpl/vendor/_Cache_/gitkeep vendored Normal file
View File

View File

View 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()

View File

View File

View 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB