Tuesday, 5 April 2011

Modifying Deploymentmonitor.hta

In a previous post I mentioned a utility from the Microsoft Deployment Guys which allows you to monitor how your Litetouch build is progressing. In this post I am going to show how you can modify the utility to make it a little more appropriate to your own needs.


The utility itself is a HTA file which can be edited in a text editor, my editor or preference is notepad++ as it supports several different languages and will indent and colour code languages it understands as necessary to make things easier to follow.


Onto the file itself:


Lets start early on at line 7


MINIMIZEBUTTON="NO"


for some reason the Deployment guys didn't feel the need to minimize the app to the taskbar, however in the world of education we are often doing at least three things at once and to keep the screen as uncluttered as possible you can edit the line to


MINIMIZEBUTTON="YES"


and instantly you have the option to put things out of the way.


If you are using this in a fixed location you may want to prepopulate the location for the script to check for log files, this can be done by editing line 278 from

<input id="lblEventShare" type="text" name="lblEventShare" />&nbsp;&nbsp;&nbsp;&nbsp;

to

<input id="lblEventShare" type="text" name="lblEventShare" value="\\servername\Share$" />&nbsp;&nbsp;&nbsp;&nbsp;



To automatically check the autorefresh box when starting the app change line 292 from


<input id="chkAutoRefresh" name="chkAutoRefresh"type="checkbox" />

to


<input id="chkAutoRefresh" name="chkAutoRefresh"type="checkbox" checked/>

You will still need to click the refresh button once to start the process.


To change the frequency that the app automatically checks for updates edit line 203


iTimerID = window.setInterval("Refresh", 120000)

You will also want to edit line 292 to reflect the changed time you have set.


&nbsp;Auto-refresh every 2 minutes (press &#39;Refresh Display&#39; to start)every 2 minutes (press &#39;Refresh Display&#39; to start)





Hopefully these changes will make this great utility more useful in your deployment efforts.

No comments:

Post a Comment

Please enter your comment here, all comments are subject to moderation