Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a WPF app which working in kiosk machine. My app will check for update whenever in idle time. If new version is exist, app will run a bat file. It will kill current process, uninstall app, re-install new version and open app after installing.

What I have tried:

When I run bat file by using Process.Start(), bat file is not continue working if app is closed. So I tried to create a new task in Task Scheduler for this bat and call to run it in idle time then my app is working right. However console window always displays whenever task run, is there any way for me to hide or close it?

Also, I have a more concern that when app is closed to update, I want to display a picture or any else to notify user that app is maintaining. How could I do that?
Posted
Updated 9-Jan-23 22:16pm
v2

1 solution

You could use click-once. I have written a silent updater[^] that could auto-start rather than someone clicking a button. Download the project and check it out.
 
Share this answer
 
Comments
huynhminh97 10-Jan-23 4:19am    
@Graeme_Grant tks you so much, I will try it
Graeme_Grant 10-Jan-23 4:47am    
You will need to follow the article to set it up for the initial installation, then the updates.

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