>>Yes, i am using from this method for many years. but now i have a loader for main program.
>>I have MainApp.exe and Main001.exe, Main002.exe, Main003.exe in one share folder. when user run the MainApp.exe, this run Main003.exe ( as bigger Main???.exe in folder ) this is for program upgrading. but now i lose locked users! i dont know why. so i want to find another way if possible.
>
>Locks should not be released just because you execute another exe unless you are calling out to it and terminating the calling exe.
But then the locking should be done by the main.exe, not the loader.