/build/static/layout/Breadcrumb_cap_w.png

Runtime files getting created in local windows folder

Hi,
I am working on an app that needs to create runtime files in the Windows folder. I've added some as empty files into the Virtual package (CSIDL_WINDOWS) and the application updates them fine.
However it needs to create dynamically named files (depending on the way the application is used) to save user settings. The problem is that its failing to create the files in the virtual environment and even if I add an empty file into the virtual env with the correct name it fails to update it. It will always try to create the file in the local C:\Windows folder.
Anyone have any ideas?
Cheers,

0 Comments   [ + ] Show comments

Answers (3)

Posted by: kkaminsk 15 years ago
9th Degree Black Belt
0
Hmm, I wonder if it is sneaking out of the sequence somehow. Have you done a procmon trace to see exactly what process is writing these files? Can you determine if this process is running inside the sequence or did the application call something outside of the sequence that didn't launch inside the sequence.
Posted by: ChluainEois 15 years ago
Senior Yellow Belt
0
Thanks for the tip, but I checked again and the process is running inside the sequence and its the same process that opens and writes other INI files in the virtual environment.
Posted by: kkaminsk 15 years ago
9th Degree Black Belt
0
Ah, this is probably because your application is creating random file names in a folder not set to be fully virtual. The problem is setting the windows folder to be virtualized will probably break your application. I havent worked with the application compatibility shims to know if you can redirect calls for one file type such as .ini files but that might be something to explore.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ