Fileopen Big problems
I'm writing an installer who creates a text file. The problem is that it it aint being created. It does run throw the installer but does not create the file dice100.path
This is the codein the mainpart:
Section -MainProgram
${INSTALL_TYPE}
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Commands.lng"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Dice100Client.exe"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\mscomctl.ocx"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\MSWINSCK.OCX"
SetOutPath "$INSTDIR\Resources"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Resources\Dice100.ico"
SetOutPath "$INSTDIR\Language"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Language\eng_programtext.sdf"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Language\eng_skills.sdf"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Language\nor_programtext.sdf"
File "E:\Project Dice100\Dice100client + installer\Dice100Client\Language\nor_skills.sdf"
; We make our Dice100.path file
DELETE "$APPDATA\Dice100.path"
ClearErrors
FileOpen $0 "$APPDATA\Dice100.path" w
iferrors 0 Outdata
MessageBox MB_OK "Error creating Dice100.path"
goto done
OutData:
FileWrite $0 "version=1$\r$\nclientpath=$INSTDIR$\r$\n"
Done:
FileClose $0
SectionEnd
Anyone has any idea?