I want to write a bat file on my installation and have tried this
FileOpen $9 "${SOURCE}\\bin\\ssShutDown.bat" w
IfErrors 0 NoError
MessageBox MB_OK "File open error"
Goto ErrorYay
NoError:
MessageBox MB_OK "FileOpen"
ErrorYay:
DetailPrint $9
FileWrite $9 "C:\\SimFlex-stability\\bin\\KillApps.exe c:\\SimFlex-stability\\bin\\dssShutdown.txt"
FileWrite $9 "C:\\Program Files\\CNS International\\The InterCom System\\Server\\ICSvrNT.exe /stop"
FileWrite $9 "C:\\SimFlex-stability\\bin\\KillApps.exe c:\\SimFlex-stability\\bin\\dssShutdown.txt"
FileWrite $9 "C:\\Program Files\\CNS International\\The InterCom System\\Server\\ICSvrNT.exe /start"
FileClose $9 But i Allways run in to the File open error.By the way a actualy wants to write quotes (") in the string How can i do that.
Any suggestions