PDA

View Full Version : Vista Safe Folder ??


RizlaUK
03-30-2008, 07:28 PM
am i right in assuming that "C:\Documents and Settings\UserName\Application Data" is a vista safe folder

i mean, will my application be able to save its settings there no matter what access the user has

if not......where is a safe bet?

rexzooly
03-30-2008, 07:38 PM
am i right in assuming that "C:\Documents and Settings\UserName\Application Data" is a vista safe folder

i mean, will my application be able to save its settings there no matter what access the user has

if not......where is a safe bet?

that is the safe place fair as i am know in all nt os's reading MS blorb might be a good idea on the matter also.

Dermot
03-30-2008, 09:35 PM
Well I thought it was a save place but lately users have been reporting problems and it turns out that my installer is not always installing a settings file there. I have to get them to turn UAC off and reinstall. It only happens for some. So I am switching to using My Documents.

RizlaUK
03-30-2008, 11:22 PM
ah ok, all i need to know,

i'll create a profile folder in my docs if vista, but out of the way in xp

what about installing activex, if the installer requiers admin token but the user dose not have it will it fail to register the activex ?

if so i'll will put a notice in the installer to disable UAC before install

Dermot
03-30-2008, 11:33 PM
I install several active controls and my instaler requires admin rights to run. So far have not had any problems with 700 - 800 installs. So UAC does not seem to be a problem with activex controls as long as they have admin rights. Of course that doesn't mean you won't run into problems. Nothing surpeise me with Vista anymore.

ShadowUK
03-31-2008, 12:43 AM
If vista shows a UAC dialog when you load your application it means that it does not have access to the folder it is writing to, Which is the Temp folder, Basically. Try writing to the Temp Folder as AMS does this anyway when it extracts it's runtime.

Dermot
03-31-2008, 12:51 AM
You can't use the Temp folder for settings or user data because it will get wiped out.

RizlaUK
03-31-2008, 02:47 AM
ok, i take all that on board, i'll just have to make sure i have some extra fail-safes for a vista setup

Cheers Dermot