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;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM