Hi,
I have to create one installer as shown in picture. I have tried with visual studio installer template and I have seen that there is one installer class also. But It's not giving same design as shown in my picture.
When user will click on install button on that time it should install project and other button it will document.
Hope I'm clear with my requriement.
Related
I am working on the Setup Project (msi installer package creator) of a C# desktop application in Visual Studio 2010. I want to add some product activation conditions based on radio buttons in the setup project. I have added a user interface in setup project containing the radio buttons, but i don't know where to get the selected value from this interface, or where is this selection stored.
Image Radio Buttons
User Interface
You can't run code on the button click of a dialog in a Visual Studio setup's MSI. Other tools (InstallShield, WiX, Advanced Installer etc) offer support for all Windows Installer functionality, but Visual Studio setups do not. Those tools let you run a custom action on a button click to validate the input, for example.
So your question is the nearly the same as these:
c# setup project get radio buttons value
How to code for Custom Dialog in Setup Project?
so basically you can pass the values to a custom action. However if you somehow want to change the course of the install based on the choice in the radio buttons there is not much you can do because all VS custom actions run at the end after everything is installed. It might be better to defer all this until the app first runs, and have the app deal with this. I assume that a user might want to upgrade from Demo to Student to Professional without re-installing the product.
I have a C# application (winforms) and I'm trying to create a setup project for it, with the following customization: when the user tries to uninstall the application, I want to show a simple dialog with 2 textboxes (email and password) and one button. When the user presses the button, I want to make a request with those credentials and, if they are valid, I want to uninstall the app.
Now, I installed this extension for Visual Studio 2017 that gives me the Setup Project template.
I know that I have to deal with Custom Actions. I actually reached that screen:
But when I click on Add Custom Action, it wants me to upload a script or an executable file.
My problem is: what kind of executable / script do I have to put there? There is a special language built for this installer? Or I can just write C#?
I haven't found any kind of updated documentation on this topic except this one that works for Visual Studio 2010, but I need it for Visual Studio 2017.
Thank you respectfully.
This item template is available in 2017 also.
Create a separate Library project. Add there a new installer item and continue as it is said in the manual you've found
I recently installed Visual Studio 2015 Community and now my toolbox does not have the report viewer tag, all my existing report viewers in my ASP.NET project show 'error creating Control'. I've checked all my references and they seem to be OK, when I Run the project the report appears fine in the browser.
From reading this, you need to add the SQL Server Data Tools package.
https://social.msdn.microsoft.com/Forums/en-US/70e6b312-48b6-48f5-abc7-6400dfe8ad34/visual-studio-2015-enterprise-reporting-functionality-missing?forum=vssetup
We have managed to track down the solution to this issue. It turns out that the components required for reporting are located within the Microsoft SQL Server Data Tools package. In order to install this package, perform the following steps as a privileged (local or domain administrator) account. Ensure that Visual Studio and all related programs are closed before you begin.
Open Control Panel > Programs > Programs and Features, and select the entry for your version of Microsoft Visual Studio 2015. In our case, it was Microsoft Visual Studio Enterprise 2015.
Click the "Change" button on the top bar above the program list.
After the splash screen, a window will open. Press the "Modify" button.
Select Windows and Web Development > Microsoft SQL Server Data Tools, and check the box next to it.
Press the "Update" button on the lower-right hand side of the window.
Once the installation is complete, open your version of Visual Studio. After the new .dll files are loaded, Reporting functionality should be reimplemented, and you should be able to access all related forms, controls, and objects.
Our working theory is that the web installer did not install the required components for Reporting during the initial installation - however, the issue seems to be resolved now.
Just a heads up for VS 2017. The control is no longer located in the "Toolbox" but is now instead a NuGet package. It can be installed via the Package Manager Console with the command:
Install-Package ReportViewerForMvc
See: https://reportviewerformvc.codeplex.com/wikipage?title=Installation%20%26%20configuration
I have Visual Studio Enterprise 2015, with all updates and patches applied. When I build create a new Visual C# project Templates->Cross-Platform->Blank App (Xamarin.Forms Shared) I get the following error:
A problem was encountered creating the sub project '.Windows'. This project requires a Visual Studio update to load. Right-click on the project and choose 'Download Update'.
When I click Ok, a solution and projects are created but there is no .Windows, so I cant right click on it! If I try add the project then I get the same issue.
I would expect that such a simple use case should work out the box. I can find a few workarounds via Googling but I don't want to hack around with projects before I even write a line of code of my first Xamarin application.
Any ideas on what I need to do to get the project creation working properly "out of the box"?
A second puzzler is that the template creates a .WinPhone folder that is empty, should I have a csproj in it?
Close Visual Studio and try to modify it components (Control Panel -> Uninstall a program -> Microsoft Visual Studio -> click on it).
In opened window click on "Modify".
Then find and select "Windows 8.1 and Windows Phone 8.0/8.1 Tools" (in Windows and Web Development)
Then click on "Update".
also make sure the Hyper-V is enabled :
Control Panel -> Uninstall a program, then in left menu "Turn Windows Features on or off" and find "Hyper-V", if it isn't selected, select it and click "ok".
I want to create a toolbar plugin for Visual Studio 2015 in C#.
The thing is I don't actually know which project type to use there to create my own toolbar plugin.
I'm sorry if this question is kind of stupid but i'm new again to Visual Studio 2015.
Thanks for your help
If by "toolbar plugin" you mean a Visual Studio plugin with a button on a toolbar, you need to create a Visual Studio Package:
New Project -> Installed -> Other Project Types -> Extensibility
Then select Visual Studio Package in the right panel.
You need to have SDK installed for that.
I want to create a toolbar plugin
With toolbar plugin do you mean creating a Custom Control? If yes, then you should probably select a Class Library project.
or User control in Winform and place it in toolbar? Then you should choose a Winform project.