This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Launch a function for refresh environment variables
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2013
02:49 PM
Launch a function for refresh environment variables
Hello, I am adding some variables to the registre Enviroment user key but I can not reboot the machine after install the program.
I can see in this post that calling this function it refresh the environment settings but I do not know how to call the function
Vhttp://community.flexerasoftware.com/showthread.php?130316-Refreshing-environment&highlight=environment
I have tried in the "Behavior and Login" -> "InstallScripts" ... to create a new file, .. .It creates a new function but I do not know how it works or how to call it..
any help would be very appreciated.
Thanks
I can see in this post that calling this function it refresh the environment settings but I do not know how to call the function
Vhttp://community.flexerasoftware.com/showthread.php?130316-Refreshing-environment&highlight=environment
I have tried in the "Behavior and Login" -> "InstallScripts" ... to create a new file, .. .It creates a new function but I do not know how it works or how to call it..
any help would be very appreciated.
Thanks
- Tags:
- environment
- function
(5) Replies
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2013
10:28 PM
What project type are you using? (InstallScript, InstallScript MSI, Basic MSI?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 06, 2013
01:40 AM
Kevin.Wan wrote:
What project type are you using? (InstallScript, InstallScript MSI, Basic MSI?
Hello, It is a Basic MSI, ... I have create a InstallScript and I have associated it in the custom action and Sequences for executed after IsSelfRegisterFinaliza ... but It does not works.
My machine is a Windows 7 (64 bits) ...
Thanks a lot
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 07, 2013
01:17 AM
Hello.
Why don't you try the following code.
Environment Variables Example
http://kb.flexerasoftware.com/doc/Helpnet/installshield18helplib/GetresEnv_variable_example.htm
InstallScript Engine has changed since Version 2010 for Unicode. So, some legacy code may not work.
( In this case, 2012 Example code uses WPOINTER instead of POINTER. )
Why don't you try the following code.
Environment Variables Example
http://kb.flexerasoftware.com/doc/Helpnet/installshield18helplib/GetresEnv_variable_example.htm
InstallScript Engine has changed since Version 2010 for Unicode. So, some legacy code may not work.
( In this case, 2012 Example code uses WPOINTER instead of POINTER. )
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 07, 2013
07:56 AM
If you use the Environment Variables view in the System Configuration view group (which goes into your MSI installer's Environment table) instead of writing directly to the registry, you might avoid the need for that script.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2013
12:27 AM
This script is not working in windows 7 and more...
any idea?
Thanks,
Dhanaraj
any idea?
Thanks,
Dhanaraj
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)