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
- :
- How do I access path variables in script code?
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
‎May 29, 2009
02:54 PM
How do I access path variables in script code?
I have path variables set in my projects and I would like to access the path variables in the script code. Is there a way to do that?
I do realize I can access the path variables in the setup design section, but I need to access them in the code specifically.
I do realize I can access the path variables in the setup design section, but I need to access them in the code specifically.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 01, 2009
02:52 PM
It is my understanding that the Path Variables that are defined in the Path Variables view of the IDE, are only available during the Build process, not during Run-Time execution of your script.
Someone can correct me if I'm wrong.
Someone can correct me if I'm wrong.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 01, 2009
03:03 PM
What I told you is correct. The following is from the Help topic, "Path Variables View":
Note: Path variables are used during the development of your installation project. These paths do not apply to the target machines where the application is being installed. Rather, they are used to link to source files for your installation project. When the project is built, those links are evaluated and the files they point to will be built into the installation.
Note: Path variables are used during the development of your installation project. These paths do not apply to the target machines where the application is being installed. Rather, they are used to link to source files for your installation project. When the project is built, those links are evaluated and the files they point to will be built into the installation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 01, 2009
03:34 PM
gridman wrote:
What I told you is correct. The following is from the Help topic, "Path Variables View":
Note: Path variables are used during the development of your installation project. These paths do not apply to the target machines where the application is being installed. Rather, they are used to link to source files for your installation project. When the project is built, those links are evaluated and the files they point to will be built into the installation.
your BEST BET is to use VB Script to read and write to systems path variable and use the VBS that you write in custom action during Run time.
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
05:22 PM
Thank you for the excellent reply.:)