【发布时间】:2011-10-20 01:12:40
【问题描述】:
我想将安装程序复制到安装位置。
我正在运行文件:Installer.exe 我希望它将自己复制到 $INSTDIR
我试过了:
CopyFiles "Installer.exe" "$INSTDIR\Installer.exe"
我在安装日志中看到“复制失败”。
试过开源,读源码,开dest,写dest:
FileOpen $4 "Installer.exe" r
FileRead $4 $1 80000
FileClose $4
FileOpen $4 "$INSTDIR\Installer.exe" w
FileWrite $4 $1
FileClose $4
它创建 $INSTDIR\Installer.exe 但在安装完成后,它得到了 0 个字节。
你还有其他方法吗?
谢谢!
【问题讨论】: