@nsis-u/addtopath.protected
http://nsis.sourceforge.net/Path_Manipulation with some protection against deleting your path
Usage no npm install needed!
<script type="module">
import nsisUAddtopathProtected from 'https://cdn.skypack.dev/@nsis-u/addtopath.protected';
</script>