Intercept a ClickOnce installation to invoke reboot
We have an issue on a client whereby a piece of software gets updated via ClickOnce technology and delivered by a third party.
The update forces the screen to expand to dual screen.
We need it to be on one screen so that another piece of software can run on the other.
We have a script that can be invoked by a reboot that will fix this but the users refuse to reboot and the client want use to offer a solution that does not include users at all.
We cannot get involved in the clickonce delivery as we are blocked by the provider (politics).
We need to somehow intercept the update once completed and invoke a rebootÂ
The update is triggered by the user launching the application
Any ideas welcome
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
rileyz
9 years ago
Phoa, thats hard one.
You'll need a coder, but what you can do is write a script to detect the size of the Application Window. If its bigger than a certain size, reboot. I had a quick look, but I cant find a VB class that will do the job in powershell.
Or you could try this?
It resizes the Application Window, providing the application window name is static, it should do the trick. Have a scheduled task run every 15mins or so.
https://gist.github.com/coldnebo/1148334
Good luck!
Posted by:
oreillyr
9 years ago
I am looking into the displaysettings.exe functionality in windows to tie an application to a certain monitor via .bat file.
e.g.
displaysettings.exe /external
notepad.exe
This will tie notepad to second monitor.
Trying to play around with different parameters but work lockdown wont let me expand something to span two screens so i can test disabling it
Posted by:
oreillyr
9 years ago
I am looking into the displaysettings.exe functionality in windows to tie an application to a certain monitor via .bat file.
e.g.
displaysettings.exe /external
notepad.exe
This will tie notepad to second monitor.
Trying to play around with different parameters but work lockdown wont let me expand something to span two screens so i can test disabling it