|
本帖最后由 gbzx 于 2022-10-4 21:21 编辑
这种方式,新老版本都不行,你可自己试
@echo off
PUSHD %~dp0
setup.msi /q
if exist "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
copy "apfs for windows by paragon software.exe" "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\" /y
)
icacls "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\APFS for Windows by Paragon Software" /grant administrators:F /t
rmdir /s /q "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\APFS for Windows by Paragon Software"
if exist "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
Start "X:\Users\Public\Desktop\APFS for Windows by Paragon Software.lnk"
)
exit
上面无论新老版本都都不行
@echo off
PUSHD %~dp0
setup.msi /q
if exist "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
copy "apfs for windows by paragon software.exe" "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\" /y
)
icacls "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\APFS for Windows by Paragon Software" /grant administrators:F /t
rmdir /s /q "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\APFS for Windows by Paragon Software"
if exist "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
pecmd exec "X:\Users\Public\Desktop\APFS for Windows by Paragon Software.lnk"
)
exit
上面新版本可行,老版本不行
|
|