注:在 setup factory >actions > on post install中添加,环境安装包(离线)放到打包文件夹内

result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4");
resultb=Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4.0");
resultc = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\14.0");


if(result==false)then
repeat
mess = Shell.Execute(SessionVar.Expand("%AppFolder%\\运行环境\\dotNetFx40_Full_x86_x64.exe"), "open", "/q", "/q", SW_SHOWNORMAL, true)
until not mess;
end

 

if(result==false)then
repeat
mess = Shell.Execute(SessionVar.Expand("%AppFolder%\\运行环境\\dotnetfx4.5.exe"), "open", "/q", "/q", SW_SHOWNORMAL, true)
until not mess;
end


if(result==false)then
repeat
mess = Shell.Execute(SessionVar.Expand("%AppFolder%\\运行环境\\vc_redist.x64.exe"), "open", "/q", "/q", SW_SHOWNORMAL, true)
until not mess;
end

 

Dialog.Message("提示", "AIP可视化平台及环境,安装完毕!")
Application.Exit();

 

posted on 2017-03-30 14:45  亭楼小筑  阅读(697)  评论(0)    收藏  举报