I created my custom powershell cmdlet. It registers and installs fine, but when I try to uninstall it, I get an error. I use this command to uninstall it:
c:\windows\microsoft.net\framework64\v4.0.30319\installutil /u 'path to .dll'
Error: The uninstall is beginning. See the contents of the log file for the 'path to .dll' assembly's progress. The file is located at 'path to log of installer'.InstallLog. Uninstalling assembly 'path to .dll'. Affected parameters are: logtoconsole = assemblypath = 'path to .dll' logfile = 'install log path'.InstallLog An exception occurred during the uninstallation of the 'name of my installer' installer. System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist. An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
The uninstall has completed. An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
I looked at the registry. while I found few references to my cmdlet, removing them doesn't make a difference.
I currently uninstall by manually deleting the path that the installer of the cmdlet resides at. I'm not sure if this OK and wouldn't lead to problems in the future.
Do you have an idea on how fix this?