mikey186 wrote: ↑Mon Mar 18, 2019 5:14 am
Put it this way, especially, say.....if it's a expansion for another program (or sometimes) a game, then a user would require to search for a specific file somewhere in the bin or anywhere else for a matching version or a matching text, and if passed, then it will keep going. It's kinda hard to explain, but hope this helps. Some installers (especially InstallBuilder) has that compare file feature as well.
I understand comparing files as part of an updater, which would apply to expansion packs as well. The part I don't see an explanation for is requiring the end user to navigate through a file dialog to a specific file that is part of an installed program.
Anyone publishing programs (and updates to programs they have published) should well know the places to look for said program, and the directory structure it would use, thereby eliminating the need for an end user to find a file for them.
In Windows, you'd be looking for the install location in the registry. In 'nix, there are only a few places you'd actually install something, and they would be trivial to search. Mac, as Klaus pointed out earlier, is even more limited in where you might have a program located.
If your applying an update/expansion to a product you haven't created, or don't know well enough to know the above, that sounds a little dubious to me.
mikey186 wrote: ↑Mon Mar 18, 2019 5:14 am
As for the code, I did add 'end if' to the middle 'IF' statement, and it's still giving me the error. I'm sure I put then in the correct position?
Adding the missing 'end if' doesn't fix the problem of the missing "then" complaint, I was just noting it was missing.
As far as the statement goes, to me it looks like
Code: Select all
if file OBJFilePath contains "test"
is what the debugger would actually be complaining about. It is telling you 'then' is missing when it obviously is not, so the statement before then is suspect.