Why do files get placed in “C:\Users\AppData\Local\VirtualStore\Program Files(x86)”?

前端 未结 2 1586
逝去的感伤
逝去的感伤 2020-11-27 04:57

I recently updated my Visual Basic 6.0 application and now include an exe.manifest file to prevent UAC Virtualization. After applying this update, some users can\'t find the

2条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 05:11

    My guess is that your manifest says asInvoker, and that your app tries to write to Program Files. When the users ran it without a manifest, it wrote to the virtual store for Program Files, which is the path where they found some files later. When they ran with a manifest, it failed to write at all (with access denied) but either your application hid the error from them, or they didn't understand the error so they didn't mention it to you.

    Short term fix - use a requireAdministrator manifest. This will irritate the users but the writes will succeed. Longer term fix - don't write to ProgramFiles. There are better per-user options, like AppData.

提交回复
热议问题