Initialization file is not writable error when starting PowerBuilder

Symptom

When starting PowerBuilder, the following error message may appear:

Initialization file is not writable. Cannot continue.

Environment

PowerBuilder

Reproducing the Issue

The error happens when the pb.ini is marked as read-only.

Cause

The pb.ini is marked as read-only.

Solution

1.  In Windows Explorer, find the pb.ini that PowerBuilder is using.

On Windows 10 or later, the location is:

C:\Users\<username>\AppData\Local\Appeon\PowerBuilder <version>

2.  Right mouse click on the pb.ini and select 'Properties' from the context menu.

3.  On the General tab, uncheck the Read-only checkbox and click OK.