/build/static/layout/Breadcrumb_cap_w.png

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


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)

Posted by: Jamie B 15 years ago
Orange Senior Belt
0
Add a dummy component to your install. All MSI's require at least one component.
Posted by: anonymous_9363 15 years ago
Red Belt
0
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)
Posted by: jimmyx 15 years ago
Purple Belt
0
Sorry me being dumb, had to add a dummy component!!

Sorry Ian and JamieB missed your posts!!
Many thanks for that
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ