Joined: 04 Jun 2004
Posts: 233
Location: 48°42' n.Br./09°09' ö.L.
Posted:
Tue, 15.Jun.2004, 09:05
MSI bietet ein umfangreiches Automation Interface.
Damit kann der Windows Installer recht einfach per Script gesteuert werden.
Hier ein Beispiel in JScript:
Code:
// Script to list installed MSI Products
// (c)2000 by -bingen-
var WShell = new ActiveXObject("WScript.Shell");
var installer = new ActiveXObject("WindowsInstaller.Installer");
var products = installer.Products;
var j = 0; var result = "";
for( var i=0; i < products.Count; i++ ) {
j++;
result += products.Item(i) + " -> " + installer.ProductInfo(products.Item(i), "ProductName") + "\n";
}
j == 0? result="No MSI Packages installed!" : result = j + " Products installed:\n\n"+result;
WShell.Popup(result, 0, "MSI Information", 64);
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Service provided by flatbyte.com
::
Powered by phpBB
:: FI Theme
:: Imprint ::
All times are GMT + 1 Hour