Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Location
    Michigan
    Posts
    1

    Modifying the registry from an action script

    I am modifying environment variables in my install script. It works fine except I have to tell the user to reboot before they can use my software, because the environment variables have not taken effect.

    An old info document for SetupFactory version 6 (Document ID: IR02020) states:

    Use a Modify Registry action to set your environment variable in the registry.

    NOTE: When setting variables like this on Windows 9x or Windows NT, the system MUST be restarted for them to take effect.

    I am doing this. However, if I manually create/modify environment variables with (WinXP) System->Advanced->Environment Variables, and press OK, then all processes are updated with the new environment. So, that begs the question, what does pressing that OK button do to update the registry without having to reboot?

    And if we know that, then can we put that into the install script and change the registry without having the user to reboot for the changes to take effect?

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    I think it depends whether you are writing environment variables that apply to the system (all users) or to the current user. If the former, I'm sure that a system restart will be required as many systems will have used the previous information to start themselves. For a user, it should not really matter and may just require user-specific programs to restart (if at all).

    In fact what I have written above I've just found in a MSFT KB article (really should learn to research before opening mouth to save typing):

    http://support.microsoft.com/default...310519&sd=tech

    John

Similar Threads

  1. Add Action or Script?
    By Mythwyn in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-01-2004, 09:14 PM
  2. AMS4 Uninstall action script for SUF5
    By Carlos in forum AutoPlay Media Studio 4.0
    Replies: 8
    Last Post: 10-08-2002, 02:20 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. action after reading registry
    By Jito463 in forum AutoPlay Menu Studio 3.0
    Replies: 3
    Last Post: 01-24-2002, 02:59 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 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