Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Setup Factory 7.0 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2004
dwybo1 dwybo1 is offline
Forum Member
 
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?
Reply With Quote
  #2  
Old 10-05-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Action or Script? Mythwyn AutoPlay Media Studio 5.0 1 01-01-2004 10:14 PM
AMS4 Uninstall action script for SUF5 Carlos AutoPlay Media Studio 4.0 8 10-08-2002 03:20 PM
INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0 Support AutoPlay Media Studio 4.0 Examples 0 10-03-2002 09:38 AM
action after reading registry Jito463 AutoPlay Menu Studio 3.0 3 01-24-2002 03:59 PM
SUF6.0.0.2 -- installer hangs. jassing Setup Factory 6.0 4 12-20-2001 12:28 AM


All times are GMT -6. The time now is 07:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software