B
bg_ie
Hi,
I created a COM object using C# and I installed it with a batch that
looks something like this -
ECHO OFF
PATH = C:\WINNT\Microsoft.NET\Framework\v2.0.50727
set target=C:\mydll.dll
echo * Unregister %target% with v2.0.50727
regasm.exe /u %target%
// Delete mydll.dll and compy new dll to C:
echo * Register assmebly
regasm.exe /tlb /codebase /s C:\mydll.dll
echo * Register DCOM security
@%windir%\REGEDIT.EXE /S %sourceDir%\mydll.reg
The problem is that when I changed versions of the .net framework I
ended up adding two version of the Com object to the registry. I then
changed the version number of my Com object and now I have 3
versions...
I can completely remove the Com object from the registry by using
regedit, but the problem of having multiple versions now exists on
multiple computers.
I must also point out that my origional install batch file didn't
uninstall the com object as shown above. I had a seperate batch for
doing that, so perhaps that was also an issue in getting multiple
versions.
How can I easily remove all versions of my com object from the
registry in a convenient manner?
Thanks for your help,
Barry.
I created a COM object using C# and I installed it with a batch that
looks something like this -
ECHO OFF
PATH = C:\WINNT\Microsoft.NET\Framework\v2.0.50727
set target=C:\mydll.dll
echo * Unregister %target% with v2.0.50727
regasm.exe /u %target%
// Delete mydll.dll and compy new dll to C:
echo * Register assmebly
regasm.exe /tlb /codebase /s C:\mydll.dll
echo * Register DCOM security
@%windir%\REGEDIT.EXE /S %sourceDir%\mydll.reg
The problem is that when I changed versions of the .net framework I
ended up adding two version of the Com object to the registry. I then
changed the version number of my Com object and now I have 3
versions...
I can completely remove the Com object from the registry by using
regedit, but the problem of having multiple versions now exists on
multiple computers.
I must also point out that my origional install batch file didn't
uninstall the com object as shown above. I had a seperate batch for
doing that, so perhaps that was also an issue in getting multiple
versions.
How can I easily remove all versions of my com object from the
registry in a convenient manner?
Thanks for your help,
Barry.