# Want to change the installatin path using win\_package

**URL:** <https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478>\
**Category:** Ansible Project\
**Created:** [January 20, 2019, 2:18pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478 "2019-01-20T14:18:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyam.awk](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shyam.awk](https://forum.ansible.com/u/shyam.awk)\
**Post date:** [January 20, 2019, 2:18pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478/1 "2019-01-20T14:18:54Z")

</div>

Hi,

I want to change the new software installation path from C:\ to D:\ but the installation is going to the C:\ drive and the following playbook not worked. The package is at shared network path.

- name: installation of the package in D drive  
win\_package:  
path: \Network\path\rabbitmq.exe  
arguments: “INSTALLDIR=D:\Program Files”

Also tried the following

- name: installation of the package in D drive  
win\_package:  
path: \Network\path\rabbitmq.exe  
arguments\*\*:\*\*  
**- /D=D:\Program Files**
- /install

```auto
   Can any one help.

```

```auto
Thanks and Regards,

```

```auto
Shyam

```

```auto

```

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [January 20, 2019, 5:12pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478/2 "2019-01-20T17:12:42Z")

</div>

`

- name: installation of the package in D drive  
win\_package:  
path: \Network\path\rabbitmq.exe  
arguments: INSTALLDIR=“D:\Program Files”

`

should work. Please post the verbose output here. (use -vvvv)

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [January 20, 2019, 5:15pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478/3 "2019-01-20T17:15:03Z")

</div>

Also might wanna add /q

---

<div class="post-metadata">

**Author:** ![shyam.awk](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shyam.awk](https://forum.ansible.com/u/shyam.awk)\
**Post date:** [January 20, 2019, 5:22pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478/4 "2019-01-20T17:22:01Z")

</div>

Hi Varun,

I will try this.

Thank you,  
Shyam
