Outlook VSTO add-in setup error after installation - windows

I created an addin with VSTO and a setup project with visual studio installer.
Im totally new on creating setups... and im getting something weird here (most likely a rookie problem).
I have what follows...
When i install, files get deployed into the folder, like below... and i suppose its the way it should be.
But when i try the addin, i get the following error, like if the manifest is pointing to a different path:
Then for the sake of testing i copied the manifest into the folder he seeks, like so:
And them, the add-in loads correctly...
Though I need some guidance with 2 scenarios:
where or how can i fix this pointing to that folder?
Is there a way to perform a delete on a specific registry key when program is uninstalled?
Please i have this important job to finish at my work and im burning nails...
Many thanks in advance for your time taken to read and help.

Before installing the add-in make sure it is unregistered (if you debugged the project previously there). Also make sure that your installer added Registry entries for VSTO Add-ins on the target machine that correspond to the actual location.
In general, make sure that you did all the steps describe in the following articles (depends on what installer you chose for deploying the add-in):
Deploy an Office solution by using Windows Installer
Deploying a VSTO Solution Using Windows Installer

Started a new project and copied all the code from the previous one... started working.
I cannot understand what witchery Visual Studio does some times.

Related

I am having issues deploying my VBA VSTO. I am using the Setup extension with Microsoft Community 2019

I am trying to create an installer for an outlook add-in built in VS 2019 Community. I am using the setup extension. It works on my local computer but only because it is the device the VSTO was created on. My problem is create it work universally. When I check the add-in location that works locally, it is pointing to the VSTO in my visual studio project.
I have added the primary project output to the Application Folder in the File System setting, and I have changed the Register property to vsdrpCOM.
It works locally like I mentioned, but I need it to work universally. It does produce a setup.exe and setup.msi as well. I know it is something little I am missing but I thought I would turn to the community for some help.
First of all, make sure that you included all the required prerequisites to the add-in installer. This is the first point to check among others.
Make sure that you did steps described in the Deploy an Office solution by using Windows Installer article.
I know this is an old post but I forgot to update the answer.
My issue pertained to creating the registry keys. I thought the keys would populate in the setup project, I was not aware I had to create every key myself. This was my first time doing a project like this.
So the short answer is make sure you create all the keys as posted in the link above by Eugene.

Visual Studio 2015 multiple uwp apps with same code

I am trying to run multiple apps with the same code, the only differences are application names, icons and the splashscreen.
I am already 100 % sure that my approach must be complete crap, but here is my approach:
I copied the excisting project specific configuring files, changed all file names to the new project, replaced references inside these files and imported this project back to the solution, because creating a complete new product within the solutions ignores all yet created files so I wanted to save some time. Now have 1 solution (I thought of this as the product) and 1 projekt for each customer, all targets sharing all code, except the project configs with the ids, names and icons etc..
But when I try to build any of the project I get these errors
Error occurred while restoring NuGet packages:
The process cannot access the file
'C:\...\project.lock.json'
because it is being used by another process.
Or the assembly is used by another application.
So, this can't be the right way to do what I want to do by Visual Studio, I'm looking for the right way to handle 1 base-product but many customer-specific-apps with Visual Studio 2015.
Sadly I couldn't find any tutorial for that yet.
Maybe I'm searching with the wrong description or naming, I thought of projects as targets in Xcode.
A link to a proper tutorial would already do the job for me.
Thanks!
According to your description, I think what you want is building multiple branded apps from a single Visual Studio solution. If so, here is a nice article: Multi-Branded Apps in Visual Studio (Windows 10 UWP) you can refer to.
The key point here is using separate build configurations for each app and then using Pre-build commands to create the app package.
For more info, please see Understanding Build Configurations and Specifying Custom Build Events in Visual Studio.

DLL testing in visual studio

Hi guys i'm new both to this site and to testing and i'm having trouble finding solutions to this problem.
My current project produces a .DLL file as its build and im looking to use visual studio to automate testing on it every time a new build kicks off.
To run the program a .exe must be triggered in the same directory as the newly created .dll this isn't a problem and wouldn't need automating except i need to kick of 16 different variations of it using different config files and separate machines on a physical network for each variation.
Is there anyway to do this using visual studio 2010 ultimate and MTM?
I have looked into generic testing but it runs the exe without moving the new .DLL to the working directory any ideas?
Thanks in advance.
I haven't used VS 2010, but I know in 2008, you can specify Post-Build actions in the project properties, that you could use to copy the output where you need it to go. I would give you more details, but I'm not at work to look at the interface at the moment.

InstallShield LE - Is it possible to create a pure web setup project. If so, how?

I have begun the hard work of converting an old Web Setup project to InstallShield LE.
So I have been searching around on how to do this. And my GOD how messy it is.
I did follow one of those guides. It seems I have to install some dummy data to Program Files just to be able to install the web application...? I have found no way to remove/delete the Program Files part of the setup. The setup dialogs shows the target folder as C:\Program Files\whatever.
Is it possible to install the web application ONLY to the correct IIS folder?
I want a clean install. No junk leftovers just because InstallShield is way to limited.
It annoys me to no end that there is no simple installer tool anymore. I even tried to hack the VS2010 setup project package (c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment) to work with VS2013. It almost loaded, but got a "80070057 - E_INVALIDARG" error on loading it.
If someone brave enough and know how custom project types work could take a go on it, maybe we can get a working (but old) setup project to work again.
The lack of answers and my fruitless search yields one answer. InstallShield LE is not capable of this.
You are better off using WiX for this. Seeing how other have done this and modifying it is the quickest way to get something up and running.
This is the result of such work: http://halsvik.net/downloads/WebSetup2013Installer.zip
And it seems MS has decided to add support for the old Microsoft Setup projects (VDPROJ) again: http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx
https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d

Dotfuscator 4.10 project in VS 2012 bugs while trying to save .dotfuproj file

I recently installed Dotfuscator 4.10 on my computer and I already has VS 2012 working on it. Everything worked fine up to the point when I tried Dotfuscator embedded in VS (I mean the standalone GUI app works perfectly).
Just for the try, I created a small solution (no TFS/VSS) with a C++ /clr app, a C++/clr dll and a C# app.
I then added a Dotfuscator project. To this project I added the output from the three dll/exe other projects.
When I tried to rebuild the solution, I was asked to save the .dotfuproj file. Strange and abnormal behaviour, the file should be saved automatically and without prompting me. OK, I chose to overwrite the existing file (what should have been done automatically after all.) I got the error Object reference not set to an instance of an object. I had to cancel the operation and could not build the solution.
Note that I observed the same behaviour if I tried to save the dotfuproj file under an other name. Also, the file is not R/O.
My question: has someone experienced this problem? Any solution? Thanks for your help!
You can try deleting your Dotfuscator project and then creating a new project. If that does not work, try using direct input to the Dotfuscator project, rather than using the output of another project within your solution.

Resources