Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    9

    Huh? close program like suf6

    Hallo,

    i want to close a running process called rslogon.exe

    it worked in the background

    i use the example from "Window.EnumerateProcesses"
    but the running program could not be found.

    i hope somebody can help

    thanks bert


    instances_of_file = 0;
    file_to_check_for = "rslogon.exe"; --have all lowercase
    processes = Window.EnumerateProcesses();

    for j, file_path in processes do
    file = String.SplitPath(file_path);
    if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
    instances_of_file = instances_of_file + 1;
    end
    end

    if instances_of_file > 0 then
    Window.Hide(Application.GetWndHandle());
    Dialog.Message("Error", "Setup already running: code: already running");
    Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);
    else
    Window.Show(Application.GetWndHandle());
    end

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Bert,

    There are some cases where a process will not be detected by the Window.EnumerateProcess() action. I will log this for the developers to look into for a future version.

    Adam Kapilik

  3. #3
    Join Date
    Oct 2004
    Location
    Columbia, MD
    Posts
    5

    Need SUF6's Close Program ability

    Any progress being made on adding this ability back into the product?

    I am converting our old SUF6 product installations into SUF7 and this is a really vital feature for us. (Vital like... I basically have to tell my product support department we can't use SUF7 until this feature is in the process or else I have to write a standalone kill application for our older systems since the "TASKKILL" command was not added until Windows 2003. And that's really not in my schedule at the moment).

    --- janet

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    This has not changed to date.

    Adam Kapilik

  5. #5
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    FWIW I have found that setting to all 'levels' will open up detection
    and usually will nail the proccess-s you are chasing to
    hide, close or terminate.

    processes = Window.EnumerateProcesses(false); --all

    for standard proccesses.. the 'instances value' will usually be 3
    (instead of 1, when only enumerating top level proccesses)
    -- so watch out for this aspect
    Last edited by Eagle; 06-30-2005 at 08:41 PM.

Similar Threads

  1. "Close Program" problem
    By bjohnson in forum TrueUpdate 1.0
    Replies: 2
    Last Post: 09-14-2004, 05:30 PM
  2. Strange behaviour of the Close Program action
    By Elp in forum Setup Factory 6.0
    Replies: 2
    Last Post: 05-17-2004, 10:38 AM
  3. Splash image at program close...
    By sferguson in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 12-30-2003, 10:24 AM
  4. INFO: The Difference between the "On Close" and "On Destroy" Events
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 02:10 PM
  5. Close program action
    By Laslie Toth in forum Setup Factory 6.0
    Replies: 4
    Last Post: 04-25-2002, 01:59 AM

Posting Permissions

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