Link to home
Start Free TrialLog in
Avatar of RTechJax
RTechJax

asked on

Setting, then USING, the PATH in InstallShield on x64 Windows without rebooting

My programmer is trying to establish a path during an InstallShield project, then use it.  Here is the scenario:

o  Installing Oracle 10.2.0.4 on x64 Windows through InstallShield with pre-determined response files.
o  Building a default database using established code and scripts already in place on our x86 installation.
o  Path will only be recognized if we either manually set the environment variables before the install (System Properties | Advanced | Environment Variables) or run a separate process and log off / reboot.
o  Tried other possibilities, such as killing and restarting explorer.exe to "flush & refresh" the path setting, all to no avail.

What are we missing?  Is it possible to both set and use the PATH that we need without having to reboot?  Please note:  We have tried SetX, batch files, set from a command prompt and then setup.exe from the same command prompt.  None have worked.  Bear in mind that this installation will be sent to "the field" for clients to use.  Our client base stretches from major corporations with dozens of IT experts to "mom & pop" small businesses.
Avatar of ou_dober
ou_dober
Flag of United States of America image

Have you tried the following:

To add:

path=%path%;C:\oracle   (using c:\oracle as an example)


Avatar of RTechJax
RTechJax

ASKER

<blockquote>Have you tried the following:

To add:

path=%path%;C:\oracle   (using c:\oracle as an example)</blockquote>

Yes.
And when you typed path afterwards, did you not see the added path?  What was the results of that?
The path would only reflect the change after reboot or logoff/logon...
This will propagate the change without a reboot or logoff/login.

http://support.microsoft.com/kb/104011

   SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
    (LPARAM) "Environment", SMTO_ABORTIFHUNG,
    5000, &dwReturnValue);

ASKER CERTIFIED SOLUTION
Avatar of RTechJax
RTechJax

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial