How to script the “Repair” feature?

Hi, every body,

My objective is to upgrade my win app from Client machines on the LAN through some kind of scripting (Windows Server Scripting? Dotnet windows API?) , which will replace the following manual steps I am using today.

On client machine under client login, run control panel’s add or remove programs,
Click the link “Click here for support information” under myApp.
Click Repair in the popup Support Info window.

I found out above steps myself that will update myApp after I built my projects (the app and the setup) in vs05 and copied the setup.exe and the .msi to replace the older ones on the network.

I am not sure if this is one of the undocumented uses of the “Repair” feature, but certainly it serves the purpose. I am also not sure what kind of application upgrade could be rolled out this way.

Finally, here is the reason why I gave up on ClickOnce. The users don’t like the way that they have to open publish.htm, then click on Install just to RUN the application, and when an update is done this way, their shortcut to their local program file/MyCompany/myapp.exe is firing up the older version.

Thanks!

[1147 byte] By [hommer] at [2007-12-28]