Access Denied Error while Updating

Hey wyBuilders,

I was testing out an update with our application and I ran into a odd corner case that caused the update to fail. First of all I would like to say that our application is normally installed at the root of a drive. The way our application looks from a files standpoint is as follows:

"E:\OurAppFolder\""E:\RunOurApp.bat"

Now the user may have other files and folders located at their root but I assumed that wyBuild doesn't care about those files/folders and is only looking for E:\OurAppFolder\ and E:\RunOurApp.bat .

The issue we found is that with NTFS format there is a "System Volume Information" directory that is only accessible by the SYSTEM group. When a user updates an Error gets thrown along the lines of "Update Failed: Unable to access E:\System Volume Information"

My first question is why is wyUpdate trying to access this file? Shouldn't it only be looking for the two files listed above? Also is there a current work around for this?

Regards,Magnets

wyUpdate is likely trying to get query permission information from the drive. Don't put wyUpdate in the root of your drive. At least, not unless your app controls all the contents of the drive (e.g. a USB stick).

Put wyUpdate in your app's sub directory: "E:\OurAppFolder\" not in "E:\"

Hey Wyatt,

Our app does control all the contents of the drive. It is shipped out of our office on USB sticks. The application is meant to be ran on a computer via the dongle we provide our customers. Is there anyway possible that we can tell wyUpdate to not query permission information from certain known files. When we format our USB drives to NTFS, sometimes a System Volume Information directory is created. Is there anyway we can make this work?

Regards,Magnets

Well, the best option is to either put wyUpdate in a subdirectory. Or explicitly tell wyUpdate to use a specific installation folder (e.g. -basedir="E:\YourAppFolder"). Or don't create the "System Volume Information" folder.

Hi Wyatt,

Our App just started using wyBuild to update. Before we would just inform the user there was a new update they could download off of our website. That being said we rolled out application with a call to wyUpdate.exe running it from the root directory. We sadly don't have the luxury of not creating the "System Volume Information" file because it already exists on many of our users dongles. Within the code we call wyUpdate.exe from basedir="E:" already so they only way to change that is to update OurApp.exe with the code change of basedir="E:\OurAppFolder". So I am basically looking for a solution to this particular issue.

Regards,Magnets

Well, I gave you a few solutions already. Other than that, maybe modify wyUpdate to ignore that specific system folder. Or require wyUpdate to be run as an admin at all times.

But really, the best solution is to never run wyUpdate (or any program, really) in the root of a drive.