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: User environment not loaded in silent mode
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
Mar 07, 2014
07:08 PM
User environment not loaded in silent mode
Most of the time enough digging and debugging works for me but this time I am stumped.
I have a basic MSI installer that has a custom action that invokes some InstallScript. The InstallScript executes a system command using LaunchApplication. That system command executes an application that is expected to be in the user environment's PATH variable.
In verbose mode this works great. However, in any of the silent modes the command fails because it appears the user's environment is not being loaded. If I move the user's PATH variable to the system it all works fine.
So, does anybody know why this might be happening? Does silent mode just not load the user's environment? Is there a default custom action that loads user environments that maybe isn't getting executed properly in silent install? What dictates the environment or PATH that the installer loads?
Any sort of help would be greatly appreciated (by me and our customers 🙂 )
I have a basic MSI installer that has a custom action that invokes some InstallScript. The InstallScript executes a system command using LaunchApplication. That system command executes an application that is expected to be in the user environment's PATH variable.
In verbose mode this works great. However, in any of the silent modes the command fails because it appears the user's environment is not being loaded. If I move the user's PATH variable to the system it all works fine.
So, does anybody know why this might be happening? Does silent mode just not load the user's environment? Is there a default custom action that loads user environments that maybe isn't getting executed properly in silent install? What dictates the environment or PATH that the installer loads?
Any sort of help would be greatly appreciated (by me and our customers 🙂 )
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 18, 2014
07:22 PM
Can anybody help me with this one?