Setup Factory 9 打包安装程序过程中提示安装.net4.5、并启用md5加密算法

1、在Before Installing选项卡中选择Ready to Install,点击Edit进入编辑窗口,切到最后一个选项卡Actions,把判断内容复制进去

-- These actions are performed before the screen is shown.
result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319\\SKUs\\.NETFramework,Version=v4.5");
if (result == false) then
Shell.Execute(_TempLaunchFolder.."\\dotNetFx45_Full_setup.exe","open","","",SW_SHOWNORMAL,true);
end;

 

2、在After Installing选项卡中选择 Finished Install,点击Edit进入编辑窗口,切到最后一个选项卡Actions,把判断内容复制进去

-- These actions are performed before the screen is shown.
result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Lsa\\FipsAlgorithmPolicy");
if (result == true) then
value = Registry.GetValue(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Control\\Lsa\\FipsAlgorithmPolicy", "Enabled", true);
if (value == "1") then
Registry.SetValue(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Lsa\\FipsAlgorithmPolicy", "Enabled", "0", 4);
end;
end;

posted @ 2019-03-27 11:31  何鸿涛  阅读(1749)  评论(0编辑  收藏  举报