如果是否安装能通过注册表中知道的话,可以用setup factory 进行部署,参考如下: 1.在setup factory 的“资源”项的“原始文件”中添加winpcap的可执行文件(例如是A.EXE); 2.在“操作”的“启动时”(on startup)加入一段脚本,脚本参考如下: result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\...."); if (result == false) then result = File.Run(SessionVar.Expand("%TempLaunchFolder%\\A.EXE"), "", "", SW_SHOWNORMAL, true); end
---------
这个VS自带的安装部署程序可能无法实现。
net framework
* 取得net分发包,在file system中加入这个包
* 进入custome action.Add custome Action,选择这个分发包。 Installer Class设置为false Arguments设置为命令行参数
Note: 命令行参数可以google到,下面是.net 3.0的命令行:
http://itgroup.blueshop.com.tw/joychen/blog?n=convew&i=1988
1.在setup factory 的“资源”项的“原始文件”中添加winpcap的可执行文件(例如是A.EXE);
2.在“操作”的“启动时”(on startup)加入一段脚本,脚本参考如下:
result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\....");
if (result == false) then
result = File.Run(SessionVar.Expand("%TempLaunchFolder%\\A.EXE"), "", "", SW_SHOWNORMAL, true);
end