Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    32

    Add Item After Reboot

    I need to add the following to an installer that I have created:

    1. After clicking on Finish, the installer program needs to inform the user that the computer must be rebooted.

    2. After reboot, a file will need to be altered based upon a registry setting

    I have all of the code in place to perform the second operation, I just need some guidance or examples of how I can achieve the requirement for rebooting and, once rebooted, adding the option to change parameters of a file. Thanks.

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    To do the reboot it may be as simple as setting

    Code:
    _NeedsReboot = true;
    or

    Code:
    System.Reboot();
    Now to make a program run after reboot you can use the action File.RunOnReboot(). You may need to make this file a separate executable to make your changes after the system has rebooted.

    Adam.

  3. #3
    Join Date
    Sep 2007
    Posts
    32
    For the file itself, is there any way to set some sort of flag in order for the initial installer to perform the file alteration upon reboot? All I need to do is to change a specific line within a text file based on where an application's home directory resides. Unfortunately, this does not seem to work during the initial install, as the registry entry is not picked up then. I would rather not create another executable just to change a line within a text file. Thanks.

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

    Post

    Yes you certainly could set a flag to do this operation upon reboot. You could use Application.SaveValue() and Application.LoadValue() actions.

    So for example you could put this at the end of your install:

    Code:
    Application.SaveValue("Yourcompany", "setupComplete", true);
    Then your code on Startup could look something like this:

    Code:
    value = Application.LoadValue("Yourcompany", "setupComplete");
    if value ~= "" then
         -- perform your task here
         Application.Exit(0);
    end
    Adam Kapilik

Similar Threads

  1. Add reboot requirement
    By gott in forum Setup Factory 7.0
    Replies: 1
    Last Post: 09-27-2007, 07:16 PM
  2. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  3. Missed the Boat
    By JerryQuinn in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-23-2005, 05:18 PM
  4. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 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