[Solved] Custom update failing when trying to add Reg entry!

Topics: Publishing Issue
Nov 7, 2013 at 4:45 PM
Edited Nov 7, 2013 at 5:13 PM
I am trying to install a VPN client with the Packager with a registry entry and receiving a window error code FFFC when trying to install.
Steps on custom update Elements.
  1. Add "Return Code" Int variable.
  2. Add Exacutable file. Path= %windir%\System32\msiexec.exe "I assume this is correct and i'm not supposed to put in the actual .msi"?
    Paramaters = /i GlobalProtect_x64.msi /quiet
    Store Return Code = Return code
    3.Reg entry Action = Add
    HLM
    Key = HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup
    Value = Portal
    New Date = 218.x.x.x
    Reg_SZ
  3. Exit Var. = Return Code
  4. Add file path of GlobalProtect_x64.msi
  5. Add vendor info page
  6. Add Msi code rule 0A448FF8-CD58-4030-B8B3-1E1171318C11 "Next"
  7. Add Msi code rule 0A448FF8-CD58-4030-B8B3-1E1171318C11 "Reverse Rule"
    Add Architecture x64 Processor rule.
  8. Publish
<CustomUpdate>
<Action>
<ElementType>CustomUpdateElements.VariableElement</ElementType>
<Name>Return Code</Name>
<Type>Int</Type>
<ID>5cdad6db-e1d0-4bef-894e-82e07f8bdf5a</ID>
</Action>
<Action>
<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>Allow to execute a file.</PathToExecutable>
<Parameters>/i GlobalProtect_x64.msi /quiet</Parameters>
<KillProcess>True</KillProcess>
<TimeBeforeKilling>15</TimeBeforeKilling>
<Variable>5cdad6db-e1d0-4bef-894e-82e07f8bdf5a</Variable>
</Action>
<Action>
<ElementType>CustomUpdateElements.WaitElement</ElementType>
<Wait>10</Wait>
</Action>
<Action>
<ElementType>CustomUpdateElements.RegistryElement</ElementType>
<RegAction>Add</RegAction>
<RegHive>HKEY_LOCAL_MACHINE</RegHive>
<RegKey>SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup</RegKey>
<RegValue>Portal</RegValue>
<RegType>REG_SZ</RegType>
<RegData>216.x.x.x</RegData>
<RegVariable/>
</Action>
<Action>
<ElementType>CustomUpdateElements.ReturnCodeElement</ElementType>
<ReturnCodeMethod>Variable</ReturnCodeMethod>
<StaticReturnCode>0</StaticReturnCode>
<Variable>5cdad6db-e1d0-4bef-894e-82e07f8bdf5a</Variable>
</Action>
</CustomUpdate>
So not sure what i'm missing? Any help would be appreciated? using version 1.3.1311.2

Error from Client.
10:00:39:551 1552 744 Handler : WARNING: Command line install completed. Return code = 0x0000fffc, Result = Failed, Reboot required = false
2013-11-07 10:00:39:551 1552 744 Handler : WARNING: Exit code = 0x8024200B
2013-11-07 10:00:39:551 1552 744 Handler :::::::::
2013-11-07 10:00:39:551 1092 d2c AU >>## RESUMED ## AU: Installing update [UpdateId = {A79D8D29-182F-4466-AC69-FB189B189F3B}]
2013-11-07 10:00:39:551 1552 744 Handler :: END :: Handler: Command Line Install
2013-11-07 10:00:39:551 1552 744 Handler :::::::::::::
2013-11-07 10:00:39:551 1092 d2c AU # WARNING: Install failed, error = 0x80070643 / 0x0000FFFC
2013-11-07 10:00:39:738 1092 14b8 Agent *********
2013-11-07 10:00:39:738 1092 14b8 Agent ** END ** Agent: Installing updates [CallerId = AutomaticUpdates]
2013-11-07 10:00:39:738 1092 14b8 Agent *************
2013-11-07 10:00:39:738 1092 d2c AU Install call completed.
2013-11-07 10:00:39:738 1092 d2c AU # WARNING: Install call completed, reboot required = No, error = 0x00000000
2013-11-07 10:00:39:738 1092 d2c AU #########
2013-11-07 10:00:39:738 1092 d2c AU ## END ## AU: Installing updates [CallId = {929F1575-5278-4AC9-A4E7-CA4D5EAB312C}]
2013-11-07 10:00:39:738 1092 d2c AU #############
Coordinator
Nov 7, 2013 at 6:45 PM
2013-11-07 10:00:39:551 1092 d2c AU # WARNING: Install failed, error = 0x80070643 / 0x0000FFFC = File Not Found

<PathToExecutable>Allow to execute a file.</PathToExecutable> = Certainly a Copy/Paste problem. Should be
<PathToExecutable>%windir%\System32\msiexec.exe </PathToExecutable>
Marked as answer by DCourtel on 1/17/2014 at 8:11 AM
Nov 7, 2013 at 10:11 PM
re-created new package and added missing %windir%\System32\msiexec.exe.
now getting error 0x80070643 and 0x802400C
<CustomUpdate>
<Action>
<ElementType>CustomUpdateElements.VariableElement</ElementType>
<Name>Return Code</Name>
<Type>Int</Type>
<ID>19d047eb-fa9e-4646-9594-bed0e9c63fe7</ID>
</Action>
<Action>
<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>%windir%\System32\msiexec.exe</PathToExecutable>
<Parameters>/i GlobalProtect_x64.msi /quiet</Parameters>
<KillProcess>True</KillProcess>
<TimeBeforeKilling>15</TimeBeforeKilling>
<Variable>19d047eb-fa9e-4646-9594-bed0e9c63fe7</Variable>
</Action>
<Action>
<ElementType>CustomUpdateElements.WaitElement</ElementType>
<Wait>10</Wait>
</Action>
<Action>
<ElementType>CustomUpdateElements.RegistryElement</ElementType>
<RegAction>Add</RegAction>
<RegHive>HKEY_LOCAL_MACHINE</RegHive>
<RegKey>Palo Alto Networks\GlobalProtect\PanSetup</RegKey>
<RegValue>Portal</RegValue>
<RegType>REG_SZ</RegType>
<RegData>216.x.x.x</RegData>
<RegVariable/>
</Action>
<Action>
<ElementType>CustomUpdateElements.ReturnCodeElement</ElementType>
<ReturnCodeMethod>Variable</ReturnCodeMethod>
<StaticReturnCode>0</StaticReturnCode>
<Variable>19d047eb-fa9e-4646-9594-bed0e9c63fe7</Variable>
</Action>
</CustomUpdate>
2013-11-07 15:51:02:172 1092 1768 Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
2013-11-07 15:51:02:172 1092 1768 Agent *********
2013-11-07 15:51:02:172 1092 1768 Agent * Online = No; Ignore download priority = No
2013-11-07 15:51:02:172 1092 1768 Agent * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1"
2013-11-07 15:51:02:172 1092 1768 Agent * ServiceID = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7} Managed
2013-11-07 15:51:02:172 1092 1768 Agent * Search Scope = {Machine}
2013-11-07 15:51:02:172 6488 1928 CltUI AU client got new directive = 'Install Complete Ux', serviceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, return = 0
2013-11-07 15:51:02:328 1092 634 AU Successfully wrote event for AU health state:0
2013-11-07 15:51:02:328 6488 1928 CltUI AU client got new directive = 'Shutdown', serviceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, return = 0
2013-11-07 15:51:02:343 1092 db8 AU AU received handle event
2013-11-07 15:51:03:235 1092 1768 Driver Matched driver to device PCI\VEN_8086&DEV_10EA&SUBSYS_1521103C&REV_06
2013-11-07 15:51:03:235 1092 1768 Driver Status: 0x180200a, ProblemNumber: 00000000
2013-11-07 15:51:04:423 1092 1768 Agent WARNING: Failed to evaluate Installed rule, updateId = {189A8F50-0C3A-4FDF-8BC2-BC23A3EB11FB}.101, hr = 80242013
2013-11-07 15:51:06:392 1092 1768 Agent * Added update {A6677A3A-B56A-48CD-BC61-E438754F92C7}.3 to search result
2013-11-07 15:51:06:392 1092 1768 Agent * Found 1 updates and 77 categories in search; evaluated appl. rules of 597 out of 2608 deployed entities
2013-11-07 15:51:06:392 1092 1768 Agent *********
2013-11-07 15:51:06:392 1092 1768 Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2013-11-07 15:51:06:392 1092 1768 Agent *************
2013-11-07 15:51:06:424 1092 1768 Report REPORT EVENT: {03B41B58-0360-42D9-AB1A-18826EB06745} 2013-11-07 15:50:59:686-0700 1 182 101 {A6677A3A-B56A-48CD-BC61-E438754F92C7} 3 80070643 AutomaticUpdates Failure Content Install Installation Failure: Windows failed to install the following update with error 0x80070643: Palo Alto x64 Client ver. 1.2.6.
Coordinator
Nov 8, 2013 at 5:04 AM
Can you look at : C:\Windows\Temp\CustomUpdateEngine.log