|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Process.Start executing old version of my EXE>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 newerversion 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! Is there an entry for that external exe in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths? -- Show quotePhil Wilson [MVP Windows Installer] ---- <goo***@schwarzsolutions.com> wrote in message 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! > 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? <goo***@schwarzsolutions.com> wrote in message
news:1146700169.578513.123850@y43g2000cwc.googlegroups.com... No,I can't.| 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? | Willy. |
|||||||||||||||||||||||