Creating .msi file for Excel Addin with Visual Studio - c#

maybe someone can help me with the following problem.
I create a new Excel Ribbon with Visual Studio 2017. When I run the solution out of Visual Studio everything works fine. Excel is open and the Ribbon and buttons give no exception. So far so good.
Now I need to create a .msi file, so that the solution can be roll out to the customer. Therefore I add the Visual Studio Installer projects to my VS and create a setup project. This is also working fine for, say a normal HalloWorld.exe on the Console. But when I do it for the Excel Addin it does not work. I get the .msi file, I can install it, but I never see it in Excel. I can also not see the Addin in Excel on File->Options->Addins->Com-Add-Ins.
Did anybody give me a clue what is needed, what need to be add or to change to install the Excel Addin to other users?
Best Regards,
Sebastian

Related

Setup File For VSTO Excel Add-In C# (Visual Studio Professional 2017)

I have created VSTO Add-In for Excel, for running this application I am depending on Debug folder.
Here my problem is this Debug folder is having multiple files along with Microsoft Excel Template file this will create little confusion to choose right file to run for new users.
Is there any possibility to create a setup file for VSTO Excel Add-In application in Visual Studio Professional 2017.
Or else is there any possibility to keep all files (except Microsoft Excel Template File) in one location and Microsoft Excel Template File is in one location (like on desktop).
FYI: I know via shortcut for Microsoft Excel Template File we can do this, but I don't want to do this manually.
Thanks in advance
First, you shouldn't give debug builds to your users. Build with the Release settings instead. The default visual studio layout has a drop down that says Debug in the menu bar. Use the dropdown to select Release.
If you use the Publish feature of the Project in Visual Studio, it creates a ClickOnce setup.exe that will install the addin for you. rclick on your Project in Solution Explorer and select Properties. Then go to the Publish tab, fill out the form and click Publish at the bottom.
If you want to include an extra data file with in the installation you can follow these instructions to add it.
Basically you have to add the file to the directory you Published to and add an xml tag to the manifest file that includes the name of the file, hash and size.

VSTO document level customization with visual studio 2017

I have developed a simple Excel 2010 document level customisation based on the c# project template provided with VS 2017 community.
Unfortunately I don't have much experience on Office dev but a solid experience with VBA.
It all went ok to code, debug and run the solution till the moment I tried to open an Excel file at the same moment VS had my solution opened.
The document level customisation Excel workbook disappeared. I could not get it back whether running from VS nor opening it from a folder.
I tried cleaning up the solution, uninstalling the documents (they are installed as part of the system with VSTO).
Any clue on the issue ?
IN EXCEL you can not open two file which have same name a.xls and a.xls.
"Sorry, Excel can't open two workbooks with the same name at the same time."
So; If you open a file in EXCEL, you can not open it in EXCEL Desinger.
And in some cases; if you want to open document in EXCEL; EXCEL Desinger in Visual Studio Crashes; And Desinger Generated codes lost. WHEN you reopen that solution you get errors. In order to prevent errors; Backup your Improvments or use TFS
Using WINDOWS 10, Visual Studio 2015, EXCEL 2016 And Visual Studio Tools For Office 2010 I have crash problem. And another problems that I can not properly solve.
Reverting EXCEL to 2013 resolve some problems for me. I do not see this problem on my old PC which I use; WINDOWS 8.1, VS 2015, EXCEL 2013 And VSTO 2010
Also; WINDOWS 10 And Security Updates are problematic if you use VSTO

Excel Addin does not compile properly on different machines

I have a very old Visual Studio Excel AddIn project.
When I compile it on my machine on VS2013 (.Net 4.0) and Office 2010 it works perfectly on the other machines. But when I compile it on TFS machine (no Office, only the vsto_redist.exe) it does not work - it does not load.
I've tried to switch on the VSTO_LOGALERTS and VSTO_SUPPRESSDISPLAYALERTS but this did not show any errors.
I've also tried to add a Microsoft.Office.Interop.Excel.dll to the project it still does not worked.
Any help on how I can see the problem will be helpful.
You need to install at lest the Excel developer tools that cinder in the box with office.

Templatizing a project in Visual Studio

I have created a windows mobile application in Visual Studio. I want to templatize this project so that one can open this as a template as opposed to a project.
Is this possible in Visual Studio? I read that there is something called as "VSX (Visual Studio Extension)" which may achieve this. I have Visual Studio Ultimate installed in my system and was trying to install the VS2010 SDK. But its not getting installed telling that i dont have MS Visual Studio 2010 which I apparently do.
Am I going in the right direction? If not what would be the correct way to go ?
Yes it is possible like this: File > Export Template than click next :) It will save your code too
This is what I was looking for and it came really handy too.
Export Template Wizard
This exports a project directly as VSIX extension using a wizard.
I would recommend using the TemplateBuilder NuGet package inside of either a VSIX Project or a Visual Studio package. I've created a 6 minute video showing you how you can: Create a VSIX containing a project template, and then editing the template. Checkit out at https://www.youtube.com/watch?v=z33jOo75CH4.
FYI TemplateBuilder is open source at https://github.com/ligershark/template-builder. If you've heard of SideWaffle it relies on TemplateBuilder.

Outlook COM Addin bundle install with a seperate msi file C#

I'm trying to be able to bundle an Outlook addin (.dll file) that I've made in C# with a separate msi installer (not the default one created in Visual Studio). The add-in works great using the default setup that Visual Studio creates but I'm looking to install the .dll file using a different msi as to bundle it with another piece of software and I'm not sure what registry values or other details need to be worked out that will allow Outlook for recognize the addin. Thanks for any help!
Please take a look at this tutorial.
http://msdn.microsoft.com/en-us/vsto/ff937654.aspx

Categories

Resources