PATH is not being updated by scriptcs installation

Adam Ralph's Avatar

Adam Ralph

14 Jun, 2014 01:32 PM

In this build https://ci.appveyor.com/project/adamralph/bau/build/3

I am printing PATH, installing scriptcs using cinst scriptcs and then printing PATH again.

The scriptcs Chocolatey installation script copies the binaries to %APPDATA%\scriptcs and adds an entry to PATH for that folder.

As you can see, the PATH is not updated with the scriptcs folder. It remains unchanged.

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Jun, 2014 03:08 PM

    Feodor Fitsner's Avatar

    Are you calling it as ps: cinst scriptcs?

  2. 2 Posted by Adam Ralph on 14 Jun, 2014 03:12 PM

    Adam Ralph's Avatar

    This is the entire build script (install script is empty)

    cver
    PATH
    cinst scriptcs
    PATH
    scriptcs -version
    scriptcs -install
    scriptcs baufile.csx
    

    It's set to CMD, not PS.

  3. Support Staff 3 Posted by Feodor Fitsner on 14 Jun, 2014 05:08 PM

    Feodor Fitsner's Avatar

    Try running it withappveyor.yml:

    build_script:
      - cver
      - PATH
      - ps: cinst scriptcs
      - PATH
      - scriptcs -version
      - scriptcs -install
      - scriptcs baufile.csx
    
  4. 4 Posted by Aaron Dandy on 27 Nov, 2014 07:09 AM

    Aaron Dandy's Avatar

    Feels dirty but starting my script with this gets it working:

    `set PATH=%PATH%;C:\Users\appveyor\AppData\Local\scriptcs\`

  5. 5 Posted by Adam Ralph on 29 Jan, 2015 09:24 AM

    Adam Ralph's Avatar

    This is now a non-issue for me since I now install scriptcs in the install script, which is probably where I always should have been doing it.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac