Click here to Skip to main content
15,891,744 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello!

How to create a value in Environment variables of the System section by Orca application?

Thanks!
Posted
Comments
Sergey Alexandrovich Kryukov 26-Aug-15 9:36am    
First of all, why? It's better not to add any and not depend on them.
—SA
IRiazantsev 26-Aug-15 10:06am    
Unfortunately we have to support an old project which includes that request.

1 solution

4 steps

1. write an exe that sets the system path based on things passed on its command line - example http://dominoc925.blogspot.com.au/2009/06/append-path-variable-during.html[^]

2. in orca, create a type 2[^] custom action entry

3. in orca insert that exe into the Binary table[^]

4. in orca, schedule that custom action to run using the InstallExecuteSequence[^] table
 
Share this answer
 
Comments
IRiazantsev 27-Aug-15 3:39am    
Thank you for your help! It helped me to find the best solution of this problem.
http://dominoc925.blogspot.ru/2009/06/update-windows-path-with-visual-studio.html
I think, I must know Registry better. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900