473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Multiuser .exe file overwrite issue

Hi,

we are in these days deploying a .NET windows app. The exe file is meant to
be self-updating (custom built logic) by downloading newer versions when a
new version is built. There is a problem however in cases where multiple
users are running of the same .exe file, like in a terminal server
environment.

I have looked into using mutexes
(http://www.jrsoftware.org/iskb.php?mutexsessions), but I don't think this
is such a good idea. I don't think sending a message to all users that they
have to close the program down is a good way to do this and neither do I
want to close all sessions down by force (possibly causing loss of data).

The program is not really meant to be run off the same exe file, perhaps
there is a way to tell the users that another user has already started the
application and that they should run it off their "home" area. Or could I do
something similar than Java where instead of an exe file I start up the
program by running the java interpreter on a startup class?

Any suggestions would be greatly appreciated!

Cheers,
Trygve Lorentzen
Software Developer
ProTeria as
Nov 16 '05 #1
2 1677
Hi,
Maybe a better option ( at least less intrussive ) is placing a script in
the Run|RunOnce section in the registry, in this way you will wait until the
next reset to update your application, it will be performed BEFORE anybody
logs in so there would be no problem with that.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Trygve Lorentzen" <trygveloAThaldenDOTnet> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

we are in these days deploying a .NET windows app. The exe file is meant
to
be self-updating (custom built logic) by downloading newer versions when a
new version is built. There is a problem however in cases where multiple
users are running of the same .exe file, like in a terminal server
environment.

I have looked into using mutexes
(http://www.jrsoftware.org/iskb.php?mutexsessions), but I don't think this
is such a good idea. I don't think sending a message to all users that
they
have to close the program down is a good way to do this and neither do I
want to close all sessions down by force (possibly causing loss of data).

The program is not really meant to be run off the same exe file, perhaps
there is a way to tell the users that another user has already started the
application and that they should run it off their "home" area. Or could I
do
something similar than Java where instead of an exe file I start up the
program by running the java interpreter on a startup class?

Any suggestions would be greatly appreciated!

Cheers,
Trygve Lorentzen
Software Developer
ProTeria as

Nov 16 '05 #2
You should make it mandatory that each user run it off their home area
*every* time.

S. L.

"Trygve Lorentzen" <trygveloAThaldenDOTnet> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

we are in these days deploying a .NET windows app. The exe file is meant
to
be self-updating (custom built logic) by downloading newer versions when a
new version is built. There is a problem however in cases where multiple
users are running of the same .exe file, like in a terminal server
environment.

I have looked into using mutexes
(http://www.jrsoftware.org/iskb.php?mutexsessions), but I don't think this
is such a good idea. I don't think sending a message to all users that
they
have to close the program down is a good way to do this and neither do I
want to close all sessions down by force (possibly causing loss of data).

The program is not really meant to be run off the same exe file, perhaps
there is a way to tell the users that another user has already started the
application and that they should run it off their "home" area. Or could I
do
something similar than Java where instead of an exe file I start up the
program by running the java interpreter on a startup class?

Any suggestions would be greatly appreciated!

Cheers,
Trygve Lorentzen
Software Developer
ProTeria as

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pablo | last post by:
At my current job I've been tasked with maintaining a very old C++ application written largely in ANSI c++ in what I believe to be with an old DOS based Borland compiler. I'm trying to add a...
0
by: Durai | last post by:
Hello All, How to test the "Multiuser testing" in PostgreSQL?. I used the apache bench "ab" tool for this one. The following command execute the "test.php" 50 times concurrently. $ ab -c 1...
0
by: qh0st | last post by:
Hi all. I have a frustrating issue that I can't seem to figure out. EXPERTS please help me~! Deadline is coming up soon~! My task is to localize a winform application. The .Net Designer...
2
by: B-Dog | last post by:
Is there a way to make vb.net to overwrite the file when moving? Here is what I'm trying to do: If System.IO.File.Exists(dest) Then 'handle overwrite here If MessageBox.Show("Do you want...
8
by: Peter | last post by:
I'm trying to write a proceedure that will delete a file completely off a hardrive. I just don't want to kill the file. I want to rewrite over the data with 1's and 0's 8 times. Anyone have an...
6
by: electrixnow | last post by:
in VC++ Express Edi Is their a way to replace one line of TEXT in an existing text file. I now open it then read in the data, once I have found somthing that needs updating, I need to overwrite...
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
26
by: Army1987 | last post by:
Is this a good way to check wheter a file already exists? #include <stdio.h> #include <stdlib.h> int ask(const char *prompt); typedef char filename; int main(int argc, char *argv) { FILE...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.