virtualstore

How to detect file redirection to the Windows VirtualStore?

跟風遠走 提交于 2019-12-17 16:13:43
问题 Since the release of Win Vista, Microsoft introduced file virtualization for legacy applications running as 32bit processes. Released as part of Microsoft's User Account Control (UAC) any legacy applications attempting to write to any locations considered protected by the operating system are redirected to the VirtualStore. At this point, steps have been taken to ensure that the application in question now runs as a 64bit process that is UAC aware, however, this does little to address the

Get real path of a log file stored in VirtualStore

我与影子孤独终老i 提交于 2019-12-12 08:58:55
问题 My application stores log files in a location which, depending on admin settings, can get redirected to a folder in the VirtualStore. They sometimes end up in, for example: The log file is in: C:\Users\-my username-\AppData\Local\VirtualStore\Program Files (x86)\ *my-application* \logs C# thinks it is here: C:\Program Files (x86)\ my-application \logs This is only a problem in one part of the code - a button which tries to open the log file in notepad. It runs Process.Start( path-where

Get the Virtual Store path?

吃可爱长大的小学妹 提交于 2019-12-11 03:39:36
问题 I'm installing an application and want to set values for an ini file. Unfortunately, our main application is still built on a platform that gets redirected to the virtual store. Is there a way to get Inno Setup to store the ini file in the virtual store directly? 回答1: I believe there's even no Windows API to retrieve the path to the virtual store, let only possibility to retrieve it reliably using Inno Setup. But you can guess it to be {localappdata}\VirtualStore\path . [Files] Source:

Reading from a database located in the Program Files folder using ODBC

99封情书 提交于 2019-12-11 00:39:33
问题 We have an application that stores its database files in a subfolder of the Program Files directory. These files are redirected to the VirtualStore in Vista and Windows 7. We represent data from the database using Microsoft DataReports (VB6). So far so good. But we now want to use Crystal Reports XI to represent data from the database. Our idea is to NOT pass this data to CR from our program, but to have CR retreive it from the database using a a system DSN through ODBC. In this way we hope

Get the Virtual Store path?

喜夏-厌秋 提交于 2019-12-08 10:44:29
问题 I'm installing an application and want to set values for an ini file. Unfortunately, our main application is still built on a platform that gets redirected to the virtual store. Is there a way to get Inno Setup to store the ini file in the virtual store directly? 回答1: I believe there's even no Windows API to retrieve the path to the virtual store, let only possibility to retrieve it reliably using Inno Setup. But you can guess it to be {localappdata}\VirtualStore\path . [Files] Source:

Get real path of a log file stored in VirtualStore

南楼画角 提交于 2019-12-04 14:51:31
My application stores log files in a location which, depending on admin settings, can get redirected to a folder in the VirtualStore. They sometimes end up in, for example: The log file is in: C:\Users\-my username-\AppData\Local\VirtualStore\Program Files (x86)\ *my-application* \logs C# thinks it is here: C:\Program Files (x86)\ my-application \logs This is only a problem in one part of the code - a button which tries to open the log file in notepad. It runs Process.Start( path-where-application-thinks-log-files-are ); If I test this using File.Exists( path-where-application-thinks-log-files

How to disable VirtualStore for C++ programs?

故事扮演 提交于 2019-12-01 04:04:51
I'd like my program to throw an error when it tries to create files in protected locations like the root of the C:\ drive (eg: FILE* FileHandle = fopen("\\file.txt", a) ). Instead the file gets created in the Virtual Store under %APPDATA%. How can I disable that Virtual Store? Thanks EDIT: Just to be clear, I'm not asking how to circumvent the security and create my file in a protected location. I want the file creation to FAIL so that I can tell the user he was an idiot. Joshua You add an application manifest. Choose asInvoker, highestAvailable, or requireAdministrator. It sounds like you

How to disable VirtualStore for C++ programs?

南笙酒味 提交于 2019-12-01 01:14:22
问题 I'd like my program to throw an error when it tries to create files in protected locations like the root of the C:\ drive (eg: FILE* FileHandle = fopen("\\file.txt", a) ). Instead the file gets created in the Virtual Store under %APPDATA%. How can I disable that Virtual Store? Thanks EDIT: Just to be clear, I'm not asking how to circumvent the security and create my file in a protected location. I want the file creation to FAIL so that I can tell the user he was an idiot. 回答1: You add an

How to detect file redirection to the Windows VirtualStore?

限于喜欢 提交于 2019-11-27 21:34:16
Since the release of Win Vista, Microsoft introduced file virtualization for legacy applications running as 32bit processes. Released as part of Microsoft's User Account Control (UAC) any legacy applications attempting to write to any locations considered protected by the operating system are redirected to the VirtualStore. At this point, steps have been taken to ensure that the application in question now runs as a 64bit process that is UAC aware, however, this does little to address the issue of migrating the users data to a location that is considered safe from virtualization. While