Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

i have an application that checks for update from a website, if the website version is newer , it erase the current .exe and replace it with the .exe in the website.

In the case of one layer application, i am pretty sure its good enought!

Now, the application is multi layers (UI(winform project)-logic(library)-Data(library)).

If i want to update the system, what are the files that should be replaced?

Ps: Data access layer with Ado.net and entity Framework

Thanks
Posted
Comments
Mehdi Gholam 5-Nov-13 6:38am    
You should replace any file that has been updated, the person creating the application should know that.
ZurdoDev 5-Nov-13 7:33am    
Yes, this is the correct answer. I would suggest posting as solution.
Ziee-M 5-Nov-13 8:00am    
i think its poor for an answer!
ZurdoDev 5-Nov-13 8:01am    
It was correct and accurate. Whatever files have changed, that's what you need to push.

Hi Ziee-M,

You first list out what all the Files will be replaced when its a Single Layer Application.

IF the Application is Single layer or Multilayer, the Logic Layer & Data Layer are refereced to the third layer UI for sure.

As the other 2 layers are reference all the Final DLL will be avaialbl in the UI layer Bin folders.

Now you can consider the UI Layer as Single layer application and modify the changes in that folder and TEst the application, most probably that should work fine.

Thansk!
 
Share this answer
 
Comments
Ziee-M 5-Nov-13 8:04am    
i will make some tests. i will be changing the Data layer and check if changing the .exe will do the job or not!
I think It will be best if you create two exe. 1 for update checker and downloader and another one is your application. That you don't fetching up with any problem. first application update checker find new update exe and download it silently and replace your application.
 
Share this answer
 

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