[JAVA] Path setting after installation. What are you guys doing

Hello everyone. It's time for today's trouble consultation.

Preface

** "The appearance is JavaScript, the brain (contents) is Ruby, (stability is AC/DC)" ** The familiar scripting language Kinx. For more information, please visit the Web (below).

Actually, I recently released version 0.17.0 (pre), and I installed the installer for the first time there. I'm building using NSIS.

However, as of now, the path to the executable file is not added to the environment variable Path ** after installation **. Please pass the path manually.

Originally, there was something like messing around with the environment variable Path ** I'm not scared **, but there seems to be a problem when trying to realize it with NSIS (this area). However, it's a pain to pass the pass by myself, so I'd like to add it in the next edition.

So how do you add/remove paths to the environment variable Path in the installer? That is today's question.

I searched a lot, but I couldn't find a good idea. For the time being, I was looking for it based on the following criteria.

I couldn't find anything that would satisfy all of them. Something that doesn't have a license, GPL, [^ gpl].

[^ gpl]: Just in case, I'm not saying that the GPL is bad ... It's hard to hire because I'm MIT.

Conclusion

There, young husband!

I created a simple program. Have a look at this.

this is...

but...

Since this program changes the system environment, I would like to have a lot of people check the source code ** and fix any problems **. I've checked it including a simple test code.

So, I'd be happy if various people could see the source code. I would be very grateful if I found a problem (although I can't do anything more than that).

Or please let me know if there is a better solution to this problem (add/remove paths).

see you.

P.S. If you like this (https://github.com/Kray-G/addpath) itself, please ★. waiting!

Recommended Posts

Path setting after installation. What are you guys doing
config.ru What are you doing?
bundle install? yarn install? What are you doing
Windows10 Eclipse environment construction & what are you doing Fukahori August 2020
What you are doing in the confirmation at the time of gem update
After all, what is [rails db: migrate] doing?