Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Changing external files using commands – PB Docs 2021 – PowerBuilder Library

Changing external files using commands – PB Docs 2021

Changing external files using commands

When the application is deployed (from the PowerBuilder IDE) or
installed (from the packaged executable installer or zipped file) to
the Web server, the app files are generated with hash codes, to
prevent files changed illegally from running. Therefore, you cannot
directly change the deployed files on the Web server, instead you will
have to make changes in the project painter and then deploy the
application again, or modify the files using the CustomizeDeploy.dll tool.

The CustomizeDeploy.dll tool
allows you to modify the external files in the Web server. The
“external files” refers to the packages, folders, and files (such as
INI files, DLL/OCX etc.) that are deployed from the External Files tab of the PowerClient project
painter.

You can find the CustomizeDeploy.dll tool under the “1.01”
sub-folder of the application folder after the application is deployed
or installed to the Web server (either from the PowerBuilder IDE or
from the packaged executable installer or zipped file).

The CustomizeDeploy.dll tool
supports the following syntax:

The “src” argument should point
to the new file that you want to use to replace the old file.

The “dest” argument should
point to the old file that you want to replace with the new
file.

When external files are deployed to the server, they are
appended with the file extension “.zip”, but they are not compressed
files (the only exception is package). For example, if apisetup.ini is selected in the External Files
tab, it will be deployed as apisetup.ini.zip to the server, however,
apisetup.ini.zip is not a compressed
file and it can be directly opened in a text editor just like
apisetup.ini.

And to replace the file, you should prepare the source file
without .zip extension.

For example,

Or

The only exception is the package which is indeed compressed as
the zip format (with file extension “.zip.zip”) during deployment.
Therefore, you should prepare the source file for the package in the
compressed zip format.

For example,

Or

The tool will replace the package as a whole (and refresh the
hash code of the package) and it will not validate the individual
files included in the package. Therefore you need to make sure the
files included in the package are correct and complete.

Important

Prerequisites

To execute the CustomizeDeploy.dll file using the dotnet
command, you will need to install the ASP.NET Core Runtime 3.1 or
later in the server.

To run CustomizeDeploy.dll in Windows Web server:

  1. Install the ASP.NET Core Runtime 3.1 or later.

  2. Open the command prompt. (You’d better run the command
    prompt using an administrator by right-clicking it and then
    selecting “Run as administrator”).

  3. Navigate to the Web server root folder > [application]
    folder > “1.01” (for example,
    C:inetpubwwwrootsales1.01).

  4. Execute the CustomizeDeploy.dll file using the dotnet
    command.

To run CustomizeDeploy.dll in Linux Web server:

  1. Install the ASP.NET Core Runtime 3.1 or later.

  2. Go to the Web server root folder > [application] folder
    > “1.01” (for example, /var/www/html/sales/1.01, or
    /usr/share/nginx/html/sales/1.01).

  3. Right click the blank area within the folder and then select
    Open in Terminal.

  4. Execute the CustomizeDeploy.dll file using the dotnet
    command. Notice that the command and file name are all
    case-sensitive in the Linux OS.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x