Reputation:
I created an application in C# that is launched at login to keep track of software installed through thousands of computers. Maintenance is near impossible since the executable is launched from a network share and is often locked as expected.
The use of another executable file could solve this issue by looking into a xml file for a true/false boolean before accessing the main executable:
AccessManager.exe --> XML, if true --> main.exe
if false, exit!
But I would have then to create another project. Is there any way to avoid that?
EDIT : A database file (SQLite) is in the same folder as the main app.
Upvotes: 0
Views: 63
Reputation: 1041
Why not have a command script that copies the app to the user's appdata folder and then runs it from there? Then nobody ever has a lock on the executable and when you update it the users will get the newest version when they log in again.
BTW, if the user loses network when running from a network share.... Not good.
Upvotes: 1