Cameyo doesnt seem to delete disk files when run from usb and usb is removed before application ends completely. I selected not to save anything on exit but in this circumstance it leaves the files behind and then reuses them when started again which is not our desired behavior as we want the package files to be clean each time. Looking for ideas on how we can get this accomplished.
In Package Editor, go to Files tab and click "FileSystem", and then on the top right, set folder isolation to "Strictly Isolated." Then go to Registry tab and Click registry and once again set folder isolation to "Strictly Isolated." Setting these to "Strictly Isolated" will tell cameyo that it should ignore any data or settings stored on the pc and instead load settings and data directly from the Virtual App you made with Cameyo. This should resolve this specific issue. Please note that it is bad practice to remove a storage device when you are still using it. Doing so can cause the storage device to corrupt itself. Please use the "Safely Remove Hardware" feature in your tray or eject the storage device from My Computer.
Also, I have found in some rare cases, you may not be able to eject properly. If this happens, open task manager and close all rundll32.exe and explorer.exe processes and then relaunch explorer.exe. This should fix the issue. Not confortable doing this? Just turn off/restart your pc and unplug the drive. The reason this happens is because your virtual app has restarted Explorer.exe under it's virtualization mode. You can also fix this by excluding the child process "explorer.exe" in Package Editor's Advanced tab.
-- Edited by betaleaf on Sunday 31st of January 2016 07:02:19 PM
Thanks, I did try but I got the same result. For example if I set the data files location to %appdata%\myapp and select don't save changes in the configuration when I exit it appears to delete the files in that directory when it closes. If it doesn't close properly the files remain and are reused on the next launch. My app cannot have the package reuse previous data on subsequent launches.
What? I never said anything about changing where your data files are stored. I said to set your FileSystem to Strictly Isolated.
Also, I mentioned this in my previous post. It is bad practice to remove a storage device when you are still using it. It is no wonder you are having issues. Use the Safely Remove Hardware Feature on your computer. It exists for a reason :P