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 6601151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:42:57+00:00 2026-05-25T18:42:57+00:00

Putting together a NSIS installer. (first time) Currently, a manual step in our install

  • 0

Putting together a NSIS installer. (first time)

Currently, a manual step in our install is to make a URL connection to a database, and save a basic connection properties file to a folder under Tomcat.

To aid this, we currently use a small JAR application that helps the user build this connection property file.
It has built in functionality to try and ping the DB.
It aids users by having a drop down to choose different db vendors/versions, and thus helping with building the URL.

enter image description here

In my mockup, ideally, I wanted something that did away with the JAR app and have this component built into the installer. Something like this:
enter image description here

I already know that I will need to create a custom page for this, (will use something like NSISDialogDesigner to assist with this).

The bit that I am unsure about, is the best approach for pinging the database from NSIS to ensure a correct URL/credentials has been supplied, and to return the errors back to the custom page.

What would be the best approach for implementing this functionality within a NSIS installer?

For background, once I have achieved this, a later step will be to create a database by running some SQL scripts I have.
Just thinking ahead, I guess which database vendor/version they have, will depend on which sql script to run. Im thinking that if the user chooses e.g. SQL Server 2005 on this page, this could be writen to a variable to use later when choosing the right sql script.

  • 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-05-25T18:42:58+00:00Added an answer on May 25, 2026 at 6:42 pm

    The best way of pulling this off is to write a helper commandline application which you should run invisibly in the background and then check the exit code for success or failure. This helper app can be Java, C++, C#, or anything, whatever you’re comfortable with. I’ve worked on several very large NSIS deployments and we had maybe 10 – 20 such tools launched during different phases of setup. For single WIN32 API calls, NSIS provides a P/Invoke-like wrapper, but for anything even remotely complicated, helper apps are the way to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am putting together my first NSIS installer script, and having some trouble. I
I'm currently putting together (on old fashioned paper) a layout for my new database,
I'm putting together a service release install for our customers. I'm creating a minor
I'm currently putting together some changes in our data model which include changing a
I am putting together a proposal for a large multinational company for our licenced
I am putting together some ideas for our automated testing platform and have been
I'm interested in putting together my first online game using Flash as the client
I'm putting together a small web app that writes to a database (Perl CGI
I am currently putting together a rails-based web application which will only serve and
I'm putting together my first commercial PHP application, it's nothing really huge as I'm

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.