Here's an example to show the behavior described in the previous email.

The WiX project contains 2 Custom actions: C++ DLL and Javascript. Both of them 
perform a simple WMI query.

Both work fine on Windows Server 2008 R2 (GUI)
Only the C++ one works on Windows Server 2008 R2 (Core)


Sources:

http://www.cloudbase.it/beta/CA_JScript_WMI_Error.zip

Precompiled MSI:

http://www.cloudbase.it/beta/TestWMIInstall.msi



Thanks!!


On Oct 3, 2012, at 02:05 , Alessandro Pilotti <[email protected]> wrote:

> Hi guys, 
> 
> I have an issue with executing WMI queries in Jscript custom actions on 
> Windows Server 2008 R2 Core and Hyper-V 2008 R2. 
> I had no issues on Windows Server 2008 R2 Standard (non core) and Hyper-V 
> 2012.
> 
> Whenever I try to execute ExecQuery, e.g.: 
> 
> var wmi = GetObject("winmgmts:\\\\localhost\\root\\virtualization");
> var obj = wmi.ExecQuery("SELECT * FROM Win32_Service");
> 
> I get: 
> 
> 0x80040155 - Interface not Registered
> 
> The same script executed with cscript has no issues!
> 
> Does anybodu have any clue about how to solve this issue?
> I tried on various servers with x86/x64 custom actions and rebuilding the 
> Wbmem folder, without success.
> 
> 
> Thanks!
> 
> Alessandro Pilotti
> Cloudbase Solutions Srl
> -------------------------------------
> MVP ASP.Net / IIS
> Windows Azure Insider
> Red Hat Certified Engineer 
> -------------------------------------
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to