Internal Error 2235 VB Script
Hi,
I am working on an msi, which at the moment only contains a VBscript. The script runs fine on its own but when I add it as a custom action I am getting the following error:
Internal Error 2235. ,RuntimeFlags, Select 'Component','RuntimeFlags','KetPath','Attributes'FROM 'Component'WHERE 'Component' = ?
VB script is as follows
any help on this would be appreciated.
many thanks
Jimmy
I am working on an msi, which at the moment only contains a VBscript. The script runs fine on its own but when I add it as a custom action I am getting the following error:
Internal Error 2235. ,RuntimeFlags, Select 'Component','RuntimeFlags','KetPath','Attributes'FROM 'Component'WHERE 'Component' = ?
VB script is as follows
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colFiles = objWMIService. _
ExecQuery("Select * From CIM_DataFile Where Name = 'C:\\oracle\\ora92\\bin\\oraclient9.dll'")
If colFiles.Count <> 0 Then
Set colFiles = objWMIService.ExecQuery _
("Select * From CIM_DataFile Where FileName = 'tnsnames' and Extension = 'ora'")
For Each objFile in colFiles
strNewName = objFile.Drive & objFile.Path & "tnsnames.old"
errResult = objFile.Rename(strNewName)
Next
Else
End If
any help on this would be appreciated.
many thanks
Jimmy
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
Jamie B
15 years ago
Posted by:
anonymous_9363
15 years ago
Your MSI has no components. Add a dummy component to the Component table. The GUID needs to be generated somehow, of course but that's easy enough:
Component = DummyComponent
ComponentID = {A0F2122D-3077-429A-8674-91A3072B7656}
Directory_ = ProgramFilesFolder
Attributes = 0
Condition = (leave blank)
KeyPath = (leave blank)
Component = DummyComponent
ComponentID = {A0F2122D-3077-429A-8674-91A3072B7656}
Directory_ = ProgramFilesFolder
Attributes = 0
Condition = (leave blank)
KeyPath = (leave blank)
Posted by:
jimmyx
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.