Skip to content

Exit code is not 0 for silent installation. #353

Open
@Hardexit

Description

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Since v1.0.0 I always get the exitcode 1 or 2 back with the silent installation when I try to install the program, below I have attached an excerpt of the log.
I install the tool via the PSAppDeployToolkit framework.

Full version info

OS: Windows 11 build 22000
Architecture: x86_64
Version: 1.0.0.39109 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.0)
Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20
Python 3.11.10, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: German/Germany (de_DE)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion

Subproject(s) affected?

None

Anything else?

[Installation] :: [FreeCAD_1.0.0-conda-Windows-x86_64-installer-1.exe] successfully resolved to fully qualified path [C:\Temp\FreeCAD\Files\FreeCAD_1.0.0-conda-Windows-x86_64-installer-1.exe].	Execute-Process	11.12.2024 13:29:36	9520 (0x2530)
[Installation] :: UseShellExecute is set to true, standard output and error will not be available.	Execute-Process	11.12.2024 13:29:36	9520 (0x2530)
[Installation] :: Working Directory is [C:\Temp\FreeCAD\Files].	Execute-Process	11.12.2024 13:29:36	9520 (0x2530)
[Installation] :: Executing [C:\Temp\FreeCAD\Files\FreeCAD_1.0.0-conda-Windows-x86_64-installer-1.exe /S]...	Execute-Process	11.12.2024 13:29:36	9520 (0x2530)
[Installation] :: Execution failed with exit code [2].	Execute-Process	11.12.2024 13:29:42	9520 (0x2530)
[Installation] :: Closing the installation progress dialog.	Close-InstallationProgress	11.12.2024 13:29:43	9520 (0x2530)
[Installation] :: Closing the installation progress dialog's runspace.	Close-InstallationProgress	11.12.2024 13:29:43	9520 (0x2530)
[Installation] :: Removing the Image File Execution Options registry key to unblock execution of [FreeCAD.exe].	Unblock-AppExecution	11.12.2024 13:29:43	9520 (0x2530)
[Installation] :: Retrieving Scheduled Tasks...	Get-SchedulerTask	11.12.2024 13:29:43	9520 (0x2530)
[Installation] :: Deleting Scheduled Task [FreeCAD_FreeCAD_1.0.0_01_BlockedApps].	Unblock-AppExecution	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: [C:\Windows\System32\schtasks.exe] is a valid fully qualified path, continue.	Execute-Process	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: Working Directory is [C:\Windows\System32].	Execute-Process	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: Executing [C:\Windows\System32\schtasks.exe /Delete /TN FreeCAD_FreeCAD_1.0.0_01_BlockedApps /F]...	Execute-Process	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: Execution completed successfully with exit code [0].	Execute-Process	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: Deleting folder [C:\Windows\SystemTemp\PSAppDeployToolkit\BlockExecution] recursively...	Remove-Folder	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: FreeCAD_FreeCAD_1.0.0_01 Installation completed with exit code [2].	Exit-Script	11.12.2024 13:30:02	9520 (0x2530)
[Installation] :: -------------------------------------------------------------------------------	Exit-Script	11.12.2024 13:30:02	9520 (0x2530)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions