Improvements
-
dgw: size-based log rotation (#393) (e3acafcfcd) (DGW-34)
Set a maximum size of 3 MB for each file and a maximum of 10 log files.
With this change, Devolutions Gateway should never consume more than 30 MB for its logs. -
pwsh: sort certification chain from leaf to root (#394) (f7ff93c6df) (DGW-80)
-
installer: improved error handling in Windows installer (#397) (2766e5fffe) (DGW-78)
PowerShell configuration commands are now executed as custom actions instead of WixSilentExec.
Errors are tracked and, if the installer is running with UI, an appropriate error message is shown to the user.PowerShell command output is redirected to a temporary file; in the case of an error we provide the user the path to that file.
A general command execution error will display a string error value.Custom actions are refactored slightly for consistency and readability:
- Internal functions now only return
void
,BOOL
, orHRESULT
where possible. Errors are always handled asHRESULT
and other results (e.g. Win32 error codes,LSTATUS
, null references) are converted toHRESULT
and handled with the different WiX macros (e.g.ExitOnWin32Error
). - Consolidate on
WixGetProperty
instead ofMsiGetProperty
and be careful to release the resulting strings (ReleaseStr
) - Consolidate on
nullptr
instead ofNULL
- Internal functions now only return
-
installer: rollback on error in Windows installer (#397) (2766e5fffe) (DGW-76)
For first time installs, if the installation fails, files that may have been created by the configuration process are cleaned up.