INSTALLSHILE+DPINST.EXE 安装设备驱动-设备驱动安装最佳方法之一

首先生成一个BASIC MSI 工程,然后在Project Assistant 的 Application files 页面添加文件(inf&sys&DPINT.EXE)

 

然后,添加脚本新建相关函数.例如:

#include "ifx.h"

export prototype InstallDriver(HWND);

function InstallDriver(hMSI)

   STRING svResult;
begin    
      if(FindFile(INSTALLDIR,"DPInst.exe",svResult)=0) then
      LaunchAppAndWait (INSTALLDIR^"DPInst.exe","/LM",WAIT);
   endif; 
end;

 最后设置CUSTOM ACTIONS.

你可能感兴趣的:(INSTALLSHIELD,12,prototype,application,basic,function,string,脚本)