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