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

  • SEARCH
  • Home
  • 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 8082533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:08:27+00:00 2026-06-05T17:08:27+00:00

I am creating a software application that is able to update itself. After the

  • 0

I am creating a software application that is able to update itself. After the start, the application checks if there are updates avaiable, download those files (assemblies), and then proceeds loading them.

However, the problem is when the application is run by multiple users at the same time. This happens when running on a terminal server. The application can’t replace those old files, since windows keeps them locked.

Is there a simple way to solve this problem? It’s a legacy application, and I don’t have the time to alter big parts of the application or the update mechanic.

  • 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. Editorial Team
    Editorial Team
    2026-06-05T17:08:30+00:00Added an answer on June 5, 2026 at 5:08 pm

    A simple solution would be to use Shadow Copying.

    Simple example:

    class Program
    {
        static void Main(string[] args)
        {
            var x = AppDomain.CreateDomain("TestAssembly", null, new AppDomainSetup() { 
                                                                ShadowCopyFiles = "true",
                                                                CachePath = @"c:\tmp", 
                                                                ApplicationName = "ShadowCopyTest"
                                                           });
            var a = x.Load("TestAssembly"); // Load Assembly and run...
        }
    }
    

    You could create an executable that would load your application (your executable users are starting right now) into a new Application Domain using Shadow Copying. CachePath has to be user specific, e.g. the users temp directory.

    This way, each user would create a copy of all assemblies loaded by your application. But you have to take care of cleaning up the copied files yourself.

    All you have to do then is to ensure the application gets started by your new wrapper executable.

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

Sidebar

Related Questions

I am creating a script to configure and launch software. My current application requires
What are the standard options for creating install packages for your software application? I
I am creating a simple piece of software with very simple requirements. Is there
I'm creating an application that I want to put into the cloud. This application
I am creating a verification utility that check various parts of an application to
I'm creating an offline search-engine like application that's also like a dictionary, and I
I'm thinking about creating an application (or refactoring other in-house software) which could work
I'm creating a multiple-tenant application that won't use any of the standard Django Admin
I am creating a c# windows form application that goes read registry on remote
I'm creating a piece of software (written in C#, will be a windows application)

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.