Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
110 stars 61 forks source link

Request: provide installer extraction path option #483

Open widsuoids opened 12 months ago

widsuoids commented 12 months ago

Community Note

Module Version

*4.1.0

Affected Resource(s)

Allow to specify an extract installers path other than c:\windows\temp{....} Sometimes it is not possible to write to C:\ or there is not enough free space.

cameronkroeker commented 11 months ago

Hi @widsuoids,

This is a great suggestion. The Module uses the GetTempPath() method which checks for the existence of environment variables in the following order and returns the first path found:

  1. The path specified by the TMP environment variable.
  2. The path specified by the TEMP environment variable.
  3. The path specified by the USERPROFILE environment variable.
  4. The Windows directory.

If it is not possible to write to C:\ or there is not a enough space, as a workaround, you can change or set the TMP/TEMP environment variable to a different location and the setups will be extracted to that location.

Screenshot 2023-07-14 at 8 49 18 AM

Thanks, Cameron K.