I am new to this forum. I am stuck at one point related to installation.
I am using installshield and want to execute a VBScript in custom actions. I am getting error in it as follows:
Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action WwwServiceWarningMessage script error -2147221163, : Line 83, Column 5,
And the script code is as follows:
Dim computerName
Dim wmiService
Dim processes
Dim process
' Get the list of processes
LogMessage "Getting the list of all running processes."
computerName = "127.0.0.1"
Set wmiService= GetObject("winmgmts:\\" & computerName & "\root\cimv2")
Set processes= wmiService.ExecQuery("Select * from Win32_Process")
' Check the name of each process for the ASPNET process.
LogMessage "Checking for the ASPNET process."
For Each process in processes
If (process.Name = "w3wp.exe" or process.Name = "aspnet_wp.exe") Then
LogMessage "Found the ASPNET process."
IsAspNetRunning = true
Exit Function
End If
Next
LogMessage "Did not find the ASPNET process."
IsAspNetRunning = false
line 83 is
Set processes= wmiService.ExecQuery("Select * from Win32_Process")
In installation log also, the same error is coming, nothing more.
If I run this script directly through command prompt then it is working fine. but throws error in installer.
System details are as follows:
OS : win 2k3 sp2
Installing by administrator account
connected to system remotely.
Any suggestion is well appreciated.
Edited by tron721, 05 June 2012 - 13:34.