Visual Studio 2019 Setup project - include Access Database Engine Redistributable 2016/2010 - installation

I'm trying to create Setup project for my application in Visual Studio 2019 that needs Access Database Engine 2010/2016.
I tried following all the information that I could find on web but no success.
I created accessdatabaseegine folder under C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages and put appropriate Product.xml in it and Eula.rtf & Package.xml in en folder underneath accessdatabaseegine folder. I used Eula.rtf after trying license.txt which didn't work.
But in spite of doing this, MS Access Database Engine installation option would not show up in prerequisite menu on visual studio 2019 set up project. Tried with VS 2017 as well with no result.
Any suggestions and other application installer that may help achieve this.
Thanks,

I think if you put the customized bootstrapper folder into this path: C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages, then it should be listed here: right-click the Setup project > Properties > click Prerequisites… button and you will see it listed in Choose which prerequisites to install window.

Related

Why do I see a ClickOnce Dependency Error?

I have a Visio VSTO addin that has a dependency on a EULA. I am building and deploying using Visual Studio 2019 on Windows 10. This was working fine, up until the time I had to rebuild a Windows 10 dev machine.
The EULA depndency is installed under
C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages
In Visual Studio 2019 I can see and select the dependency that is deployed when I publish the plugin. However, when trying to install the ClickOnce addin from the product site I am getting the following error:
Error: Setup has detected that the file 'C:\Users\%USERNAME%\AppData\Local\Temp\VSD8AA0.tmp\cpaseulapackage\en/cpas-eula.txt' has either changed since it was initially published or may be corrupt.
In Visual Studio the 'Sign the ClickOnce manifests' and 'sign the assembly' options are checked.
I can't figure out what has changed, or caused the deployment to break. Any thoughts would be gratefully received.
Thanks and regards
Andrew
Just Refer to Alec's answer.
I made some modifications based on your situation, please try and tell me the effect.
In the following folder, you will find a product.xml file. C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\cpaseulapackage
Open the product.xml file in Notepad (or any text editor) and under the section, you will find 1 or 2 URLs that point to the deployment package. Copy each URL into your web browser and manually download the packages.
Once the packages are downloaded, copy them to the same folder as the product.xml file (see #1 above).

Editing RDL Files in Visual Studio

So we have a unique situation. I have 2300+ RDLs that we have in TFS that our team works on. These are deployed to 100+ different folders on the SSRS Server, and must stay that way as each folder is secured with it's own AD Group so users can't see each others folders/reports.
The problem with Visual Studio is that each folder has to be it's own project to manage the RDLs in Visual Studio. So my workaround is that I have a project in VS but then made my own folder with all of these RDL's and their own subfolder via Source Code Explorer. So when I try to edit the rdl with Visual studio it just opens it as xml and not the report designer. My work-around is that we associate the .rdl file with Report Builder, but I'd rather just use Visual Studio.
Any way to get VS to open the report designer this way? I am only interested in editing the rdl's this way, not using VS To deploy the reports.
You could try VS extension Microsoft Reporting Services Projects, which can be downloaded from website below:
https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio
Or try the solution in case How to open .rdl file in visual studio :
In order to see a designer you need to give Visual Studio a bit of
context about what sort of file it is by making it part of a Report
Server Project.
Install SSDT for Visual Studio if you haven't already done so
Create a new project using the 'Report Server Project' template
Copy/move the .rdl file(s) you have into the folder for the newly created project (eg ..\Visual Studio 2015\Projects\My Report
Project\My Report Project)
Use the "Add Existing Item..." context menu option in Solution Explorer to add the .rdl to the project
Open report designer by double-clicking the newly added report project item(s)
There is one tool available in market IDSNext-Gen. The company name is Agnisys Inc.

Microsoft.Cpp.Win32.user.props file missing

A few days ago, I set up a Windows 10 by clean installation and then installed Visual Studio 2019 Community on it.
Now, I want to customize Microsoft.Cpp.Win32.user.props and Microsoft.Cpp.x64.user.props files to add additional include paths for all my VC++ projects.
But I can't find these files on my brand-new machine.
They should be located at %localappdata%\Microsoft\MSBuild\v4.0, but there is no MSBuild directory.
Does it mean that the installation of Visual Studio failed, or do I need some additional procedures to create default *.user.props files?
I've confirmed that the VC++ can build a simple hello-world project.
Edit: Attached a screenshot of the Property Manager. There is no user property sheet.
According to Microsoft, VS 2019 no longer creates the .props files by default.
From Cannot see Microsoft.Cpp.Win32.user in Property Manager:
The behavior is intended. Visual Studio 2019 will not create .user files anymore. But if .user files already exist, projects will automatically import them.

Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013

When I attempt to create a new MVC5 project, I get a template selection dialog that doesn't load any options. I am unable to select a project type (ex. MVC, Web forms, Web API) and create the project.
It appears like this: http://i.imgur.com/OVLZfSj.png
To produce this issue, I go to File -> New Project -> Visual C# -> Web -> ASP .NET Web Application
After clicking OK, the point where I select the ASP .NET project template I want just sits there empty.
I am running Visual Studio 2013 Ultimate Update 3 and have tried the following:
Safe mode
Resetting Visual Studio
Running devenv /installvstemplates
Running Repair via Setup
UPDATE: This has been resolved for me by xinqui's response below. I deleted the following 3 files and am able to create new ASP .NET Web Application projects now!
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.Internal.Contracts.dll
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
I'm from Microsoft web platform and tools team. In all of the problem reports we get, we find that there are several extra assemblies
that did not get removed from installation process. Even we still don't know which
installation process sequence caused the issue yet, we've be able to solve the problem
by the following steps. Please try the workaround and let us know if it doesn't fix your
problem. Thank you very much for all the support.
Close VS.
Goto C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies,
delete the following assemblies if they exist:
Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
Microsoft.VisualStudio.Web.Internal.Contracts.dll
Start VS2013 with update 3, try to create a ASP.NET Web application, see if the template
exists and project can be created successfully.
Info for XINQIU ...
I seemed to replicate this by trying to create a Web Api project and it asking me to update my account or re-log into my MS account on the right of this dialogue. I ignored this, closed the dialogue and then re-tried to add this project type. I was then presented with an empty dialogue.
Hope this helps!
I uninstalled VS, deleted the whole "Microsoft Visual Studio 12.0" directory, and reinstalled VS Express Web 2013 Update 3.
Others have mentioned deleting .dlls or using gacutil. I just wanted to start with fresh files. My stuff works now.

Installing Visual Studio Project Templates without deleting the ProjectTemplatesCache

I'm working on an installer that needs to add several files to AVR Studio 5, an IDE developed by Atmel that is based on the Visual Studio Isolated Shell. These files include project templates for the "New Project" dialog.
By experimenting, I found that I can successfully add the project templates and get them to show up in the dialog if I simply copy them into C:\Program Files (x86)\Atmel\AVR Studio 5.0\ProjectTemplates\ and then delete or rename C:\Program Files (x86)\Atmel\AVR Studio 5.0\ProjectTemplateCache\cache.bin. I have not been able to find any good documentation on how the Visual Studio ProjectTemplateCache folder works. It seems to contain the same files as the ProjectTemplates folder, plus the cache.bin file, so I'm not sure why it would be useful. After I rename cache.bin, Visual Studio does not regenerate it, which makes me worried that renaming it might have some permanent consequences. Is renaming cache.bin a bad idea? What problems can it cause?
Is there another, easy way to install new project templates? Ideally I would like something that is easier than creating a Visual Studio Extension (.vsix) file, as recommended in this previous StackOverflow question: Installing a custom project template with Visual Studio Installer project
The installer I am working on uses NSIS, if that matters.
For my isolated shell I copy my template .zip files to 'Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates' and '\ItemTemplates'. I then run my isolated shell with the command line '/installvstemplates'. This rebuilds the caches and when you next run the isolated shell, they show up properly.
I also had to target the isolated shell in my extension manifest files.
Have you tried any of these?
If per user project templates are fine, you can drop them in <My Documents>\AVRStudio\Templates\ProjectTemplates.

Resources