Home All Groups Group Topic Archive Search About

Process.Start executing old version of my EXE

Author
3 May 2006 9:38 PM
google
Hi everyone,

>From my WinForms app I am executing an external process. It turns out
that I have replaced the EXE of the external process with a newer
version and my WinForms app is still executing the old one. I am using
Visual Studio 2005 and programming in C#.

I have been wrecking my brains for two days and I can't find a possible
explanation. These are the things I have tried so far:
-Renaming the new EXE and, of course, referencing the new name in my
code.
-Deleted all the MUICache entries in the registry.
-Removed the EXE completely from my Visual Studio solution and added it
again.
-Deleted all the suspicious caching files of Visual Studio.
-If I xcopy my app to another computer it works.
-If I xcopy my app to another folder in the same dev computer it works
only once; in subsequent runs the old version of the EXE is called
(even with a different EXE name).

This is absolutely frustrating.

I would appreciate any input.

Thanks much!

Author
3 May 2006 11:25 PM
Phil Wilson
Is there an entry for that external exe in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths?
--
Phil Wilson [MVP Windows Installer]
----
<goo***@schwarzsolutions.com> wrote in message
Show quote
news:1146692317.414010.190550@y43g2000cwc.googlegroups.com...
> Hi everyone,
>
>>From my WinForms app I am executing an external process. It turns out
> that I have replaced the EXE of the external process with a newer
> version and my WinForms app is still executing the old one. I am using
> Visual Studio 2005 and programming in C#.
>
> I have been wrecking my brains for two days and I can't find a possible
> explanation. These are the things I have tried so far:
> -Renaming the new EXE and, of course, referencing the new name in my
> code.
> -Deleted all the MUICache entries in the registry.
> -Removed the EXE completely from my Visual Studio solution and added it
> again.
> -Deleted all the suspicious caching files of Visual Studio.
> -If I xcopy my app to another computer it works.
> -If I xcopy my app to another folder in the same dev computer it works
> only once; in subsequent runs the old version of the EXE is called
> (even with a different EXE name).
>
> This is absolutely frustrating.
>
> I would appreciate any input.
>
> Thanks much!
>
Author
3 May 2006 11:49 PM
google
No, there is no entry for that exe in the registry. My external exe is
a very simple console app written in C++. If I double-click on the app
in Windows Explorer, naturally the correct version is executed.
However, when I run the process from my C# program using Process.Start
with the correct working directory parameter, filename, etc., then the
old version is executed and does not even exist on the hard drive. Can
you believe this?
Author
7 May 2006 3:59 PM
Willy Denoyette [MVP]
<goo***@schwarzsolutions.com> wrote in message
news:1146700169.578513.123850@y43g2000cwc.googlegroups.com...
| No, there is no entry for that exe in the registry. My external exe is
| a very simple console app written in C++. If I double-click on the app
| in Windows Explorer, naturally the correct version is executed.
| However, when I run the process from my C# program using Process.Start
| with the correct working directory parameter, filename, etc., then the
| old version is executed and does not even exist on the hard drive. Can
| you believe this?
|
No,I can't.

Willy.

AddThis Social Bookmark Button