# Execution failed with exit code \[1603\]

**URL:** <https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557>\
**Category:** General Discussion\
**Created:** [May 11, 2020, 9:14pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557 "2020-05-11T21:14:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![simps100](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/simps100/32/644_2.png) [@simps100](https://discourse.psappdeploytoolkit.com/u/simps100)\
**Post date:** [May 11, 2020, 9:14pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/1 "2020-05-11T21:14:46Z")

</div>

Hi

Trying to deploy a MSI with PSADT using “AddLocal” to only install a particular component of the MSI but when I do i get “Execution failed with exit code [1603]”

Execute-MSI -Action ‘Install’ -Path ‘setup.msi’ -Parameters ‘/QN’ -AddParameters ‘ADDLOCAL=“Verification Station”’

If i remove "-AddParameters ‘ADDLOCAL=“Verification Station”’ " install works fine but installs everything which am trying to avoid - am new with PSADT and not used it to do an install like this so hopefully something simple!

Thanks

---

<div class="post-metadata">

**Author:** ![jmontgo2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/jmontgo2/32/302_2.png) [@jmontgo2](https://discourse.psappdeploytoolkit.com/u/jmontgo2)\
**Post date:** [May 11, 2020, 10:50pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/2 "2020-05-11T22:50:43Z")

</div>

Try this… \*\*Execute-MSI -Action ‘Install’ -Path ‘setup.msi’ -Parameters ‘/QN’ -AddParameters “ADDLOCAL=`"Verification Station`”"

If that doesnt work take a look at where its failing in the native msi log. Just search for 1603 and look at the couple lines above it.

---

<div class="post-metadata">

**Author:** ![simps100](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/simps100/32/644_2.png) [@simps100](https://discourse.psappdeploytoolkit.com/u/simps100)\
**Post date:** [May 12, 2020, 10:44am UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/3 "2020-05-12T10:44:27Z")

</div>

Hey

Thank you - gave this a go and now getting something abit different - I’ve tried re-creating the entire package too just in case something silly i’m missing.

Looking at the log below it looks like its seeing “Verification” and “Station” as transforms -AddParameters “ADDLOCAL=“Verification Station”” - Again still works fine when i remove the -AddParameters

[05-12-2020 11:30:24.761] [Installation] [Execute-Process] :: Working Directory is [C:\App Deployments\VerificationStation\Files].  
[05-12-2020 11:30:24.768] [Installation] [Execute-Process] :: Executing [C:\WINDOWS\system32\msiexec.exe /i “C:\App Deployments\VerificationStation\Files\ABBYY FlexiCapture 12 Stations x64.msi” TRANSFORMS=“Verification” TRANSFORMSSECURE=1 PATCH=“Station” /QN ADDLOCAL= /L\*v “C:\WINDOWS\Logs\Software\ABBYY FlexiCapture 12 Stations x64\_Install.log”]…  
[05-12-2020 11:31:17.456] [Installation] [Get-MsiExitCodeMessage] :: Get message for exit code [1635].  
[05-12-2020 11:31:17.464] [Installation] [Execute-Process] :: Execution failed with exit code [1635]: This patch package could not be opened. Verify that the patch package exists and that you can access it or contact the application vendor to verify that this is a valid Windows Installer patch package.  
[05-12-2020 11:31:17.492] [Installation] [Close-InstallationProgress] :: Close the installation progress dialog.

Thanks for any suggestions!

---

<div class="post-metadata">

**Author:** ![jmontgo2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/jmontgo2/32/302_2.png) [@jmontgo2](https://discourse.psappdeploytoolkit.com/u/jmontgo2)\
**Post date:** [May 12, 2020, 12:08pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/4 "2020-05-12T12:08:22Z")

</div>

Well there is always the long way of doing it  
Execute-Process -Path “C:\WINDOWS\system32\msiexec.exe” -Parameters “`"$dirFiles\setup.msi`” /i /QN ADDLOCAL=`"Verification Station`" /L\*v `"C:\WINDOWS\Logs\Software\ABBYY FlexiCapture 12 Stations x64_Install.log`“”

---

<div class="post-metadata">

**Author:** ![simps100](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/simps100/32/644_2.png) [@simps100](https://discourse.psappdeploytoolkit.com/u/simps100)\
**Post date:** [May 12, 2020, 8:34pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/5 "2020-05-12T20:34:06Z")

</div>

Doh… Was me being silly! It was the space in “Verification Station” 🤦‍♂️

ADDLOCAL=“VerificationStation” works as expected - thank you for your help!

---

<div class="post-metadata">

**Author:** ![That-Annoying-Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/that-annoying-guy/32/22_2.png) [@That-Annoying-Guy](https://discourse.psappdeploytoolkit.com/u/That-Annoying-Guy)\
**Post date:** [January 21, 2025, 9:36pm UTC](https://discourse.psappdeploytoolkit.com/t/execution-failed-with-exit-code-1603/2557/6 "2025-01-21T21:36:53Z")

</div>

Closed on January 21, 2025, 9:36pm UTC


