Run rubyw.exe from Fixed Location with Personal Firewall
When the PIA client is started, it unpacks a rubyw.exe into a temporary location and executes it. Since the temporary location is different every time, it is impossible for most personal firewalls to whitelist that process, resulting in blocks or firewall popups every time.
There is a nice post about how a guy developed an application that allows executing PIA with rubyw.exe from a fixed location: https://www.privateinternetaccess.com/forum/discussion/2286/pia-from-a-fixed-location-in-windows/p1
However, it is MUCH easier to get there without the need of downloading anything or executing someone else's executable:
- Run PIA application, let it start
- Now you need to find the temp directory created by PIA, it has a patter like C:\Users\YOUR_USER_NAME\AppData\Local\Temp\ocrXXXX.tmp\
YOUR_USER_NAME <-- this is YOUR username
XXXX <-- randomly generated alphanumeric value
Tipp: You can get to your temporary directory easily if you just put %temp% into your Windows explorer location bar and hit Enter.
So, find this temp folder, it will contain 3 folders: bin, lib and src, keep it open.
- Now open location where PIA is installed, in my case it was installed to "C:\Program Files\pia_manager" (I will refer to this location as "PIA directory" from now on)
Copy those 3 folders (bin, lib and src) to PIA directory.
- Exit PIA application
- Right click on an empty spot on your desktop and choose New -> Shortcut
- Browse to the rubyw.exe that is inside your PIA directory in the bin folder,
then on the same wizard page add a space character at the and and add:
- Click Next and there you can give a nice name for the shortcut, for example:
- Click Finish and you are done, technically.
- You might want to change the shortcut icon. Right-click the shortcut, choose Properties -> Change Icon... > Browse... and navigate to your pia_manager.exe application. Then you can select the green robot and klick OK (2 times).
That's all that's necessary! When you start PIA with this link, it uses the rubyw.exe from your Program Files. Turns out, you don't really need any other environment settings or a third-party app, at least in my environment (tested on 2 PCs).
Thought I share that with you...
Have a nice day,