GithubHelp home page GithubHelp logo

jpann / vstaregistrationclear Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 236 KB

Simple utility to help resolve 'AddInAlreadyInstalledException' exceptions during a ClickOnce application deployment.

C# 100.00%

vstaregistrationclear's Introduction

VSTARegistrationClear

Simple utility that backs up and clears the ClickOnce application registration for a specific VSTO customization to help resolve 'AddInAlreadyInstalledException' exceptions during a ClickOnce application deployment.

How to use

When you launch the utility, you will be prompted to select a .VSTO file. This would be the VSTO filename (not complete path) that you wish to clear from the ClickOnce application registration.

The utility will then search the ClickOnce application registration for all sub-keys that have a 'Url' value that contains a filename that matches the VSTO file you selected.

You can then back up the registry key and delete it.

What it backs up

The application will by default back up the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions' and all sub-keys.

The back up will be in the form of a .reg file contained within the directory that the utility is ran from.

What it searches

By default the application goes through each sub-key of 'HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions' and lists each registry key where the value of the 'Url' key contains the filename of the VSTO file you selected. For example, if you selected the VSTO file 'C:\TEMP\MyAddIn.vsto', it would return sub-keys that have a filename of 'MyAddIn.vsto', which could be 'file://C:/Users/jdoe/MyAddIn.vsto' or 'file//server/share/program/MyAddIn.vsto'.

What it deletes

It will delete anything matched using the methods above.

Requirements

Requires .NET Framework 4.0.

Disclaimer

This was written quickly and as a small utility to fix issues with a specific application's ClickOnce registration issues, so it may not work correctly for all ClickOnce registration issues.

vstaregistrationclear's People

Contributors

jpann avatar

Watchers

 avatar  avatar

vstaregistrationclear's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.