Vista compatibility - fuss over nothing?

Miscellaneous Forums/General Discussion/Vista compatibility - fuss over nothing?

What about if you apply SetFileMode <file>,%110110110 after you've written/created your file(s)?

Surely this would require you to have permissions to change the file permissions in the first place? Seems somewhat prone to failure.

I started to mess with file permissions when I ran into account issues on the Mac. As I understand it, the program/account creating the file has the necessary permissions to change them. This solved my problem on the Mac (and Linux), and seems to be avoiding issues on Vista.

Also, as GFK pointed out, you do need to have the installer of the app run from an admin account and have it install for all users. Otherwise it will just fall over in any number of places. I went through similar pains when I first checked through all my back catalogue.

Ideally I'd like to be able to save data to a common path. From what I've read (on indiegamer - email from a portal to Grey Alien regarding this issue), it should be possible to do this. Just haven't worked out how, yet.

You can retrieve most of the special folders you'll need via the environment variables. Type 'set' at a command prompt for a list of them and you'll soon see which you'll need. There's also some code in the Win32 forum for finding other special folders.

Maybe I'm just being ignorant of others experiences here, but I've had none of this trouble and have not found a need to make use of the 'proper' folders so far. I did actually prepare code to make use of them before I got Vista, but then found it wasn't as big a deal as I thought it would be. Or maybe it is, but I'll thoroughly check this out before release.

Flameduck has a good point. If your game isn't running in adminstrator mode I guess it can't change the file rights to Everyone? This would need testing.

I checked the file properties after the file was created in a standard account and Everyone was enabled for read/write permissions.

Weird how JazzieB's system it's fine and not on GFK's. Could it be due to different versions of Vista as there are a few? Or maybe it's just down to how it's installed. Maybe JazzieB needs to do Indiepath's generic non-Blitz non-installer test?

I'm using the Ultimate edition, but surely UAC and permissions should work the same no matter what version is being used. There's no mention in that MS link that indicates this. As for the non-installer test, I don't think it's really necessary, as the end-user will always be using an installer. It would be interesting to see what happens if the files are just copied into the Program Files folder though.

I'll be glad when we get to the bottom of this and find a definitive right way of doing things.