Just have a question… I have created a perl build and was able to successfully launch the powershell script on my windows 2019 machine for perl to be installed… but how can I force it to install it on a specific folder?
By default, the powershell script uses our CLI tool (the state tool) to create a virtualized environment for your perl install, meaning you can have multiple versions of perls with different mixes of modules installed on your machine at the same time and switch between them using state activate (see the state tool documentation for more information). The powershell script also installs your build as a “default” virtual environment such that if you don’t have any other perl build activated, this one will be used by default. It does this by modifying you PATH environment variable to include the directory where the default virtual environment bootstrap scripts are installed.
If you only intend to ever install a single build of perl and not modify it by including more or updated modules, you can use the state deploy command to install your build and this command allows you to specify exactly where you would like your build installed. You can do this with, for example:
state deploy --path C:\ActiveState\my-perl-build my_platform_org/my_project_name
This will install the build in C:\ActiveState\my-perl-build, but you can choose whichever directory you like. Note that this is a more traditional form of installation that will set some environment variables globally and has all the downsides of traditional installs, especially if you try to install multiple versions.