SOLVED

Behavior when specified installer returns non-zero exit code

%3CLINGO-SUB%20id%3D%22lingo-sub-549664%22%20slang%3D%22en-US%22%3EBehavior%20when%20specified%20installer%20returns%20non-zero%20exit%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-549664%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20I%20create%20a%20package%20using%20an%20installer%20that%20does%20not%20return%200%20on%20the%20exit%20code%20and%20specify%20the%20installer%20to%20be%20launched%20automatically%2C%20it%20appears%20that%20the%20Packaging%20Tool%20will%20look%20at%20the%20exit%20code%20and%20pop%20up%20an%20error%20dialog%20indicating%20that%20installation%20failed.%26nbsp%3B%20(If%20the%20installer%20is%20not%20given%20to%20the%20wizard%20and%20a%20custom%20install%20method%20is%20used%20the%20tool%20doesn't%20look%20at%20the%20exit%20code).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20error%20dialog%20makes%20it%20look%20like%20the%20package%20is%20not%20good%20and%20packaging%20operations%20should%20stop.%26nbsp%3B%20I%20found%20that%20if%20the%20error%20is%20ignored%20the%20package%20is%20just%20fine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20dialog%20should%20probably%20look%20more%20like%20a%20warning%2C%20probably%20indicating%20the%20error%20code%20returned.%26nbsp%3B%20Although%20I%20would%20not%20be%20unhappy%20if%20it%20just%20stopped%20checking%20the%20result%20code.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%20Installer%20to%20reproduce%3A%26nbsp%3B%20UltraEdit%20x64%20exe%20installer%20(return%20code%20is%205%20but%20package%20is%20fine).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETim%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572049%22%20slang%3D%22en-US%22%3ERe%3A%20Behavior%20when%20specified%20installer%20returns%20non-zero%20exit%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572049%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Tim%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20taking%20the%20time%20to%20provide%20your%20feedback%20and%20example!%20This%20is%20something%20in%20our%20backlog%20that%20we%20are%20actively%20looking%20into%20for%20future%20improvements%20to%20the%20tool.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3ESharla%3C%2FP%3E%0A%3CP%3EProgram%20Manager%2C%20MSIX%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

If I create a package using an installer that does not return 0 on the exit code and specify the installer to be launched automatically, it appears that the Packaging Tool will look at the exit code and pop up an error dialog indicating that installation failed.  (If the installer is not given to the wizard and a custom install method is used the tool doesn't look at the exit code).

 

The error dialog makes it look like the package is not good and packaging operations should stop.  I found that if the error is ignored the package is just fine.

 

This dialog should probably look more like a warning, probably indicating the error code returned.  Although I would not be unhappy if it just stopped checking the result code.

 

Example Installer to reproduce:  UltraEdit x64 exe installer (return code is 5 but package is fine).

 

Tim

1 Reply
best response confirmed by John Vintzel (Microsoft)
Solution

Hi Tim,

 

Thank you for taking the time to provide your feedback and example! This is something in our backlog that we are actively looking into for future improvements to the tool.

 

Best,

Sharla

Program Manager, MSIX