InstallShield2015制作安装包----------安装后实现自动运行

安装向导完成后,自动运行。

实现的手段是:InstallScript脚本OnEnd()函数里面,调用可执行程序。

备注:INSTALLDIR预定义变量存放着程序的安装目录。

1 //安装后运行dispatcher
2 strPath=INSTALLDIR+"dispatcher";
3 strName="Frs.exe";
4 FindFile(strPath,strName,strResult);
5 if(strResult!="") then
6     strPath=strPath+"\\"+strName;
7     LaunchAppAndWait(strPath,"",NOWAIT);
8 endif;

猜你喜欢

转载自www.cnblogs.com/azbane/p/9298935.html