注:完全原创,转载请注明出处。(qzm)
制作cvi的分发包很easy,只要执行如下图所示的build hzjbackground即可。
http://blog.gkong.com/uploadfile3/200951195332988.jpg
但当制作安装了 sql toolkit 组件的程序时还要多做点工作,具体的内容如下:
distributing an sql toolkit executable or dll
the following files must be distributed with an executable or dll that uses sql toolkit functions.
you must use the cvisqlshared.msm merge module to install support for the labwindows/cvi sql toolkit. the cvisqlshared.msm merge module is located in the program files\common files\merge modules directory.
include the sqldistsupp.exe and sqldistsupp.dsn files when you create a labwindows/cvi distribution in order to install required database components. set sqldistsupp.exe as the program to run after installation in the distribution kit.
the sqldistsupp.exe program, located in the [cvidir]\redist directory, creates a system data source name using sqldistsupp.dsn. the sample sqldistsupp.dsn file creates a data source called cvi sql samples, which works with the microsoft access odbc driver. you can use [windowsdirectory], [windowssystemdirectory], [cvisqlinstalldirectory], and [appinstalldirectory] to force sqldistsupp.exe to update paths to the proper values at run time.
note [cvisqlinstalldirectory] is actually the directory containing sqldistsupp.exe and is equivalent to [appinstalldirectory].
实战如下:
(1)在分布程序中加入cvisqlshared.msm
http://blog.gkong.com/uploadfile3/200951195831611.jpg
2) 把sqldistsupp.exe 和sqldistsupp.dsn文件入发布程序。
----------------------------------------------
此篇文章从博客转发
原文地址:
Http://blog.gkong.com/more.asp?id=87309&Name=zjcsharp