NSIS fails to install from APM Configuration tool


 Product(s):APM Implementation and Performance Management
 Version(s):7.19
 Environment:N/A
 Area:N/A
 Subarea:N/A

Problem Description

An APM was setting up a new APM instance in preparation for an upgrade. When the user ran the APM Configuration tool, the instance failed a test related to the NSIS prerequisite. The user then followed the APM Instructions to run the NSIS Install script via the APM Configuration tool and was issued the following error:

Solution

Many users do not have permissions to access the internet from the server in order to download and install applications. NSIS is 3rd party installer tool used by APM for packaging clients such as the smart client and remote client. In earlier versions of APM (pre release 7.18) this was bundled with the APM installer and automatically installed in the relevant APM installation folders. As of release 7.19, the NSIS tool is no longer packaged with APM but is still a prerequisite (see APM prerequisites documentation.

The solution is for the user to request their inhouse IT team to review, approve and then install, via the APM Configuration tool the NSIS tool.

The other options are to:

1. Run the following procedure, post internal review and approval:

In the start menu type windows powershell, run the windows powershell app

Once it starts enter this on the command line:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

You will get this prompt:

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y

Enter Y

Run Configure APM

Click the install NSIS button

To re-enable powershell security use this:

Set-ExecutionPolicy Default -Scope CurrentUser

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y

Enter Y

2. For users with a pre-existing APM installations in earlier but recent releases of APM that have already been reviewed and approved internally, the user may copy the already installed NSIS components found in APM installed bin folder:

C:\Program Files\Bentley\AssetWise Performance Management\bin\NSIS\

Note, it is recommended that the user check the properties on the version of NSIS app in this folder for version and date. Compare this version with that of the NSIS version you're trying to download. If the dates and version vary then you may need to request for the user's internal IT team to run the install as old versions of NSIS may not be fully compatible with new releases of APM.

See also

SR 7001484174

https://communities.bentley.com/products/assetwise/asset_performance_management/f/assetwise-apm-internal-training-forum/236566/nsis-in-apm-7-19-cannot-be-installed-because-running-script-is-disabled