Packing an Outlook Add ins created with Yeoman - outlook-addin

I've created an Outlook add ins using Yeoman not Visual Studio and now I want to submit it to the office store.
The add-ins is targeting Outlook Desktop and Outlook 365.
In the documentation there's an example about packing the add ins using Visual Studio 2015. Here's the link
https://learn.microsoft.com/en-us/office/dev/add-ins/publish/package-your-add-in-using-visual-studio
Is there any tutorial about packing the add ins when it is created with Yeoman?
Also, once I've packed it to which host it should be submitted? To Azure.com? May I host the Add ins in my own server?

There isn't a "package", only a single XML Manifest file. The Store only hosts/provides the manifest. Where you host the actual application/add-in is up to you (assuming it is secured/HTTPS).
When you submit your add-in to the store, the only assets you supply are the manifest and screenshots.

Related

How can I include necessary libraries with VB.NET project?

I am reworking old VB6 apps into VB.NET with Visual Studio 2005 and when i tried to install them on Windows 10 I got following errors:
How can I include the missing libraries and carry them with the project?
Or can i somehow make a VB.NET installer with Visual Studio 2005 and it will take all dependencies with it?
It went well. I created new Setup project by using this tutorial vs 2005 setup project tutorial .
I added all the files that resided in the bin folder of my development project, plus I added adodb.dll by using the "Add Assembly" dialog window, right click on the setup project "Application Folder" node.
I also added msdatasrc.dll which is like backward compatibility library for MS Office for Windows XP. You can find download link here office xp support files
Once you these files, you can create shortucts which will open the main *.exe file when double clicked. Shortcuts for the desktop and for menu, can be added on the nodes User's Desktop and User's Menu

How to make .exe setup in visual studio 2010 including excel template files

I have developed a tool that will extract data from xml file and drop in formatted excel file.
For this I have 3 types of formatted excel files.
so my question is that whenever I m building .exe file, and try to install this file on another (user's) machine, it will not find that excel files.
and my code give me an error.
How can I include that excel files with .exe setup?
so that I do not need to give that files separately.
I m using Visual studio 2010 express
thanks in advanced.
try to compile your code with Advanced Installer
Here are a couple of options.
1) With respect to a setup tool, Microsoft depreciated their own Setup projects and started including Install Shield Limited Edition. This link should help if you want to check that out: InstallShield Limited Edition is available for download in Visual Studio 2010 I tried it for a few projects and found it ok. It does about as much as the prior Microsoft Setup projects.
2) A less conventional option may be to package the excel templates into your exe as a resource file and then write them to the file system when you run the first time. To do this...
In VS, open My Project and click the resources page on the left.
Click the Resources page and used the Add Resource item in the toolbar to add an existing item. Select your excel file and repeat this for each file.
In your code you can save the resource to disk with code like this:
My.Computer.FileSystem.WriteAllBytes("excel filename.xlsx", My.Resources.ExcelFile1, False)
This option will understandably make your exe larger.

How to deploy an Outlook macro?

I made an Outlook macro. How can I deploy it to use it on some other machine?
Do I follow the same steps I followed on my machine Tools-> Macros-> create new or is there another way to deploy as we do with the vb or C# projects?
No, you don't need to follow the same steps and re-record the entire macro from scratch. You can save the module containing the macro and import it in Outlook on the other machine.
In Outlook's VBA editor, right-click your module > Export File...
Then on the other machine, in Outlook's VBA editor, right-click your project > Import File...
EDIT You say that your Outlook doesn't have VB Editor. Quoting from Outlook help:
you may be running a Microsoft Office
program with the Visual Basic for
Applications (VBA) shared feature disabled.
I don't know what version of Outlook you have, but for 2003:
To re-enable VBA, follow these steps:
1.Run the Office Setup program again. How? Quit all programs.Double-click
the Add/Remove Programs icon in the
Microsoft Windows Control Panel.Do one
of the following: If you installed
your Office program as part of
Microsoft Office, click Microsoft
Office in the Currently installed
programs box, and then click the
Change button.If you installed your
Office program individually, click the
name of your program in the Currently
installed programs box, and then click
the Change button.
2.On the Features to install screen in the Setup program, click the plus sign
(+) next to Office Shared Features.
3.Select Visual Basic for Applications, click the arrow next to
your selection, and then click Run
from My Computer.
Usually outlook macros are only made for personnal use. Distributing them can be hard as it needs too much actions made by the user (add "devoloper" in ribbon, open visual basic editor, import files, enable references, enable security...).
Microsoft wrote:
If you are developing a solution that you intend to distribute to more than a few people, you should convert your VBA code into an Outlook COM or VSTO add-in or an Office add-in for Outlook.
(source: https://support.microsoft.com/en-us/help/290779/managing-and-distributing-outlook-visual-basic-for-vba).
Knowing that, i recommend you to write a VSTO add-in and deploy it using ClickOnce.
You can start by these links:
VSTO
https://learn.microsoft.com/en-us/visualstudio/vsto/getting-started-programming-vsto-add-ins?view=vs-2019
ClickOnce deployment
https://learn.microsoft.com/en-us/visualstudio/vsto/deploying-an-office-solution-by-using-clickonce?view=vs-2019

Visual studio 2010 create sharepoint 2010 workflow project without local sharepoint server installed

just wondering if it is possible to create a sharepoint workflow project in visual studio 2010 and doing development without a local sharepoint server installed?
working with sharepoint 2010
No, to utilize features of Visual Studio SharePoint Extensions, you must have SharePoint 2010 installed locally.
Yes that's possible:
http://techblog.hk.agenda-asia.com/2010/10/29/create-sharepoint-project-without-install-sharepoint-server/
This is indeed possible, here is a quick reference guide based on this thread (posting as an answer since I cannot add comments yet).
Build & create .wsp-solution for non-SharePoint environments:
Go to a SharePoint 2010 server.
Open Regedit and locate the node "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0"
Right-click and export the node to a file.
Copy that file into your dev. environment, right-click and choose "Merge" (select "yes" in the security warning dialog).
Install the "Visual Studio 2010 SharePoint Power Tools" onto your development environment.
http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9
Start Visual Studio in your development environment and open/create a project based on a SharePoint template (if new project, enter a dummy url when asked for the Sharepoint site location).
In order for the solution to build/compile, you will have to copy the Microsoft.SharePoint.dll (& possible the Microsoft.SharePoint.Security.dll) from the [hive-path]\ISAPI folder on a Sharepoint server, and add them as references in your Visual Studio projects.
You should now be able to select "Package" (right-click the project in Solution Explorer), this will create the .wsp-file for you in the [solution path]\bin[debug/release] folder.
You can create 'advanced' workflows with SharePoint Designer... Have you tried that yet?

Deploy VSTO application in visual studio windows application

I have created a VSTO application using office 2005 & visual studio 2005 professional.I found there a setup folder.While i am running the *.exe file in client machine,it giving me error."An add-in could not be found or could not be loaded."
What is the architecture of the client machine?
If Vista: do you have the UAC (Security Dialog) disabled?
Also check in the Registry if the Path to the Manifest File is correct.
Is it loading the right Framework Version?
Are you using the Publish feature, or are you trying to create your own MSI?
You need to do some debugging on your side to have this sorted maybe:
Try to uninstall VSTO SE completely and install it again.
Create a new VSTO add-in without any additional code and run it.
Evaluate what happens and perform actions accordingly