Author Topic: Windows Vista / 7 UAC and FSO (coders, please read.. pretty please?)  (Read 15657 times)

0 Members and 1 Guest are viewing this topic.

Offline Iss Mneur

  • 210
  • TODO:
Re: Windows Vista / 7 UAC and FSO (coders, please read.. pretty please?)
Maybe...

The problem comes down to how does wxLauncher know where to find this config file?  The config file that tells it where to find stuff like its config files?  This is chicken and egg sort of stuff.

Two "eggs" that an application always gets are its compile options and its commandline which is why it almost always implemented as one of those two options.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Windows Vista / 7 UAC and FSO (coders, please read.. pretty please?)
Have it always search the working directory, and have that config file able to point to another config file if you don't want the config file there.  You could also use the registry but that's not cross-platform friendly.

I wish OSX and Linux could use the filesystem as a substitute for Windows registry entries.  e.g., <current dir>/HKLM or HKCU/Software/Microsoft/Windows/CurrentVersion/Uninstall.reg  Just have Uninstall.reg contain all necessary values and have it compatible with Windows registry editor, so you can use that to import/export/edit/ yada..

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Windows Vista / 7 UAC and FSO (coders, please read.. pretty please?)
id say place a file that only contains paths to other files/directories in the standard location (for example %APPDATA%\fspaths.cfg). then you can configure these paths in the launcher or use defaults (for example my games\fs2). then the actual settings/application/mods directories can be placed anywhere. though id default them to my games\fs2open\settings, program files\games\freespace 2\, and my games\fs2open\mods, respectively. you might want to install the launcher and the fs2open engine in different places, though, id prefer to keep stuff in as few places as possible, for ease of backup.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: Windows Vista / 7 UAC and FSO (coders, please read.. pretty please?)
just for the record the secure file protections system (the stuff that keeps you from ****ing up OS files) works on the basis of an include list not a "everything on this drive!" semantic.

(i would know.. being that i have to turn off it protecting files when i install private binaries at work)
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir