20块RMB,有没有大佬能帮忙解读一个自动安装flash的批处理

xiaohei8 1月前 17

拿到一个大概50行的批处理,自动安装flash的,大部分代码看不懂,有没有大佬比较清闲,20块帮忙解读一下每一行什么意思啊,我把看不懂的那些行标出来
最新回复 (9)
  • Able 1月前
    引用 2
    leonvero 发表于 2021-12-12 14:42
    本人注释后的,打钱
    ⠀⠀
    大佬大佬,给大佬递烟
  • leonvero 1月前
    引用 3
    本人注释后的,打钱
    1. @echo off
    2. ::如果文件名和路径正确就跳转到EncryBat_Display这里执行安装处理
    3. if not "%~n0"=="EncryBat" goto EncryBat_Display
    4. ::如果不是完整文件扩展名称和路径,就扩充完整然后创建后等待执行安装处理
    5. if not "%~n1"=="" if exist "%~f1" copy/b "%~f0"+"%~f1" "%~dp1New_%~nx1">nul 2>nul&cls&echo.&echo. New_%~nx1 is create.&goto :eof
    6. ::
    7. :EncryBat_Help
    8. if /i not [%0]==[EncryBat] pause
    9. goto :eof
    10. :EncryBat_Display
    11. @echo off
    12. mode con cols=20 lines=2
    13. title 正在处理……
    14. ::切换到当前目录
    15. cd /d "%~dp0"
    16. ::进入Data文件夹
    17. cd DATA
    18. ::查找系统版本如果是XP就退出
    19. ver|find /i " 6.0">nul &&exit
    20. ::如果是XP就退出,XP没有这个变量%Public%
    21. if not exist "%Public%" exit
    22. ::如果官方中文版安装包不存在就退出批处理
    23. if not exist "install_flash_player_ax_cn.exe" exit
    24. if not exist "install_flash_player_cn.exe" exit
    25. if not exist "install_flash_player_ppapi_cn.exe" exit
    26. ::if not exist "UnInstall.exe" exit
    27. ::判断系统是否为管理员权限
    28. fltmc >nul 2>&1 || (
    29. echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
    30. echo UAC.ShellExecute "%~f0", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
    31. cmd /u /c type "%temp%\GetAdmin.vbs">"%temp%\GetAdminUnicode.vbs"
    32. cscript //nologo "%temp%\GetAdminUnicode.vbs"
    33. del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
    34. del /f /q "%temp%\GetAdminUnicode.vbs" >nul 2>&1
    35. exit
    36. )
    37. SetLocal EnableDelayedExpansion
    38. ::if exist "%windir%\System32\Macromed\Flash\*.ocx" start UnInstall.exe
    39. ::if exist "%windir%\System32\Macromed\Flash\*.ocx" exit
    40. ::结束flash匿名数据上传服务程序
    41. taskkill /im FlashHelperService.exe /f
    42. ::停止flash匿名数据上传服务
    43. sc stop "Flash Helper Service"
    44. ::删除flash匿名数据上传服务
    45. sc delete "Flash Helper Service"
    46. ::删除版本信息,防止【正尝试安装的adobe flash player不是最新版本】
    47. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer\SafeVersions" /f
    48. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Macromedia\FlashPlayer\SafeVersions" /f
    49. title 正在安装 Adobe Flash Player ActiveX/NPAPI/PPAPI ,请稍候……
    50. mode con cols=70 lines=10
    51. cls
    52. @echo.
    53. @echo.
    54. @echo.
    55. @echo.
    56. @echo.   正在安装 Adobe Flash Player ActiveX/NPAPI/PPAPI ,请稍候……
    57. @echo.
    58. @echo.
    59. @echo.
    60. @echo.
    61. ::官方默认安装参数执行静默安装
    62. install_flash_player_ax_cn.exe /install /iv 25
    63. install_flash_player_cn.exe /install /iv 25
    64. install_flash_player_ppapi_cn.exe /install /iv 25
    65. ::设置批处理窗口字体颜色
    66. mode con cols=20 lines=2
    67. title 正在处理……
    68. ::结束flash自动更新服务程序
    69. taskkill /im FlashPlayerUpdateService.exe /f
    70. ::停止并删除flash自动更新服务
    71. sc stop AdobeFlashPlayerUpdateSvc
    72. sc delete AdobeFlashPlayerUpdateSvc
    73. ::如果是32位系统,就删除系统目录的残留flash自动更新服务
    74. if not exist "%windir%\SysWOW64" del /f /q "%windir%\System32\Macromed\Flash\FlashPlayerUpdateService.exe"
    75. ::如果是64位系统,就删除系统目录的残留flash自动更新服务
    76. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\FlashPlayerUpdateService.exe"
    77. ::删除所有升级计划任务
    78. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore" /f
    79. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore_0" /f
    80. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore_1" /f
    81. SCHTASKS /Delete /Tn "Adobe Flash Player Updater" /f
    82. SCHTASKS /Delete /Tn "Adobe Flash Player NPAPI Notifier" /f
    83. SCHTASKS /Delete /Tn "Adobe Flash Player PPAPI Notifier" /f
    84. ::删除升级配置文件
    85. del /f /q "%windir%\System32\Macromed\Flash\flashupdater.cfg"
    86. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\flashupdater.cfg"
    87. ::添加关闭升级的参数创建配置文件
    88. dir *.zzzzzzzzzzz/b>"%windir%\System32\Macromed\Flash\mms.cfg"
    89. echo SilentAutoUpdateEnable=0 >>"%windir%\System32\Macromed\Flash\mms.cfg"
    90. echo AutoUpdateDisable=1 >>"%windir%\System32\Macromed\Flash\mms.cfg"
    91. if exist "%windir%\SysWOW64" copy /y "%windir%\System32\Macromed\Flash\mms.cfg" "%windir%\SysWOW64\Macromed\Flash\mms.cfg"
    92. ::32位和64位系统调用flash匿名数据上传服务程序卸载参数静默卸载
    93. if not exist "%windir%\SysWOW64" "%windir%\System32\Macromed\Flash\FlashHelperService.exe" /uninstall
    94. if exist "%windir%\SysWOW64" "%windir%\SysWOW64\Macromed\Flash\FlashHelperService.exe" /uninstall
    95. ::结束flash匿名数据上传服务程序并删除服务+文件+注册表键值
    96. taskkill /im FlashHelperService.exe /f
    97. sc stop "Flash Helper Service"
    98. sc delete "Flash Helper Service"
    99. if not exist "%windir%\SysWOW64" del /f /q "%windir%\System32\Macromed\Flash\FlashHelperService.exe"
    100. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\FlashHelperService.exe"
    101. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\miniconfig" /f
    102. ::设置系统目录的flash插件文件的所有用户权限
    103. echo y|cacls "%windir%\System32\Macromed\Flash\*.ocx" /c /p Everyone:f
    104. if exist "%windir%\SysWOW64" echo y|cacls "%windir%\SysWOW64\Macromed\Flash\*.ocx" /c /p Everyone:f
    105. ::去掉系统目录的flash插件文件的只读系统属性
    106. attrib -r -s -h "%windir%\System32\Macromed\Flash\*.ocx"
    107. if exist "%windir%\SysWOW64" attrib -r -s -h "%windir%\SysWOW64\Macromed\Flash\*.ocx"
    108. ::设置系统版本判断变量
    109. set AXPF=AX_7
    110. ::如果是Win7
    111. ver|find /i " 6.2">nul &&set AXPF=AX_10
    112. ::如果是Win8
    113. ver|find /i " 6.3">nul &&set AXPF=AX_10
    114. ::如果是Win10
    115. ver|find /i " 10.0">nul &&set AXPF=AX_10
    116. ::如果是32位系统,就复制flash插件到系统目录
    117. if not exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash32_*.ocx" "%windir%\System32\Macromed\Flash"
    118. if not exist "%windir%\SysWOW64" copy /y "NPSWF32_*.dll" "%windir%\System32\Macromed\Flash"
    119. if not exist "%windir%\SysWOW64" copy /y "pepflashplayer32_*.dll" "%windir%\System32\Macromed\Flash"
    120. ::如果是64位系统,就复制flash插件到系统目录
    121. if exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash32_*.ocx" "%windir%\SysWOW64\Macromed\Flash"
    122. if exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash64_*.ocx" "%windir%\System32\Macromed\Flash"
    123. if exist "%windir%\SysWOW64" copy /y "NPSWF32_*.dll" "%windir%\SysWOW64\Macromed\Flash"
    124. if exist "%windir%\SysWOW64" copy /y "NPSWF64_*.dll" "%windir%\System32\Macromed\Flash"
    125. if exist "%windir%\SysWOW64" copy /y "pepflashplayer32_*.dll" "%windir%\SysWOW64\Macromed\Flash"
    126. if exist "%windir%\SysWOW64" copy /y "pepflashplayer64_*.dll" "%windir%\System32\Macromed\Flash"
    127. ::复制安装完后退出批处理
    128. exit
    ⠀⠀
  • leonvero 1月前
    引用 4
    贴出来,10块钱帮你注释批处理⠀
  • 楼主 xiaohei8 1月前
    引用 5
    leonvero 发表于 2021-12-12 13:57
    贴出来,10块钱帮你注释批处理⠀
    你这,,还有往下讲价的老哥留个联系方式啊,原价给你
  • simonfire 1月前
    引用 6
    你俩都比较敞亮呀
  • leonvero 1月前
    引用 7
    楼主的
    1. @echo off
    2. if not "%~n0"=="EncryBat" goto EncryBat_Display
    3. if not "%~n1"=="" if exist "%~f1" copy/b "%~f0"+"%~f1" "%~dp1New_%~nx1">nul 2>nul&cls&echo.&echo. New_%~nx1 is create.&goto :eof
    4. :EncryBat_Help
    5. if /i not [%0]==[EncryBat] pause
    6. goto :eof
    7. :EncryBat_Display
    8. @echo off
    9. mode con cols=20 lines=2
    10. title 正在处理……
    11. cd /d "%~dp0"
    12. cd DATA
    13. ver|find /i " 6.0">nul &&exit
    14. if not exist "%Public%" exit
    15. if not exist "install_flash_player_ax_cn.exe" exit
    16. if not exist "install_flash_player_cn.exe" exit
    17. if not exist "install_flash_player_ppapi_cn.exe" exit
    18. ::if not exist "UnInstall.exe" exit
    19. fltmc >nul 2>&1 || (
    20. echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
    21. echo UAC.ShellExecute "%~f0", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
    22. cmd /u /c type "%temp%\GetAdmin.vbs">"%temp%\GetAdminUnicode.vbs"
    23. cscript //nologo "%temp%\GetAdminUnicode.vbs"
    24. del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
    25. del /f /q "%temp%\GetAdminUnicode.vbs" >nul 2>&1
    26. exit
    27. )
    28. SetLocal EnableDelayedExpansion
    29. ::if exist "%windir%\System32\Macromed\Flash\*.ocx" start UnInstall.exe
    30. ::if exist "%windir%\System32\Macromed\Flash\*.ocx" exit
    31. taskkill /im FlashHelperService.exe /f
    32. sc stop "Flash Helper Service"
    33. sc delete "Flash Helper Service"
    34. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer\SafeVersions" /f
    35. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Macromedia\FlashPlayer\SafeVersions" /f
    36. title 正在安装 Adobe Flash Player ActiveX/NPAPI/PPAPI ,请稍候……
    37. mode con cols=70 lines=10
    38. cls
    39. @echo.
    40. @echo.
    41. @echo.
    42. @echo.
    43. @echo.   正在安装 Adobe Flash Player ActiveX/NPAPI/PPAPI ,请稍候……
    44. @echo.
    45. @echo.
    46. @echo.
    47. @echo.
    48. install_flash_player_ax_cn.exe /install /iv 25
    49. install_flash_player_cn.exe /install /iv 25
    50. install_flash_player_ppapi_cn.exe /install /iv 25
    51. mode con cols=20 lines=2
    52. title 正在处理……
    53. taskkill /im FlashPlayerUpdateService.exe /f
    54. sc stop AdobeFlashPlayerUpdateSvc
    55. sc delete AdobeFlashPlayerUpdateSvc
    56. if not exist "%windir%\SysWOW64" del /f /q "%windir%\System32\Macromed\Flash\FlashPlayerUpdateService.exe"
    57. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\FlashPlayerUpdateService.exe"
    58. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore" /f
    59. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore_0" /f
    60. SCHTASKS /Delete /Tn "FlashHelper TaskMachineCore_1" /f
    61. SCHTASKS /Delete /Tn "Adobe Flash Player Updater" /f
    62. SCHTASKS /Delete /Tn "Adobe Flash Player NPAPI Notifier" /f
    63. SCHTASKS /Delete /Tn "Adobe Flash Player PPAPI Notifier" /f
    64. del /f /q "%windir%\System32\Macromed\Flash\flashupdater.cfg"
    65. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\flashupdater.cfg"
    66. dir *.zzzzzzzzzzz/b>"%windir%\System32\Macromed\Flash\mms.cfg"
    67. echo SilentAutoUpdateEnable=0 >>"%windir%\System32\Macromed\Flash\mms.cfg"
    68. echo AutoUpdateDisable=1 >>"%windir%\System32\Macromed\Flash\mms.cfg"
    69. if exist "%windir%\SysWOW64" copy /y "%windir%\System32\Macromed\Flash\mms.cfg" "%windir%\SysWOW64\Macromed\Flash\mms.cfg"
    70. if not exist "%windir%\SysWOW64" "%windir%\System32\Macromed\Flash\FlashHelperService.exe" /uninstall
    71. if exist "%windir%\SysWOW64" "%windir%\SysWOW64\Macromed\Flash\FlashHelperService.exe" /uninstall
    72. taskkill /im FlashHelperService.exe /f
    73. sc stop "Flash Helper Service"
    74. sc delete "Flash Helper Service"
    75. if not exist "%windir%\SysWOW64" del /f /q "%windir%\System32\Macromed\Flash\FlashHelperService.exe"
    76. if exist "%windir%\SysWOW64" del /f /q "%windir%\SysWOW64\Macromed\Flash\FlashHelperService.exe"
    77. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\miniconfig" /f
    78. echo y|cacls "%windir%\System32\Macromed\Flash\*.ocx" /c /p Everyone:f
    79. if exist "%windir%\SysWOW64" echo y|cacls "%windir%\SysWOW64\Macromed\Flash\*.ocx" /c /p Everyone:f
    80. attrib -r -s -h "%windir%\System32\Macromed\Flash\*.ocx"
    81. if exist "%windir%\SysWOW64" attrib -r -s -h "%windir%\SysWOW64\Macromed\Flash\*.ocx"
    82. set AXPF=AX_7
    83. ver|find /i " 6.2">nul &&set AXPF=AX_10
    84. ver|find /i " 6.3">nul &&set AXPF=AX_10
    85. ver|find /i " 10.0">nul &&set AXPF=AX_10
    86. if not exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash32_*.ocx" "%windir%\System32\Macromed\Flash"
    87. if not exist "%windir%\SysWOW64" copy /y "NPSWF32_*.dll" "%windir%\System32\Macromed\Flash"
    88. if not exist "%windir%\SysWOW64" copy /y "pepflashplayer32_*.dll" "%windir%\System32\Macromed\Flash"
    89. if exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash32_*.ocx" "%windir%\SysWOW64\Macromed\Flash"
    90. if exist "%windir%\SysWOW64" copy /y "%AXPF%\Flash64_*.ocx" "%windir%\System32\Macromed\Flash"
    91. if exist "%windir%\SysWOW64" copy /y "NPSWF32_*.dll" "%windir%\SysWOW64\Macromed\Flash"
    92. if exist "%windir%\SysWOW64" copy /y "NPSWF64_*.dll" "%windir%\System32\Macromed\Flash"
    93. if exist "%windir%\SysWOW64" copy /y "pepflashplayer32_*.dll" "%windir%\SysWOW64\Macromed\Flash"
    94. if exist "%windir%\SysWOW64" copy /y "pepflashplayer64_*.dll" "%windir%\System32\Macromed\Flash"
    95. exit
    ⠀⠀
  • leonvero 1月前
    引用 8
    烟钱已收到,⠀
  • leonvero 1月前
    引用 9
    Able 发表于 2021-12-12 14:48
    大佬大佬,给大佬递烟
    大佬不敢当啊,小白啊⠀
  • wushuiyin 1月前
    引用 10
    啥项目啊  还要用这个flash
  • 游客
    11
返回