怎样用VC带的InstallSheild 调用一个 windows Api和启动另一个程序,,谢谢了
怎样用VC带的InstallSheild 调用一个 windows Api和启动另外一个安装程序,启动另一个软件 问题点数:0、回复次数:6Top
1 楼wangjinwang(王者之疯)回复于 2003-08-02 15:20:46 得分 0
做连续安装吗?换个思思路如何:
做个没有界面的程序(之所以没有界面是因为在弹出界面之前程序结束了),由它启动第一个安装程序,主程序循环检测第一个安装程序是否完成(程序退出),如果完成,则启动第二个安装程序。。。安装完成,主程序退出。
Top
2 楼qqpeng76(pk)回复于 2003-08-02 16:04:15 得分 0
其实不用VC带的InstallSheild ,而用另一个公司的InstallSheild
可以使用函数 LaunchApp()函数,而用 VC带的InstallSheild 它却不认识 这个函数Top
3 楼kingzai(stevenzhu)回复于 2003-08-02 16:07:19 得分 0
use LaunchAppAndWait or LaunchApp
my example:
if (LaunchAppAndWait (SUPPORTDIR ^"Test.exe","", WAIT) < 0) then
MessageBox ("Unable to launch "+"Test.exe"+".",SEVERE);Top
4 楼qqpeng76(pk)回复于 2003-08-02 16:28:36 得分 0
就是因为VC带的InstallSheild 不认识这两个函数呀
Compiling...
Linking...
(0) : internal error C9001: internal error : LaunchAppandAndWait is not available in InstallShield for Microsoft Visual C++ 6.0
Done- 1 error(s), 0 warning(s)
Compiling...
Linking...
(0) : internal error C9001: internal error : LaunchApp is not available in InstallShield for Microsoft Visual C++ 6.0
Done- 1 error(s), 0 warning(s)
Top
5 楼kingzai(stevenzhu)回复于 2003-08-02 16:33:52 得分 0
InstallSheild6.2 support this 2 API,in VC you can call ShellExecute or CreateProcess...
Top
6 楼qqpeng76(pk)回复于 2003-08-02 16:49:24 得分 0
一样不认识,可能版本不合适吧,我是 InstallSheild for vc++6.0
Compiling...
Folder: <C:\My Installations\播控系统\Script Files>
setup.rul(128) : error C8025: 'CreateProcess' : undefined identifier
Done- 1 error(s), 0 warning(s)
Compiling...
Folder: <C:\My Installations\播控系统\Script Files>
setup.rul(126) : error C8025: 'ShellExecute' : undefined identifier
Done- 1 error(s), 0 warning(s)
Top



