You are here

Adding one PA app path to another PA app

4 posts / 0 new
Last post
wingmanjd
Offline
Last seen: 8 months 3 weeks ago
Joined: 2006-11-30 19:26
Adding one PA app path to another PA app

What's the easiest way to add the path for one PA app to another? I have the following PA apps:

* VSCode Portable
* Git Portable
* NodeJS Portable

Right now, I'm getting around the PATH issue by essentially stuffing all the paths into my GitPortable Environment section in the launcher ini and launching apps from there, but that gets reset each time I rebuild Git Portable.

I see that there is an AppNamePortable.ini in the Other/Source folder, but that doesn't seem to be able to override environment variables.

Thanks in advance.

Andhika24kd
Offline
Last seen: 3 weeks 2 days ago
Joined: 2018-06-28 07:13
Why don't you include it on the PAF installer?

If the [Environment] section gets reset on each update why don't you include it ([Environment] section on GitPortable.ini) to PAF installer? Moreover, you can just replace every files in Git app folder with newer Git version without using PAF installer to update it.

And why add VSCode and NodeJS PATH to Git Portable? Doesn't VSCode has built-in Git integration?

I have built a custom VSCode Portable which may do the trick for you (auto-detect Git but no NodeJS support yet since I'm unfamiliar with it), take a look especially on VSCodePortable.ini and Custom.nsh, you can modify it to suit your own need.

wingmanjd
Offline
Last seen: 8 months 3 weeks ago
Joined: 2006-11-30 19:26
VSCode has built-in git

VSCode has built-in git support, but it doesn't come with git, which is why I'm trying to get the portable versions to see each other. Same goes for nodeJS. Like I mentioned in my original post, I'm getting around the missing paths by adding them to the Git Portable environment section, but I lose that section each time I rebuild the git portable as it is custom added.

I think that PortableApps just aren't meant to do things like this, unfortunately. I wish that there could be a file restructuring that would include a central HOME and bin-like folders to ease inter-app communication, but I'm not willing to fork every app I have just to have this restructure.

Andhika24kd
Offline
Last seen: 3 weeks 2 days ago
Joined: 2018-06-28 07:13
Isn't it the opposite?

Well.. I mean why add VSCode and NodeJS to Git environment? Isn't it the opposite (add Git and NodeJS to VSCode environment)? Based on my personal experience, if you use VSCode integrated build task then almost everything can be done inside VSCode (without switching between programs).

And have you checked my VSCode Portable build yet? I made custom section called CustomPath where it will autodetect Git as long as it's located on PARENT-DIRECTORY\CommonFiles\Git folder. For NodeJS, you can place it on PARENT-DIRECTORY\CommonFiles\Custom since I haven't added NodeJS support yet. It's still not perfect but I'm trying to improve it from time to time. Will probably add NodeJS support and move INI location to launcher directory on next update if you need something like that.

Log in or register to post comments