title: sccm 2012 r2 msi packages failing with error 0x643(1603)
body: <p>I have a question with sccm 2012 r2 and failed packages. For every package I try to deploy there is the odd one that always returns a generic error message  0x643(1603). </p>
  
  <p>I know that this is a generic msi package message, but something has me confused. When i tried to deploy adobe flash.msi it would download the package, seem to install it but will give an error past due - will be retried. </p>
  
  <p>I have set the time for the package to expire 6 hours ahead of the deployment, so a timeout isn't an issue. </p>
  
  <p>When i looked at the <code>appenforce.log</code> on the client machine ( located at <code>c:\windows\CCM\logs\Appenforce.log</code>) I found the following in the log </p>
  
  <pre><code>[LOG[++++++ App enforcement completed (11 seconds) for App DT "Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)" [ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4], Revision: 1, User SID: ] ++++++]LOG]!&gt;&lt;time="15:45:20.777+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="29796" file="appprovider.cpp:2448"&gt;
  
  [LOG[+++ Starting Install enforcement for App DT "Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\13, Execution Context - System]LOG]!&gt;&lt;time="15:49:09.871+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:1702"&gt;
  
  [LOG[    A user is logged on to the system.]LOG]!&gt;&lt;time="15:49:09.872+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2083"&gt;
  
  [LOG[    Performing detection of app deployment type Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)(ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4, revision 1) for system.]LOG&lt;time="15:49:09.874+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2148"&gt;
  
  [LOG[+++ MSI application not discovered [MSI Product Code: {FA944726-00F8-43B5-BB97-33E6FF409C22}, MSI Product version: ]]LOG]!&gt;
  &lt;time="15:49:09.875+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="msihandler.cpp:131"&gt;
  
  [LOG[    App enforcement environment: 
      Context: Machine
      Command line: msiexec /i "install_flash_player_21_active_x.msi" /q
      Allow user interaction: No
      UI mode: 0
      User token: null
      Session Id: 3
      Content path: C:\WINDOWS\ccmcache\13
      Working directory: ]LOG]!&gt;&lt;time="15:49:09.875+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:85"&gt;
  
  [LOG[    Prepared working directory: C:\WINDOWS\ccmcache\13]LOG]!&gt;&lt;time="15:49:09.876+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:189"&gt;
  &lt;![LOG[Found executable file msiexec with complete path C:\WINDOWS\system32\msiexec.exe]LOG]!&gt;&lt;time="15:49:09.878+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="executility.cpp:188"&gt;
  
  [LOG[    Prepared command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_21_active_x.msi" /q /qn]LOG]!&gt;&lt;time="15:49:09.879+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:338"&gt;
  
  [LOG[Valid MSI Package path = C:\WINDOWS\ccmcache\13\install_flash_player_21_active_x.msi]LOG]!&gt;&lt;time="15:49:09.880+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:765"&gt;
  
  [LOG[    Advertising MSI package [C:\WINDOWS\ccmcache\13\install_flash_player_21_active_x.msi] to the system.]LOG]!&gt;&lt;time="15:49:09.881+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcommon.cpp:125"&gt;
  
  [LOG[    Executing Command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_21_active_x.msi" /q /qn with user context]LOG]!&gt;&lt;time="15:49:10.268+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:201"&gt;
  
  [LOG[    Working directory C:\WINDOWS\ccmcache\13]LOG]!&gt;&lt;time="15:49:10.269+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:215"&gt;
  
  [LOG[    Post install behavior is BasedOnExitCode]LOG]!&gt;&lt;time="15:49:10.272+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcommon.cpp:1094"&gt;
  
  [LOG[    Waiting for process 27844 to finish.  Timeout = 120 minutes.]LOG]!&gt;&lt;time="15:49:10.273+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:1958"&gt;
  
  [LOG[    Process 27844 terminated with exitcode: 1603]LOG]!&gt;&lt;time="15:49:21.074+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:1967"&gt;
  
  [LOG[    Looking for exit code 1603 in exit codes table...]LOG]!&gt;&lt;time="15:49:21.075+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:505"&gt;
  
  [LOG[    Unmatched exit code (1603) is considered an execution failure.]LOG]!&gt;&lt;time="15:49:21.075+420" date="05-27-2016" component="AppEnforce" context="" type="2" thread="31144" file="appexcnlib.cpp:591"&gt;
  
  [LOG[++++++ App enforcement completed (11 seconds) for App DT "Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)" [ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4], Revision: 1, User SID: ] ++++++]LOG]!&gt;&lt;time="15:49:21.076+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2448"&gt;
  
  [LOG[+++ Starting Install enforcement for App DT "Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\13, Execution Context - System]LOG]!&gt;&lt;time="15:49:27.388+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:1702"&gt;
  
  [LOG[    A user is logged on to the system.]LOG]!&gt;&lt;time="15:49:27.388+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2083"&gt;
  
  [LOG[    Performing detection of app deployment type Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)(ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4, revision 1) for system.]LOG]!&gt;&lt;time="15:49:27.391+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2148"&gt;
  
  [LOG[+++ MSI application not discovered [MSI Product Code: {FA944726-00F8-43B5-BB97-33E6FF409C22}, MSI Product version: ]]LOG]!&gt;&lt;time="15:49:27.391+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="msihandler.cpp:131"&gt;
  
  [LOG[    App enforcement environment: 
      Context: Machine
      Command line: msiexec /i "install_flash_player_21_active_x.msi" /q
      Allow user interaction: No
      UI mode: 0
      User token: null
      Session Id: 3
      Content path: C:\WINDOWS\ccmcache\13
      Working directory: ]LOG]!&gt;&lt;time="15:49:27.392+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:85"&gt;
  
  [LOG[    Prepared working directory: C:\WINDOWS\ccmcache\13]LOG]!&gt;&lt;time="15:49:27.393+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:189"&gt;
  
  [LOG[Found executable file msiexec with complete path C:\WINDOWS\system32\msiexec.exe]LOG]!&gt;&lt;time="15:49:27.394+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="executility.cpp:188"&gt;
  
  [LOG[    Prepared command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_21_active_x.msi" /q /qn]LOG]!&gt;&lt;time="15:49:27.395+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:338"&gt;
  
  [LOG[Valid MSI Package path = C:\WINDOWS\ccmcache\13\install_flash_player_21_active_x.msi]LOG]!&gt;&lt;time="15:49:27.395+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcontext.cpp:765"&gt;
  
  [LOG[    Advertising MSI package [C:\WINDOWS\ccmcache\13\install_flash_player_21_active_x.msi] to the system.]LOG]!&gt;&lt;time="15:49:27.396+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcommon.cpp:125"&gt;
  
  [LOG[    Executing Command line: "C:\WINDOWS\system32\msiexec.exe" /i "install_flash_player_21_active_x.msi" /q /qn with user context]LOG]!&gt;&lt;time="15:49:27.800+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:201"&gt;
  
  [LOG[    Working directory C:\WINDOWS\ccmcache\13]LOG]!&gt;&lt;time="15:49:27.801+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:215"&gt;
  
  [LOG[    Post install behavior is BasedOnExitCode]LOG]!&gt;&lt;time="15:49:27.803+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appcommon.cpp:1094"&gt;
  
  [LOG[    Waiting for process 29956 to finish.  Timeout = 120 minutes.]LOG]!&gt;&lt;time="15:49:27.805+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:1958"&gt;
  
  [LOG[    Process 29956 terminated with exitcode: 1603]LOG]!&gt;&lt;time="15:49:38.441+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:1967"&gt;
  
  [LOG[    Looking for exit code 1603 in exit codes table...]LOG]!&gt;&lt;time="15:49:38.441+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appexcnlib.cpp:505"&gt;
  
  [LOG[    Unmatched exit code (1603) is considered an execution failure.]LOG]!&gt;&lt;time="15:49:38.442+420" date="05-27-2016" component="AppEnforce" context="" type="2" thread="31144" file="appexcnlib.cpp:591"&gt;
  
  [LOG[++++++ App enforcement completed (11 seconds) for App DT "Adobe Flash Player 21 ActiveX - Windows Installer (*.msi file)" [ScopeId_C8F1F365-A3C5-47CB-BD87-DB1E3BCFB76D/DeploymentType_a629d54a-d453-49a1-84c1-0192f983f1e4], Revision: 1, User SID: ] ++++++]LOG]!&gt;&lt;time="15:49:38.443+420" date="05-27-2016" component="AppEnforce" context="" type="1" thread="31144" file="appprovider.cpp:2448"&gt;
  </code></pre>
  
  <p>In the error codes for the package i have:</p>
  
  <pre><code> 0 - success (no reboot)
  1707- success (no reboot)
  3010 - soft reboot
  1641 - hard reboot
  1618 - fast retry
  </code></pre>
  
  <p>I guess my main question is why does this package keep failing? This has me scratching my head. I am sorry for the formatting of the log files, I tried to clear it up as best as i could. </p>
  
  <p>Thanks!</p>