Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Uninstall .NET Assembly - NOT in GAC


2 replies to this topic

tdgebbie

tdgebbie
  • Full Members
  • 4 posts

Posted 09 April 2007 - 21:45

I am currently trying to uninstall a 2.0 .NET Assembly. I am using InstallShield 12 with SP1. The Assembly is registered correctly and installed to [ROOTWEB]WebsiteDir\Bin\AssemblyName.dll. The assembly was created using Visual Studio's 2005. I can install and uninstall the assembly using InstallScript and the installUtil.exe command line tool, but I want to do it through the actual InstallShield 12 UI using components settings.

Components Configuration:
Component settings listed below:
Destination: [ROOTWEB]WebsiteDir\Bin
Destionation Permissions: 0 Permissions defined
Compoent Code: {GUID VALUE}
Shared: No
Permanent: No
Condition:
Remote Installation: Favor Local
.NET Scan at Build: Properties Only
.NET Application File: [ROOTWEB]WebsiteDir\Bin\AssemblyName.dll
.NET Installer Class: Yes
.Net Installer Class Arguments:

Install:
/LogFile="C:\Program Files\App\AssebmlyName.Install.log" /ShowCallStack

Commit:
/LogFile="C:\Program Files\App\AssebmlyName.Commit.log" /ShowCallStack

Uninstall:
/LogFile="C:\Program Files\App\AssebmlyName.Uninstall.log" /ShowCallStack

RollBack:
/LogFile="C:\Program Files\App\AssebmlyName.Rollback.log" /ShowCallStack

.NET COM Interop: No
.NET Precompile Assembly: No
REG File to Merge At Build:
Languages: Langueage Independent
Reevaluate Condition: No
Never Overwrite: No
64-Bit Component: No
Source Location:
Disable Registry reflection: No


.NET Assembly settings in Advance settings:
Manifest: AssemblyName.dll
File Application: [ROOTWEB]WebsiteDir\Bin\AssemblyName.dll
Name: AssemblyName
Version: [PRODUCTVERSION]
PublicKeyToken: value

the install log and commit log gets created correctly but no uninstall log or rollback log is created with running the uninstall.

Edited by tdgebbie, 09 April 2007 - 21:48.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 April 2007 - 15:25

Did you try with installer class set to No? Do you really need to call this assembly as a install class custom action?

tdgebbie

tdgebbie
  • Full Members
  • 4 posts

Posted 13 April 2007 - 20:56

I was able to resolve this issue here was the solution (Thanks to Macrovision support). It turns out that there was registry key located at:

My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls

D:\Websites\website\bin\Assembly.dll

Value data set to: 1

This must of have been set from a previous version on my installatin package, well log story short even though the component was set to No for Shared the key already had a reference count of 1 so the installer would not call the uninstall on this assembly.