Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am developing a windows application connected by web service to get some data from webservice using visual studio 2010 ultimate

i want to make setup to let the user install this software on his machine but i got this error when installing it on older version of this application but when i install it without having old version it did not get this error

error number 1: the following applications are using files which the installer must update. you can either close the applications and click "try again"

notice that i put his code in installerclass.cs

string processName = "**********";

Process[] processes = Process.GetProcessesByName(processName);



foreach (Process process in processes)
{
    // MessageBox.Show("aaa");
    process.Kill();

}


but it did not work


error 2: Error 1001: Could not find file "c:\mypath\myapp.InstallState"

i tried many solution and searched online many times to solve this problem but i can't help it.


please i need advise as soon as possible
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900