프로젝트의 설치 프로그램과 제거 프로그램을 만들기 위해 NSIS를 배우려고합니다. 자습서 섹션의 예제를 따르려고합니다.NSIS 오류 : 잘못된 스크립트 : OutFile 명령이 없었습니다
이invalid script: never had OutFile command.
내가 상단에있는 OUTFILE 명령을 볼 수 있지만 그것이 왜 알아낼 수 없습니다 : I라는 오류를 얻고,
# define the name of the installer
outfile "installer.exe"
# define the directory to install to, the desktop in this case as specified
# by the predefined $DESKTOP variable
installDir $DESKTOP\Harshit\NSIS\Scripts
# default section
section
# define the output path for this file
setOutPath $DESKTOP\Harshit\NSIS\Files
# define what to install and place it in the output path
File test1.txt
# define uninstaller name
writeUninstaller $DESKTOP\Harshit\NSIS\Scripts\uninstaller.exe
sectionEnd
# create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
section "Uninstall"
# Always delete uninstaller first
delete $DESKTOP\Harshit\NSIS\Scripts\uninstaller.exe
# now delete installed file
delete $DESKTOP\Harshit\NSIS\Scripts\Files\test1.txt
sectionEnd
그러나 - : 나는 다음과 같은 스크립트를 시도 작동 안함. 어떤 조언을 해주시겠습니까?
아니요. 다시 확인했습니다. 올바른 파일을 컴파일러에 전달하고 있습니다. 그러나 줄을 추가하면! error filename이 표시되고 같은 오류가 표시됩니다. 또한 모든 사용자가 폴더에 쓸 수 있도록 폴더의 사용 권한을 변경했습니다. – user1439090