|
本帖最后由 minchengan 于 2022-9-1 22:09 编辑
你PE里的这个方法不是跟2.1.97单文件版类似的方法吗。我试一试你这个版本看能不能激活。
刚试了,确实能激活,不过你的批处理命令比较简单,2.1.97那个内容比较多,当然有一些小问题,但修改后可以集成到PE里了。这里我发出来参考吧:
@echo off
PUSHD %~dp0
if exist "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
pecmd exec "%desktop%\APFS for Windows.LNK"
)else (
if exist "%ProgramFiles%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe" (
pecmd exec "%desktop%\APFS for Windows.LNK"
)else (
"%temp%\APFS\APFS.MSI" /qn
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "CollectAnonymStatistics" /t REG_DWORD /d "0" /f /reg:64
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "AutoUpdate" /t REG_DWORD /d "0" /f /reg:64
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "CheckUpdatePeriod" /t REG_SZ /d "PT24H" /f /reg:64
if exist %windir%\SysWOW64 (
Reg.exe add "HKLM\SOFTWARE\Wow6432Node\Paragon Software\APFS for Windows by Paragon Software\service" /v "AutoMount" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Wow6432Node\Paragon Software\APFS for Windows by Paragon Software\service" /v "ReadOnly" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Wow6432Node\Paragon Software\APFS for Windows by Paragon Software\service" /v "CollectAnonymStatistics" /t REG_DWORD /d "0" /f
)else (
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "AutoMount" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "ReadOnly" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Paragon Software\APFS for Windows by Paragon Software\service" /v "CollectAnonymStatistics" /t REG_DWORD /d "0" /f
)
del "X:\Users\Public\Desktop\APFS for Windows by Paragon Software.LNK" /q
del "%Desktop%\APFS for Windows by Paragon Software.LNK" /q
if exist %windir%\SysWOW64 (
copy "%temp%\APFS\APFS for Windows by Paragon Software.exe" "%ProgramFiles(x86)%\Paragon Software\APFS for Windows\" /y
)else (
copy "%temp%\APFS\APFS for Windows by Paragon Software.exe" "%ProgramFiles%\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 %windir%\SysWOW64 (
PECMD LINK "%USERPROFILE%\desktop\APFS for Windows","%ProgramFiles(x86)%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe"
)else (
PECMD LINK "%USERPROFILE%\desktop\APFS for Windows","%ProgramFiles%\Paragon Software\APFS for Windows\APFS for Windows by Paragon Software.exe"
)
rmdir /s /q "%temp%\apfs"
pecmd exec "%desktop%\APFS for Windows.LNK"
exit
))
|
|