Friday, June 22, 2018

Error [1001] While Installing Windows Service

If you encountered an error 1001 while installing a Windows Service then the solution for that is.
1) just check if you have UnInstalled the Windows Service.
2)  if after UnInstalling also the error remains then.
3) One more option is that Open Task Manager and under the Service Section tab look for Your Service Name then select the service go to properties => go to details option.
4) kill the process tree and try to install the service again

Tuesday, June 19, 2018

Creating Setup.exe for Windows Service

To create the Setup.exe for Windows Service using the Install Shield Tool available in the Visual Studio. Please follow the steps below for creating the setup.
1) File=>New => Project => Templates => Other Project Types => Setup & Deployment.
2) Select the Install Shield option.
3) Project Assistant window will open.
4) The first two tabs Application Information & Installation Requirements where you need to fill all the company name, product name related information.
5) In the Application Files tab, this is the main tab where you will add your .exe file. In the left side, you will find the [Program Files Folder] expand it you will see the folder with the Company Name  [INSTALLDIR] created (with the company name which you have given in the application information tab).
6) Select the Company Name [INSTALLDIR]  then click on Add Files.
7) A new pop up will open browse the location of the. .exe  file where you have kept it and copy paste all the files inside it.
8) Then select the. .exe file right click on it go to properties under the COM & .NET Settings tab check the Installer Class checkbox and click on apply.
9) The next steps [Application Shortcuts, Application Registry, Installation Interview] are simple you can set them as per your needs.
10) After setting up all the things we need to build the setup so that the .exe file is generated.
11)  Change the Solution Configuration to Single Image instead of CD_ROM which is selected default and then build the service and your .exe file is generated.
12) Click on the Open Release option to locate the newly generated .exe file.

Git Commands

Git Version   To check the git version Git -v       Git Clone To clone the repository, use the following command: Git clone [u...