Igorek
Igorek

Reputation: 15860

Creating custom registry settings during installation of Office addins

Is there a way to inject a custom registry setting during installation of Office plugins? Using Visual Studio 2013 and regular "publish" method that generates an .MSI file

Upvotes: 1

Views: 238

Answers (1)

public wireless
public wireless

Reputation: 890

You have 2 options for installing: Click Once and Windows Installer (.msi)

Are you sure Publish is creating an .MSI, because in a previous version of Visual Studio it makes a ClickOnce installer which is totally different from an .MSI.

Start here: http://msdn.microsoft.com/en-us/library/bb386179.aspx

I don't think the ClickOnce option gives you the ability to add your own registry settings. If you go the ClickOnce route then it would probably be easiest to add the registry setting in your addin code, assuming the registry location is something like HKCU that the user would have access to. If you need to write to HKLM hive then that requires admin privileges and you shouldn't try doing that from your addin, it will need to be added in a .MSI that runs with admin rights. You can use the InstallShield LE as mentioned in the article, or you could obtain the just released addin for Visual Studio that brings back the old Setup Project (http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx)

Upvotes: 1

Related Questions