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

RTechJax
RTechJax used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have you tried the following:

To add:

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


Author

Commented:
<blockquote>Have you tried the following:

To add:

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

Yes.

Commented:
And when you typed path afterwards, did you not see the added path?  What was the results of that?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
The path would only reflect the change after reboot or logoff/logon...

Commented:
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);

Commented:
Unfortunately, we were unable to resolve this by using the suggestions noted above.  Every attempt and adjustment still required at least logging off and back on.  Finally, we generated a batch file, copied it to the desired location, and then launched it within InstallShield from that location.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial