Update Binary
Hello,
I am trying to INSERT/UPDATE Binary table as follows,
Insert goes well, Update fails. It doesn't flash any error but then it doesn't even get updated. Am I doing something wrong???
I am trying to INSERT/UPDATE Binary table as follows,
Set installer = Wscript.CreateObject("WindowsInstaller.Installer")
Set database = installer.OpenDatabase(msiPath, msiOpenDatabaseModeTransact)
Set rec = installer.CreateRecord(1)
rec.SetStream 1, binPath
If bUpdate = True then
Set recView = database.OpenView("UPDATE `Binary` SET `Data` = ? WHERE `Name` = '" & binName & "'")
Else
Set recView = database.OpenView("INSERT INTO `Binary` (`Data`, `Name`) VALUES (?, '" & binName & "')")
End If
recView.Execute rec
database.Commit
Insert goes well, Update fails. It doesn't flash any error but then it doesn't even get updated. Am I doing something wrong???
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
pjgeutjens
14 years ago
Posted by:
milindsm
14 years ago
Posted by:
pjgeutjens
14 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.