Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Join Date
    Sep 2005
    Posts
    2

    Launch Program (SF 6 vs. 7)

    I just upgraded from Setup Factory 6 to SF 7 and was surprised to see there was no simple option for adding a "Launch Program" option on the Finish screen.

    Looking at my old SF6 files, that option is in there and I don't remember having to handcode it.

    Is there a simple way to add this obvious option to the Finish screen? I saw some other posts mentioning a checkbox screen and adding custom actions. The action shown in my SF6 file is "Execute". I don't even see that in the list of available actions in SF7.

    I'm a product manager, not a coder. I use SF so I don't have to program. Maybe I'll have to code to add this option?

    Thanks,
    Vance

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi, I might be misunderstanding but it seems like one could use a custom screen, attached is a modified finish screen, simply unzip it to your Setup Factory > Screens folder, preview attached. There may be a better way, this is just one idea, I'm not an expert on Setup Factory.
    Attached Images
    Attached Files

  3. #3
    Join Date
    Sep 2005
    Posts
    2
    Quote Originally Posted by Corey
    Hi, I might be misunderstanding but it seems like one could use a custom screen, attached is a modified finish screen, simply unzip it to your Setup Factory > Screens folder, preview attached. There may be a better way, this is just one idea, I'm not an expert on Setup Factory.
    Corey,

    Thanks for the screen. I came up with something similar, but the piece I'm missing is the code that checks if the checkbox is enabled and then executes a program. I see how it's done in SF6 but I don't see the "Execute" command in SF7.

    I'm surprised that "Launch Program on Finish" isn't a built-in option.

    Vance

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. I don't have Setup Factory handy but it would be something like this (on the active button):

    if (checked01) then
    result = File.Run(_TempFolder.."\\yourfile.exe", "", "", SW_SHOWNORMAL, false);
    end

    Where "checked01" is the name of the Lua variable assigned to your checkbox (in the screen edit dialog) and "yourfile.exe" is the program you wish to launch.

  5. #5
    Join Date
    Jan 2007
    Posts
    29

    Launch program using CheckBOX

    Hi

    At the end of the install when you click Finish it closes the Startup Factory window and launches another that says "Run Program Now" Using check box.

    When i select Checkbox it shoold RUN the Application other wise should complete Installation in asusual mannaer.

    My Code


    tCheck01 = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_01);

    if tCheck01.Checked then
    File.Run(SessionVar.Expand("%AppFolder%\\NoodleNet .exe"), "firstrun", "")
    end

    Screen.Next();

    But the above code its not working Could you please any one to give a colution on this to me move FWD


    Regards
    Manikandan

  6. #6
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Code:
    File.Run(SessionVar.Expand("%AppFolder%\\NoodleNet .exe"), "firstrun", "")
    Is there supposed to be a space between NoodleNet and .exe? There should never be a space in a filename.

    Adam Kapilik

  7. #7
    Join Date
    Apr 2007
    Location
    Mar Sara
    Posts
    292
    AFAIK the forum ads one to prevent XSS.

  8. #8
    Join Date
    Jun 2007
    Posts
    8

    Star Resolution?

    This thread speaks to my exact same sentiment and need.

    In an earlier version I do seem to recall this being easy.

    I just upgraded to 7 but I seldom use SF and I have only the most rudimentary programming skill. Indigo has done such a nice job in making a lot of features accessible to people like me...but not this feature...

    Piecing together some of the earlier posts I have successful installed the alternative finish screen. I left the checkbox ID unchanged and my concluding button script is now:

    if (checked01) then
    result = File.Run("%AppFolder%\\D_MX_Stuff\Living_Langauges .exe", "", "", SW_SHOWNORMAL, false);
    end
    Screen.Next();

    The syntax check is OK, but there is no app launch at the end of my install. I am not even sure how to confirm if I am merey unresolved because of a file path issue.

    Please help!

  9. #9
    Join Date
    Jun 2007
    Posts
    8
    FYI...I am not leaving empty spaces in my file name. That space was added upon submission of my post by your forum software.

  10. #10
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Code:
    if (checked01) then
    result = File.Run(SessionVar.Expand("%AppFolder%\\D_MX_Stuff\\Living_Langauges.exe"), "", "", SW_SHOWNORMAL, false);
    end

    %% Varables have to be expanded in code. And \ is always \\ unless you are using an excape charactor.

  11. #11
    Join Date
    Jun 2007
    Posts
    8
    Jason thanks for your reply!

    I would love to say that your tips made everything work, but I'm still stalled.

    You corrected the / to // AND
    added code to expand or extract the application file path

    so...does the code you provided need further modification?

    BTW my result variable for the checkbox stores state in Lua variable: check01

    Argh. This is the LAST piece of this project.

  12. #12
    Join Date
    Jun 2007
    Posts
    8
    I sure wish Corey's screen also included the final script. Then one could just change the name of the app and be done!

  13. #13
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Fist are you getting into your if statment to verify this I usually add a dialog box inside the if statment. Zip your project and post if you wish.

  14. #14
    Join Date
    Jun 2007
    Posts
    8

    Zipped file

    I guess there is no reason to post any linked resources or graphics so here it is.

    Thanks a ton Jason!
    Attached Files

  15. #15
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Try this:

    Code:
    result = File.Run(SessionVar.Expand("%AppFolder%\\D_MX_Stuff\\Living_Langauges.exe"), "", "", SW_SHOWNORMAL, false);

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Launch another program and wait
    By lascoff in forum Setup Factory 7.0
    Replies: 4
    Last Post: 02-09-2005, 09:10 AM
  2. Launch Program from C:\Program Files
    By joey1barnes in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 05-22-2004, 11:49 PM
  3. 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
  4. Running a Program and Waiting for it to Finish
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:26 AM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 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