Installing windows service in different machine - visual-studio-2010

Context:
I have developed a windows service in visual studio 2010 (c#) which opens an excel file and close after saving it.
Question:
Is it possible to create any .exe file for this windows service? or
How to install this service to another computer where visual studio is not installed. But I need to run this service in another computer where vidual studio is not installed.
thanks,
pointtoshare

You can add a setup project to your solution and package the service into it.
Walkthrough on MS KB

Related

Visual Studio & SharePoint distant Server

I have VisualStudio 2015 on my computer and i would like to connect it in SharePoint Server which is put on another computer (Using VM)
I know that, VS works only with SP in local.
Is it possible?
Thanks :)
One option is to publish the solution locally. For a farm solution, publishing from Visual Studio will produce a .wsp file.
You can then copy that file to the computer with SharePoint installed on it, and use Powershell (running on the remote computer) to deploy it in to SharePoint via the add-spsolution and install-spsolution cmdlets.
For more detailed information and instructions, you can refer to Microsoft's documentation here: Install and manage solutions for SharePoint 2013.

Sharepoint Development without Windows Server

Short question: Can I develop for Microsoft Sharepoint, using Visual Studio, without using a Windows server machine?
I'm trying to do work for a Sharepoint site that requires me making custom web parts but from what I've read, I won't be able to develop in visual studio without having Sharepoint installed. As well, I can't install Sharepoint without running a Microsoft Server OS.
Here is a link to a similar question asked from a couple years ago. I would love to know if there have been any fixes since then.
I am running Windows 7, and Visual Studio 2013. I don't think that the version of VS really matters, since the equivalent Sharepoint version is available for free.
If you are developing for SharePoint 2010, then you can install it on Windows 7 or 8 but with a modification http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx, For SharePoint 2013 you need to have Windows server
To setup SharePoint 2010 on Windows 7 or 8 machine:
Copy the SharePointFoundation.exe (or setup.exe) installation file to a folder on the computer where you are installing SharePoint and doing your development, such as in the following path:
c:\SharePointFiles
Extract the installation files by opening a Command Prompt window, and then typing the following command at the directory location of the folder where you copied the installation files in the previous step.
For SharePoint Foundation 2010:
c:\SharePointFiles\SharePoint /extract:c:\SharePointFiles
For SharePoint Server 2010:
c:\SharePointFiles\OfficeServer /extract:c:\SharePointFiles
Using a text editor such as Notepad, open the installation configuration file, config.xml, located in the following path:
c:\SharePointFiles\files\Setup\config.xml
Add this line inside the tag:
<Setting Id="AllowWindowsClientInstall" Value="True"/>
Yes, you can use Sharepoint Foundation or install sharepoint server. But, if you wanna do this you have to remove the sharepoint check SO check on the setup.
Install sharepoint in windows 7

Visual Studio 2010 setup project for VS 2012 Windows Service

Is it possible to use VS 2010 to create a Setup project for a C# VS 2012 Windows Service?
I clicked Add Project Output and in the popup there is no where i can attach the 2012 service project.
Is there any tutorial i can find where it shows how to do this ?
Thanks !
VS2012 does not support the project setups that VS2010 has. you can however enable installsheild LE (Lite Edition) for VS2012 and do it this way:
How do i create an InstallShield LE project to install a windows service?
I am not sure how involved your project is and what Framework it is targeting. You will not be able to use the Wizard, or add a 2012 Project Output in VS2010 because it will not recognize it. You should be able to create a blank installer and add the executable and all ancillary files to it, and it should work. I would be more likely to invest the time to learn WIX or another installer that will be supported.

Visual studio - stand alone application

Hello I have created a DLL file using visual C++ 2010, that runs a C script that i have written.
I have then created a user interface using visual C# 2010 and linked everything together.
On my machine the resulting exe application runs perfectly.
However when i try to put the folder, containing BOTH the exe and the dll, on other computers.. it runs on some computers, but on others it does not.
the error i receive has to do with "Cant find dll file or assembly".
All computers have windows 7 64bit installed.
My question is: Is there a requirement for the application to run? (files or something that should be installed on all machines???)
I have noticed the following (after alot of looking) that:
the computers that run the application HAVE visual studio 2010 installed
the computers that do not run the application DO NOT have visual studio 2010 but have visual studio 2008 installed..
all computers have .NET framework 4.5 installed.
Do you think the visual studio has anything to do with this?!!? isnt the point having a stand alone application is to make the app run on any machine?
Is there a way to fix it so that the app will run on any computer regarding having visual installed or not?
thank you all..
You can use Dependency Walker to check what dll the program can't find.
Just load the .exe into the program.
You might also find that you will need to install the Visual Studio 2010 Redistributable on those computers that you are deploying to.

COM+ Visual Studio Setup Project

Is it possible to use visual studio to create an install package for COM+? If so how can I do it? I have successfully installed COM and had it registered but I have been unsuccessful with COM+.
You can easily build MSI’s that deploy COM+ packages using the WiX toolset which integrates with Visual Studio.
WiX Homepage: http://wix.sourceforge.net/
Com+ documentation: http://wix.sourceforge.net/manual-wix3/complus_xsd_index.htm
For a sample see: http://www.tramontana.co.hu/wix/lesson6.php#6.11
I did some more research and after a complicated process I was able to do this using custom action and by using some of the apis provided by microsoft.
http://msdn.microsoft.com/en-us/library/ee309561(v=vs.85).aspx

Resources