就一行代码,FileInstall问题,能运行却无法编译!
运行环境:Vista 32位,管理员权限FileInstall (@DesktopDir&"\LOGO.JPG", @TempDir&"\KLU3K.JPG",1)
按F5运行正常,但按F7编译时出现:
---------------------------
Aut2Exe Error
---------------------------
Invalid FileInstall() function:
---------------------------
确定
---------------------------
晕死,解决了,原因是: 在FileInstall中使用了变量
[ 本帖最后由 KLU3K 于 2009-2-24 20:50 编辑 ] 也包括宏么? :face (3): 源文件地址 好像要相对或绝对路径,不能用变量 源文件: 要装入到编译程序中的文件的路径。文件名必须是字符串,不能是任何变量。 仔细看帮助就能避免了 Local $bFileInstall = False ; Change to True and ammend the file paths accordingly.
; This will install the file C:\Test.bmp to the script location.
If $bFileInstall Then FileInstall("C:\Test.bmp", @ScriptDir & "\Test.bmp")
文件的内容如上,怎么修改?请高手指教啊,我的还是不能编译
页:
[1]