Selectable components in Visual Studio 2013 Setup Project - visual-studio-2013

I have created a Visual Studio 2013 Setup Project that installs a Windows Service. Everything works fine up to now, but I need to add an additional component to the installation. This component should install if the user wishes, so, I need something like a selectable component that the user can check its installation if it is desired. I searched the web but not happy results, I don't know if it is possible to do with the Basic Visual Studio Setup Projects Template. I need to know if it is possible, or if I need to move to other Installer's maker like Wix or Installshield. If it is possible, please explain how to achieve it. Thanks

Related

Create project in Visual Studio and open/run in vs code on mac

I need to open, edit, and debug an ASP.NET Core project in VS Code on a mac. The project was created in Visual Vtudio 2015 on a PC.
I'm having trouble. I get the error
No task runner configured
and it brings me to launch.json.
It sounds like a gulp thing and I'm not sure what I'd need gulp for... nor do I know what to do with launch.json, having come from visual studio 2015. Shouldn't it just launch in Kestral and go?
For some reason all the S/O questions and tutorials I've found through search are about creating a .Net Core project in VS Code and maybe opening it in Visual Studio... Not what I need. Other way around. Project created on PC in Visual Studio then open and fully develop on mac in VS Code.
Maybe my search query is wrong. Surely this isn't a new problem. Or, maybe I'm just doing something stupid.
When you click Launch. Then you select dot net core on launch json option. It would create a launch.json like this:
https://github.com/tuoitrevohoc/NetExpress/blob/master/.vscode/launch.json
Then you need to edit the path to your built dll file. And click run again. Follow the guide to create a task.json to build the project. Then when you click run again it will run.

Visual basic 6.0 missing richtextedit component option

I am running Visual Basic 6.0
never had a problem with it before but today when I tried to add the rich text edit component to a new project, it was not in the list of components. I have googled the problem to no avail. i even went to the trouble of i uninstalling and reinstalling visual studio. still didn't help.
does anyone know how to fix this?
The file must be installed and registered on your computer before you can use it.
It is called Microsoft Rich Textbox Control 6.0. Look for the file richtx32.ocx. You may need to use the browse button on the components dialog if vb cannot find the file.
If the file is missing, it may be included in VB6 service packs at http://msdn.microsoft.com/en-us/vstudio/aa718364

how to add logic to msi installer

I have a Setup Project in Visual Studio 2010 which creates a .msi installer. I am wondering if it is possible to add some logic to check some conditions. e.g if there is my software installed yet.
Thanks,
This is done through installer properties. You can set them and check them against values. They are just like variables in code.
However, Visual Studio is limited when it comes to custom installation logic. If you don't figure out how to do what you need, give us more details.
As a side note, launching the installer for an already installed product makes it go into maintenance mode (Modify, Repair and Remove options). So you don't need to check if your application is already installed.
You need to add installer class to one of your library or assembly. In Visual Studio, attach installer events to custom action. See how http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ or here http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx

Adding a service installer and service process installer in visual studio

For some reason, after adding a Installer class to my Windows Service project, I open it up in design mode and right click, but there is no option to add either a service installer or a service process installer. Does anyone know why this may be the case?
In both Visual Studio 2008 and 2010, the best way to do this is to open the ServiceBase component (named Service1 by default) in design mode. Then, right-click in the designer and select the Add Installer option. This adds a ProjectInstaller component along with the necessary assembly references. The ProjectInstaller component, in turn, has the service installer and service process installer added automatically.
Without additional detail, my best guess is that you manually added a component/class to your project and named it Installer instead of letting Visual Studio do the work for you.
See my post here for how to create a basic service in Visual Studio 2008 (seems to work in 2010 as well). Pay particular attention to Step 6.
Hope this helps.

How to customize an installer's UI

I am building an installer for my windows app and have done this through a setup/installer project in visual studio.
I was wondering how to customize he UI of the finish dialog box? I want to add a couple of check-boxes and launch an app after the user closes the finish box.
Is there a way to do this in Visual studio itself or does it require any other tools? If other tools are required then are any of them free?
Thanks
Kapil
Visual studio deployment projects give you some standard templated dialog boxes.
If none of these templates meet your requirements, you can create your own custom UI and use an installer class to control the workflow.
To launch an app at end of the installation you would again probably have to override a method in your installer class.
If all this seems like hard work, it's certainly worth looking at something like INNO Setup or WIX.
Inno Setup is free and has the ability to run things when the install is complete.

Resources