<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:15.6pt;} div.Section1 {page:Section1;} -->
在安装包制作过程中调用 Dll
在制作安装包的过程中,我们通常做一些制殊的处理,可能是制殊的界面,也可能是制殊的功能,如判断一个 password 是否合法。
这时,一个方便的处理方法就是调用一个自己编写的 dll 实现。
在用 NextInstaller 制作安装包时,系统提供了一个好用了的类 CLibraryIns , 来实现在这个功能,如:
var int abc;
var int abc;
var CLibraryIns LibIns;
LibIns.LoadLibrary( "MyDll.dll" );
LibIns.AddProcDefine(" int api_fun1()" );
LibIns.AddProcDefine(" int api_fun2(int,int)" );
LibIns.AddProcDefine(" void api_fun3(mstring)" );
LibIns.CallProc( "api_fun1");
LibIns.CallProc( "api_fun2" , 1, 2);
LibIns.CallProc( "api_fun3" , "Help my function!");
以上代码是用 CLibraryIns 调用 Mydll.dll 中 3 种类型 api 的方法。
有问题联系 nextinstaller@gamil.com