# Change Install Directory After Installation

**URL:** <https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086>\
**Category:** Ignition\
**Created:** [November 30, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086 "2022-11-30T15:05:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [November 30, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/1 "2022-11-30T15:05:00Z")

</div>

Is the best way to change the install directory for Ignition to uninstall and install? Change the install directory through the install wizard

Or move the Ignition folder?

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 30, 2022, 3:21pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/2 "2022-11-30T15:21:19Z")

</div>

I would typically move the Ignition folder by following these steps:

1. Stop Ignition service (run `stop-ignition.bat` file or stop from services)
2. Run `uninstall-ignition.bat` file (uninstalls the service)
3. Move the entire Ignition install directory to new location
4. Run `install-ignition.bat` file (reinstall the service)
5. Start Ignition service (run `start-ignition.bat` file or start from services)

Following these steps will set the path to executable for the service to the new location.

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [November 30, 2022, 3:25pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/3 "2022-11-30T15:25:42Z")

</div>

When doing this on a Linux OS, there is an Uninstall.run file but not an Install.run file.

Also, I don't see anything about install/uninstall using the Gateway Command-line Utility (gwcmd).

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 30, 2022, 3:36pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/4 "2022-11-30T15:36:44Z")

</div>

I don't have a Linux system to test at the moment, but I think you should be able to run `./ignition.sh remove` from the install directory and then use `./ignition.sh install` from the new location.

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 30, 2022, 3:40pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/5 "2022-11-30T15:40:39Z")

</div>

I would suggest taking a gateway backup before testing

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [November 30, 2022, 3:45pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/6 "2022-11-30T15:45:54Z")

</div>

To be clear, run `./ignition.sh remove` while in the directory where Ignition is installed? Then run `./ignition.sh` install from the new directory?

The `./ignition.sh` install won't be in the new directory, it'll still be in the old directory. So move the files after running `./ignition.sh remove` to the new directory and then I'll be able to run `./ignition.sh install`?

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 30, 2022, 4:08pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/7 "2022-11-30T16:08:38Z")

</div>

Correct, run `./ignition.sh remove` from the current install directory, then move the entire Ignition install directory to the new location and then run `./ignition.sh install` from the new directory. Again, make sure you take a gateway backup before testing this out. I haven't actually tried this on Linux. All the times I've gone through it have been on Windows.

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [November 30, 2022, 4:13pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/8 "2022-11-30T16:13:50Z")

</div>

Ok, thank you for the info. I will give it a try on a dev environment and make sure this works properly before doing it in production.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 30, 2022, 4:34pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/9 "2022-11-30T16:34:40Z")

</div>

I would personally just let the installer do this.  
Take a backup.  
Run the uninstaller.  
Install the version you want in the location you want.  
Restore the backup.

---

<div class="post-metadata">

**Author:** ![Christopher.Johnson](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Christopher.Johnson](https://forum.inductiveautomation.com/u/Christopher.Johnson)\
**Post date:** [November 30, 2022, 4:56pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/10 "2022-11-30T16:56:39Z")

</div>

Agreed, with how robust Ignitions gateway backup is, it would be immensely easier to take a backup, uninstall, reinstall in correct directory location desired and restore the gateway backup. Shorter downtime and less room for issues down the road.

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [November 30, 2022, 6:32pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/11 "2022-11-30T18:32:26Z")

</div>

I tried it by running the uninstaller and re-install. Seem to take longer especially loading in the gateway backup which took longer than 1 minute. Then I had to go through the gateway network configure and approve/accept connections. I didn't have to do that when moving the files over after running the steps @avaughn suggested.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 30, 2022, 6:36pm UTC](https://forum.inductiveautomation.com/t/change-install-directory-after-installation/67086/12 "2022-11-30T18:36:01Z")

</div>

Ah, yeah. The new install will have a new UUID generated, which will need to be accepted again. Potentially a point in favor of moving the files 🤷‍♂️
