Editing MSI Property (VB.NET) - Can't Move File after Edit...
I've been searching the net for a solution to this one, but can't get anything to work - not that I found many related posts.
I have an installer database that I copy, edit a property in that copy, and then wish to move to another location. All appears good until I attempt to move the modified file. Its still in use. ??
Here's my code...
Dim oInstaller As WindowsInstaller.Installer
Dim oDb As WindowsInstaller.Database
Dim oView As WindowsInstaller.View = Nothing
oInstaller = CType(CreateObject("WindowsInstaller.Installer"), WindowsInstaller.Installer)
oDb = oInstaller.OpenDatabase(strSourcePath & "\MyInstaller" & c.Tag & ".msi", 1)
oView = oDb.OpenView("UPDATE `Property` SET `Property`.`Value`='" & c.Text & "' where `Property`='APP_NETWORK_FOLDER
Catch ex As Exception
If Not oView Is Nothing Then
oDb = Nothing
oView = Nothing
oInstaller = Nothing
Is there some other closing statement of some sort I need to utilize. I've seen a post indicating that the Finally block should take care of it, but no go.
This whole thing is wrapped in a loop that cycles through some text boxes that holds the value of the Property (C.Text), referenced by the controls tag and used in the file name, C.Tag.
Thanks in advance for any feedback!!