我使用installmaster制作一个installer。
安装过程中我需要调用其中的execute命令来运行一个程序。
现在我想得到这个程序退出的返回值,
item: Execute Program
Pathname=%MAINDIR%\flashversion.exe
Variables Added=RETURNVAL
Default Directory=%MAINDIR%
Flags=00000010
end
item: If/While Statement
Variable=RETURNVAL
Value=100
end
item: Display Message
Title=Information
Text=You don't have flash player installed , press "Yes" to download the flash player
Flags=00001100
end
item: ElseIf Statement
Variable=RETURNVAL
Value=0
end
item: Display Message
Title=Information
Text=The Flash player version in your computer is too old to run the program , press "yes" to download a new version.
Flags=00001100
end
item: End Block
end这是我这部分的代码,但是其中的RETURNVAL 并不能很好的工作。
请那位大大告知,如何得到外部程序运行的返回值? 比较急,给分100。
安装过程中我需要调用其中的execute命令来运行一个程序。
现在我想得到这个程序退出的返回值,
item: Execute Program
Pathname=%MAINDIR%\flashversion.exe
Variables Added=RETURNVAL
Default Directory=%MAINDIR%
Flags=00000010
end
item: If/While Statement
Variable=RETURNVAL
Value=100
end
item: Display Message
Title=Information
Text=You don't have flash player installed , press "Yes" to download the flash player
Flags=00001100
end
item: ElseIf Statement
Variable=RETURNVAL
Value=0
end
item: Display Message
Title=Information
Text=The Flash player version in your computer is too old to run the program , press "yes" to download a new version.
Flags=00001100
end
item: End Block
end这是我这部分的代码,但是其中的RETURNVAL 并不能很好的工作。
请那位大大告知,如何得到外部程序运行的返回值? 比较急,给分100。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货