Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 92661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:13:19+00:00 2026-05-10T23:13:19+00:00

I have an application written in Delphi 7 which does not require an admin

  • 0

I have an application written in Delphi 7 which does not require an admin privilages to run.

For some reason I am able to save files to c:\windows and c:\windows\system32 from within the application even though the application has not requested UAC elevation. I am logged in as an admin with UAC turned on and I haven’t changed any of the default UAC settings. The files actually show up under Windows Explorer as well. I am not using the ‘Run as Administrator’ option.

If I try to do the same thing using WordPad under the same profile I get an error as expected.

Any ideas what is going on?

Th application is using Ole Structured Storage to save and includes the following manifest, if that helps.

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>     <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>     <assemblyIdentity type='win32' name='DelphiApplication' version='1.0.0.0' processorArchitecture='*'/> <dependency> <dependentAssembly>   <assemblyIdentity     type='win32'     name='Microsoft.Windows.Common-Controls'     version='6.0.0.0'     publicKeyToken='6595b64144ccf1df'     language='*'     processorArchitecture='*'/> </dependentAssembly> </dependency> <trustInfo xmlns='urn:schemas-microsoft-com:asm.v2'>             <security>                     <requestedPrivileges>                             <requestedExecutionLevel                                    level='asInvoker'                                    uiAccess='false'/>                     </requestedPrivileges>             </security>     </trustInfo> </assembly> 

Edit: To be clear my application does not save anything to these locations by default. I am choosing these locations via the standard file save dialog.

Update

I have found out why my application was being treated as legacy despite including the above manifest. It turns out a 2nd manifest was also being included which did not have the ‘trustInfo’ section. I have removed this 2nd manifest and all is well now.

Thanks for all the help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:13:19+00:00Added an answer on May 10, 2026 at 11:13 pm

    This is a feature of UAC to make old applications compatible with Vista. It redirects any request to write to a system folder that the user lacks permission to a local folder.

    They are stored under ‘AppData\Local\VirtualStore’ folder under the current user’s profile. There is a group policy setting to disable this feature: ‘Virtualize file and registry write failures to per-user locations’

    This file and registry virtualization features are designed to allow legacy applications to run under Windows Vista standard user accounts. Legacy application is defined as a 32-bit executable without a specific Vista manifest. If you provider a Vista manifest to decorate your application as Vista-compatible, this virtualization setting won’t affect your application (as in your Wordpad example)

    Mark Russinovich has a great article on this: Inside Windows Vista User Account Control

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I would strongly consider Moq as well if you're working… May 11, 2026 at 2:06 pm
  • added an answer Press y to yank what you've got selected visually, then… May 11, 2026 at 2:06 pm
  • added an answer Marshaling and serialization are loosely synonymous in the context of… May 11, 2026 at 2:06 pm

Related Questions

I have an application written in java, and I want to add a flash
I have an application written in C#.Net (Framework 2.0 if it matters). It calls
I have an application written in VB.NET that interacts with Excel via interop. I
Question I have an application written in Java. It is designed to run on
I maintain an old PC-only application written in Delphi 7. Although Delphi has served
I have a MDI application written in Delphi 2007. If the user exits a
I have just written my own logging framework (very lightweight, no need for a
OK. I'm starting my first OS X application. Instead of doing something obvious or

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.