/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Intercept a ClickOnce installation to invoke reboot

10/08/2015 1042 views
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

Comments


All Answers

0
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!
Answered 10/08/2015 by: rileyz
Red Belt

0
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
Answered 10/08/2015 by: oreillyr
Fifth Degree Brown Belt

0
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
Answered 10/08/2015 by: oreillyr
Fifth Degree Brown Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ