1. 在资源 -->原始文件 添加环境包

Setup Factory添加环境配置

2. 在"启动时"

result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\policy\\v4.0");
if (result == false) then
result = File.Run(SessionVar.Expand("%TempLaunchFolder%\\dotNetFx40_Client_x86_x64.exe"), "", "", SW_SHOWNORMAL, true);
end

读注册表看环境包是否已安装,没有安装 则安装"%TempLaunchFolder%\\dotNetFx40_Client_x86_x64.exe"为步骤1中添加原始文件的位置。

相关文章:

  • 2022-12-23
  • 2021-10-28
  • 2021-09-29
  • 2021-06-20
  • 2021-09-21
  • 2021-12-29
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2021-06-15
  • 2021-04-24
  • 2022-12-23
  • 2021-07-16
  • 2022-01-20
相关资源
相似解决方案