Install.msi

A

Andrey_R

I have 2007 office and .msi installer.
In my code exists InstallerClass.vb and metod
Public Overrides Sub UnInstall(ByVal savedstate As
System.Collections.IDictionary)
MyBase.Uninstall(savedstate)
'Code
and metod
Public Overrides Sub Install(ByVal statesaver As
System.Collections.IDictionary)
MyBase.Install(statesaver)
'Code
When I install addins, I wont to remove old version.
I add code in my install metod
Public Overrides Sub Install(ByVal statesaver As
System.Collections.IDictionary)
MyBase.Uninstall(statesaver)
'Code
MyBase.Install(statesaver)
'Code
I change Deployment Property "RemovePreviosVersion=True" and ProductCode.
And when I run installer, a get msgbox "Object reference not set to an
instamce of an object." And stop installing. When do I check existing old
version?
 
Top