I'm working on making a vb6 application compatible with vista. I'm here to ask about what can cause permission problems. I don't have my own copy of Vista to test on yet, so I need a general idea what I can and can't do. I've done a quite a bit of searching, but all the stuff I can find just sortof misses the points I really want to know.
Currently the app writes to program files. I am going to be moving all the application data to the UserAppData folder, but what am I allowed to do in that folder? Am I allowed to create a subdirectory in UserAppData? Can I delete folders and files there? Do I get a special folder for my program or something?
The app also writes some 'save' files to program files, and those will be moved to a folder in my documents. Once again, do I need permissions to create folders and files there, and can I delete files/folders?
The application also includes an updater, which downloads files from a server then shuts down and starts a local updater program [the program might update the local updater before running it] which uses regsvr32.exe to register any new DLLs and EXEs. This requires writing to program files, so I need to know how to elevate permission when updates are going to be installed. I also need to know if regsvr32.exe is going to be causing problems.




Reply With Quote