我正在创建Installshield安装程序以安装我的软件,我的软件首先检查.net framework 3.5是否安装?
#define EXAMPLE_DIR "D:\\"
if(!Is(DOTNETFRAMEWORKINSTALLED,REGDB_KEYPATH_DOTNET_35)) then
return1=AskYesNo("Target system does not have .net 3.5 framework,Do you want to install?",YES);
if(return1==YES) then
LaunchApp(EXAMPLE_DIR^"website.bat","");
else
abort;
endif;
endif;
它完美地检查了框架,但现在我想要如果用户点击是的按钮,微软的网站应该打开?
任何人都知道如何做到这一点?
答案 0 :(得分:2)
我会使用先决条件支持。对于最后几个版本,基于MSI和基于安装脚本的项目都提供了先决条件。
答案 1 :(得分:0)
应该是这样...........
//#define EXAMPLE_DIR "D:\\"
if(!Is(DOTNETFRAMEWORKINSTALLED,REGDB_KEYPATH_DOTNET_35)) then
return1=AskYesNo("Target system does not have .net 3.5 framework,Do you want to install?",YES);
if(return1==YES) then
LaunchApp(SUPPORTDIR^"website.bat","");
else
abort;
endif;
endif;