Reply to Thread

Post a reply to the thread: Start/Stop service does not show progress message

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 08-21-2013, 05:35 AM
    linder

    Re: Start/Stop service does not show progress message

    Yes, what you do is correct.

    BTW, it would be a very bad idea to let the runtime display all the operations automatically. It would result in a "flicker nightmare". Quite a few developers have to replace files, install files, check services, stop services, doing the service checks in a LOOP with Sleep delays (to be on the safe side), etc. from the script. Sometimes the operations take 1/10 second, sometimes longer. So if you would like to display a progress text for an operation that might take some time you can display it programmatically. Otherwise, it's not worth it to display the text at all.

    Friedrich
  • 08-21-2013, 05:13 AM
    Allan Greis Eriksen

    Re: Start/Stop service does not show progress message

    Okay I see. but why are the Progress Text messages in the Text resources not for the SB8 runtime to use?

    If I understand you correctly I can use this to stop the service
    Code:
          
    Progress Dialog: Set Status Text #1 to "#PROG_ACTION47#"
    Progress Dialog: Set Status Text #2 to "Spawnerservice"
    Stop Service "Spawnerservice"
    Progress Dialog: Set Status Text #1 to ""
    Progress Dialog: Set Status Text #2 to ""
    and this to start the service
    Code:
    Progress Dialog: Set Status Text #1 to "#PROG_ACTION46#"
    Progress Dialog: Set Status Text #2 to "Spawnerservice"
    Start Service "Spawnerservice"
    Progress Dialog: Set Status Text #1 to ""
    Progress Dialog: Set Status Text #2 to ""
  • 08-21-2013, 04:09 AM
    linder

    Re: Start/Stop service does not show progress message

    Hello,

    No, this is not a bug. You can display it (if you want) using the "Progress Dialog: Status Text" script function.

    HTH,
    Friedrich
  • 08-21-2013, 03:57 AM
    Allan Greis Eriksen

    Start/Stop service does not show progress message

    Hi.

    The "Stop Service" and "Start Service" are working just fine. But the Progress Dialog is not updated with status text showing when it is stopping and starting the service.

    I have noted that there are (x)_PROG_ACTION46 and (x)_PROG_ACTION47 Text resources in the Progress/Misc Progress group. So I think this is a bug?

Posting Permissions

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