Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

how to run patch in asp.net


1 reply to this topic

lis_ck2000

lis_ck2000
  • Members
  • 12 posts

Posted 30 June 2004 - 04:18

currently i am building a webpage which has a file upload control by which user can upload a patch to the server and the server will apply the patch.

The following are 2 options (possible)
1. Win32_Product (WMI), but i don't know which function to use to apply the patch. I tried Win32_Product.Upgrade, but it gave me a exception.
2. System.Diagnostics.Process. This works in conapp or winapp. but it somehow doesn't work in webapp though Process.Start does return true.

anyone has other alternatives?

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 30 June 2004 - 08:19

Assuming that you want to apply the patch on the system running the script (i.e. the webserver), try using the Windows Installer object:

Set obj = CreateObject("WindowsInstaller.Installer")
obj.ApplyPatch(....)

See Msi.chm