Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    28

    Uninstall page refresh

    In my project I have it configured so that certain buttons will become visible\enabled when I install the program and the registry entries are present:

    is_there = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\MyApp\\v1.0");
    if is_there then
    Button.SetVisible("Button1", false);
    Button.SetEnabled("Button2", true);

    That works great when you set the 'On Click' button properties to:

    File.Run("Autoplay\\setup.exe", "", "", SW_SHOWNORMAL, true);
    Page.Jump("Page1");

    After a successful installation the buttons will appear with no problems at all. My problem is that I have a Uninstall button in my project and when I successfully remove the app and all it's registry entries, the page does not refresh automatically the same way it would have if I installed it. The buttons stay the way they are even though the registry entries are now gone. I have to close the autoplay application and reopen it for the buttons to display properly. This is not the case when I install it though, it will refresh automatically. I tried this:

    File.Run("Autoplay\\Uninstall.exe", "", "", SW_SHOWNORMAL, true);
    Page.Jump("Page1");
    Page.Redraw();
    Application.SetRedraw(true);

    None of those work however, Hope someone can help. Thanks in advance.

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    I had difficulty understanding exactly what you are asking, but maybe this will help.
    Any Scripting following a Page.jump will not normally be executed; however there is an obscure variable which allows this:

    _NoExitScriptOnPageJump
    If set to true, action script in an event will continue to be executed after a Page.Jump or Page.Navigate action is called. If set to false, the execution of the action script in the event will halt after a Page.Jump or Page.Navigate is called. This variable is set to false by default.


    If this is way off base from what you're trying to do, just ignore this post. LOL

Similar Threads

  1. Building pages from script
    By Roboblue in forum AutoPlay Media Studio 7.5
    Replies: 23
    Last Post: 02-28-2008, 10:31 AM
  2. Refresh Page on show previous page
    By paulx1566 in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 11-13-2006, 11:52 PM
  3. Uninstall Data – Questions and Bugs (?)
    By csd214 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 06-21-2005, 11:05 AM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. HOWTO: Include Uninstall Support
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-26-2002, 02:33 PM

Posting Permissions

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