mgzuck
7th June 2002 14:39 UTC
Adding to a text file
Basically, as an end step to my installation, I want to add some text to the end of a file that already exists. I'm a little flaky on how to do this.
FileOpen $0 "c:\progra~1\javawe~1\javaws.cfg" a
FileSeek $0 0 END
FileWrite $0 "javaws.whenInstall=1"
FileClose $0
Is this right, not right, etc.
Smile2Me
7th June 2002 14:47 UTC
Yes, should work, but be carefull when specifying this absolute path. On the destination computer javawe~1 might not be the right dir. Eg.: when the program has actually been installed to javawe~2 or on some completely other drive or dir. Use some regentry of the main program to find this dir with long or short name.
-Hendri.