Hi folks.
I'm having some issues when running a particular line of code in a ThinApp VBS.
The code works for me fine on its own, but not inside a ThinApp package.
I was curious if it may be some ThinApp settingfor the package, as it appears that others do not have a problem with this.
You can see some sample code here which does not work for me:
The particular error is:
Error Line 21, Char 1: Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\cimv2″)
Source: Microsoft VBScript Runtime Error
Description: Object Required: ‘objWMIService’
As I said, the code works fine on it's own outside of a ThinApp application, and since this is being published on other sites I assume it works correctly inside ThinApp applications for other people.
Any help you can give would be appreciated!!
Thanks.
The package.ini is as follows for this app:
[Compression]CompressionType=None[Isolation]DirectoryIsolationMode=Merged[BuildOptions];-------- MSI Parameters ----------;Enable MSIFilename if you want to generate a Windows Installer package.;MSIFilename=Arena301.msi;MSIManufacturer=Unknown;MSIProductVersion=1.0;MSIDefaultInstallAllUsers=1;MSIRequireElevatedPrivileges=1;MSIInstallDirectory=Arena301 (VMware ThinApp);MSIProductCode={9CB35312-287A-DF71-B51D-27AAF49B8EEE};MSIUpgradeCode={C65B8CD8-A8FF-1CC5-1420-9F8E3BC68BCF};MSIStreaming=0;MSICompressionType=Fast;MSIArpProductIcon=%AppData%\Microsoft\Installer\{7CCBDAB6-9F93-4C2C-BF01-1D40A3335180}\ARPPRODUCTICON.exe;-------- AppSync Parameters ----------;AppSyncURL=https://example.com/some/path/PackageName.exe;AppSyncUpdateFrequency=1d;AppSyncExpirePeriod=30d;AppSyncWarningPeriod=5d;AppSyncWarningFrequency=1d;AppSyncWarningMessage=This application will become unavailable for use in %remaining_days% day(s) if it cannot contact its update server. Check your network connection to ensure uninterrupted service.;AppSyncExpireMessage=This application has been unable to contact its update server for %expire_days% day(s), so it is unavailable for use. Check your network connection and try again.;AppSyncUpdatedMessage=;AppSyncClearSandboxOnUpdate=0;-------- Parameters used only during Setup Capture ----------AccessDeniedMsg=You are not currently authorized to run this application. Please contact your administrator.CapturedUsingVersion=4.7.2-771812OutDir=bin;-------- General Purpose Parameters ----------SandboxName=Arena301InventoryName=Arena301InventoryIcon=%AppData%\Microsoft\Installer\{7CCBDAB6-9F93-4C2C-BF01-1D40A3335180}\ARPPRODUCTICON.exe;PermittedGroups=Administrators;Remote Desktop Users;RemoveSandboxOnExit=1;RemoveSandboxOnStart=1;SandboxNetworkDrives=1;SandboxRemovableDisk=1;VirtualizeExternalOutOfProcessCOM=0;OptionalAppLinks=plugins\*.exe;RequiredAppLinks=\\server\share\*.exe;c:\abs\path\file.exeVirtualDrives=Drive=c, Serial=58e2f0af, Type=FIXED;VirtualDrives=Drive=a, Serial=0012d294, Type=REMOVABLE; Drive=c, Serial=58e2f0af, Type=FIXED; Drive=d, Serial=58e2f0af, Type=CDROM;VirtualComputerName=WIN-TRK2TDBBJEUAnsiCodePage=1252LocaleIdentifier=1033LocaleName=en-US; If you have problems running a 32 bit application under 64 bit Windows, try enabling this line before building the project;Wow64=0; Enable this option to load .Net binaries from the system instead of the package on Windows 7;LoadDotNetFromSystem=Win7QualityReportingEnabled=0; Enable this option to ignore DDE messages from external processes;IgnoreDDEMessages=1