# Install location for iisexpress

**URL:** <https://travis-ci.community/t/install-location-for-iisexpress/2902>\
**Category:** Windows\
**Created:** [April 3, 2019, 10:48pm UTC](https://travis-ci.community/t/install-location-for-iisexpress/2902 "2019-04-03T22:48:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijetm](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vijetm](https://travis-ci.community/u/vijetm)\
**Post date:** [April 3, 2019, 10:48pm UTC](https://travis-ci.community/t/install-location-for-iisexpress/2902/1 "2019-04-03T22:48:12Z")

</div>

Hi everyone.  
I’m trying to install the iisexpress server on travis.  
Here’s my `.travis.yml` -

```auto
os: windows

language: node_js

node_js:
- '10'

install:
  - choco install iisexpress
  
script:
  - iisexpress 

```

I do see that iisexpress is successfully installed in travis logs -

```auto
51.42s$ choco install iisexpress
Chocolatey v0.10.11
Installing the following packages:
iisexpress
By installing you accept licenses for the packages.
Progress: Downloading DotNet4.0 4.0.30319.20141222... 100%
Progress: Downloading iisexpress 10.0.0.20181007... 100%
DotNet4.0 v4.0.30319.20141222 [Approved]
dotnet4.0 package files install completed. Performing other installation steps.
Microsoft .Net 4.0 Framework is already installed on your machine.
 The install of dotnet4.0 was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.
iisexpress v10.0.0.20181007 [Approved]
iisexpress package files install completed. Performing other installation steps.
Downloading iisexpress 64 bit
  from 'https://download.microsoft.com/download/C/E/8/CE8D18F5-D4C0-45B5-B531-ADECD637A1AA/iisexpress_amd64_en-US.msi'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\iisexpress\10.0.0.20181007\iisexpress_amd64_en-US.msi (9.09 MB).
Download of iisexpress_amd64_en-US.msi (9.09 MB) completed.
Hashes match.
Installing iisexpress...
iisexpress has been installed.
  iisexpress may be able to be automatically uninstalled.
 The install of iisexpress was successful.
  Software installed as 'msi', install location is likely default.
Chocolatey installed 2/2 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

```

But when I run the `iisexpress` command, I get `iisexpress command not found` error.

- I have tried using `iisexpress.exe` command. But that doesn’t work either. (Windows n00b alert)
- When I install a package using choco, I see that it’s not added to PATH. Is this correct?
- If so, where is the default install location for choco packages?

Any help would be much appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![tanzislam](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/tanzislam/32/2591_2.png) [@tanzislam](https://travis-ci.community/u/tanzislam)\
**Post date:** [November 6, 2019, 12:56am UTC](https://travis-ci.community/t/install-location-for-iisexpress/2902/2 "2019-11-06T00:56:04Z")

</div>

Chocolatey updates the system `PATH` in the Registry, but it doesn’t get applied in any running applications. To reload it from the Registry you’ll need to use [`RefreshEnv.cmd`](https://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/redirects/RefreshEnv.cmd) (for a `cmd.exe` session) or `RefreshEnv.ps1` (for a PowerShell session).

So, keeping in mind that your `.travis.yml` commands run inside a Git Bash shell, instead of `iisexpress.exe` you’ll need to run:

```
cmd.exe //c "RefreshEnv.cmd & iisexpress.exe"
```
