+ Reply to Thread
Results 1 to 10 of 10

Thread: A few questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    New Jersey
    Posts
    26

    Question A few questions

    Hey Friedrich, been a while! I'm working on an installer for an open source project I'm involved in and have a few questions on how to accomplish a few things.

    1) I need to check the availability of ports prior to actual install, and if they are NOT available (already in use) I want to pop up a dialog to inform the end user and have them choose to continue or abort. Is this doable?

    2) When uninstalling I need to run a specific batch file BEFORE the actual uninstall process starts, to make sure all services for the software are shut down before uninstall to make sure there are no issues. I'm not sure how/where to run this script before the uninstall happens, so if the user clicks "uninstall app xxx" it launches the script first, waits for it to exit, and then runs the actual uninstall.exe

    Thanks!

    Kevin Bednar

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: A few questions

    Hi Kevin,

    Long time no hear. I hope you are doing fine

    1) Do you mean the available parallel ports or listening TCP/IP ports (similar to what netstat.exe provides)?

    2) No problem! Just add a custom uninstall include script to your project and run the batch file before you process the "Process Uninstall Queue" script function. See attached screenshot. Does this help?

    Friedrich
    Attached Images Attached Images  

  3. #3
    Join Date
    Jun 2011
    Location
    New Jersey
    Posts
    26

    Default Re: A few questions

    Quote Originally Posted by linder View Post
    Hi Kevin,

    Long time no hear. I hope you are doing fine
    Doing well, and I hope everyone there is also well!

    1) Do you mean the available parallel ports or listening TCP/IP ports (similar to what netstat.exe provides)?
    TCP/IP ports. I would like to check for tcp port 80 and 3306 being in use and raise a dialog window with some information based on the ports status (in use or free)

    2) No problem! Just add a custom uninstall include script to your project and run the batch file before you process the "Process Uninstall Queue" script function. See attached screenshot. Does this help?
    This looks like it will work fine as all I am doing is running a batch file that stops a few processes. Is there a way to raise an information dialog prior to running the command line, to inform them, like "We will now stop all running services, blah, blah.." and have it continue when they press Ok?

    Thanks!

    Friedrich
    See comments above.

    Kevin

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: A few questions

    Hi Kevin,

    Quote Originally Posted by kevinb View Post
    Is there a way to raise an information dialog prior to running the command line, to inform them, like "We will now stop all running services, blah, blah.." and have it continue when they press Ok
    Sure. Just display a Message Box with YES and NO buttons and then use an If... Statement (see attached screenshot).

    Friedrich
    Attached Images Attached Images  

  5. #5
    Join Date
    Jun 2011
    Location
    New Jersey
    Posts
    26

    Default Re: A few questions

    Thanks I'll give that a try and let you know how I make out.

    Kevin

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: A few questions

    Kevin,

    Quote Originally Posted by kevinb View Post
    TCP/IP ports. I would like to check for tcp port 80 and 3306 being in use and raise a dialog window with some information based on the ports status (in use or free)
    We have an internal library to check the status of ports (e.g. established, listening, etc.). But I am not sure if this is what you are looking for.

    Friedrich

  7. #7
    Join Date
    Jun 2011
    Location
    New Jersey
    Posts
    26

    Default Re: A few questions

    Quote Originally Posted by linder View Post
    Kevin,



    We have an internal library to check the status of ports (e.g. established, listening, etc.). But I am not sure if this is what you are looking for.

    Friedrich
    That would probably be all I need. The software runs on a WAMP stack, so during install I's like to check that port 80 and 3306 are not in use, and if they are then just display a dialog and let the user know what they will experience problems running the system if the ports are already in use. If they are available during the port check then the install continues without any warning dialog.

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: A few questions

    Quote Originally Posted by kevinb View Post
    That would probably be all I need. The software runs on a WAMP stack, so during install I's like to check that port 80 and 3306 are not in use, and if they are then just display a dialog and let the user know what they will experience problems running the system if the ports are already in use. If they are available during the port check then the install continues without any warning dialog.
    That "portstat" add-on will be a SB8 feature -- I'll see if I can backport the interface from SB8 to SB7 this weekend.

    Friedrich

  9. #9
    Join Date
    Jun 2011
    Location
    New Jersey
    Posts
    26

    Default Re: A few questions

    Thanks buddy, but you don't need to do that! Enjoy the weekend with the wife and daughter!

    Kev

  10. #10
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: A few questions



    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •