Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8733875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:44:05+00:00 2026-06-13T09:44:05+00:00

I builded nsis script successfully for my java project. I have converted my java

  • 0

I builded nsis script successfully for my java project. I have converted my java project into bat (windows machine requires bat file for executing) file named as test.bat. My installation steps done successfully.

After installation the bat file can not start the service. I have checked following path

Start Menu -> Control Panel -> Administrative Tools -> Services.

I can see the services in this list, but i could not see my service file name.

I have tried following script lines

!define MUI_FINISHPAGE_RUN "$INSTDIR\test.bat"

Also i have tried this one

Function test
  ExecShell "" "$INSTDIR\test.bat"
FunctionEnd

How to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:44:07+00:00Added an answer on June 13, 2026 at 9:44 am

    I installed a java service with the wrapper from http://wrapper.tanukisoftware.org that is able to install jars as a service. IIRC you will need wrapper.exe, wrapper.dll, and wrapper.jar to be installed along your application. Check the website for further information.

    Then you have NSIS call that wrapper to install the service on the target machine:

    Detailprint "Installing service"
    nsExec::Exec "$\"$INSTDIR\wrapper.exe$\" -i $\"$INSTDIR\wrapper.conf$\""
    

    The uninstaller portion:

    Detailprint "Stopping service"
    nsExec::Exec "$\"$INSTDIR\wrapper.exe$\" -p $\"$INSTDIR\wrapper.conf$\""
    
    Detailprint "Removing service"
    nsExec::Exec "$\"$INSTDIR\wrapper.exe$\" -r $\"$INSTDIR\wrapper.conf$\""
    

    As you can see, you will also have to create a wrapper.conf to specify details about the service (e.g. which main class to use). After installing the service you should be able to start it with something like…

    Exec '"net start your_service_name"'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have builded Nsis script successfully.I have bat file in my project.Inside bat file
i have in my visual studio 2007 implemented webpart Hello World. in project there
I builded a RibbonGroupBox like this in a C# file: public class TextControl :
I use ICU4C in a C++ software builded under Windows, Linux and Mac-OSX. I
Im developing desktop java application using maven. I got a *.properties file that I
I have Maven multi-module project with such structure: parent-pom-project -- module1 -- module2 At
I have a page which builded with jquery mobile and play framework. It's refreshing
i have little experience with Liferay, builded a couple of sites with static content
I'm developing a dll that uses libcurl. I builded lib with vc6curlsrc.dsw project (I
i need help with parsing pdf the pdf builded in illustrator and it have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.