# How can you install a package into a specific directory using Ansible?

**URL:** <https://forum.ansible.com/t/how-can-you-install-a-package-into-a-specific-directory-using-ansible/21449>\
**Category:** Ansible Project\
**Created:** [May 16, 2016, 4:47pm UTC](https://forum.ansible.com/t/how-can-you-install-a-package-into-a-specific-directory-using-ansible/21449 "2016-05-16T16:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesvader13](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jamesvader13](https://forum.ansible.com/u/jamesvader13)\
**Post date:** [May 16, 2016, 4:47pm UTC](https://forum.ansible.com/t/how-can-you-install-a-package-into-a-specific-directory-using-ansible/21449/1 "2016-05-16T16:47:50Z")

</div>

> |   
>   
>   
> I am using win\_package to install many MSI’s and EXE’s. I would like to be able to pass a directory as an argument so that they get installed in a particular folder.  
>   
>   
>   
> Right now they are automatically getting installed in C:/Program Files but I would like them to be installed on a different drive.  
>   
>   
> |
