8000 Windows Installer log file preservation · Issue #201 · google/omaha · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Windows Installer log file preservation #201

Open

Description

@turquoiseowl

From what I can tell, Omaha enables msiexec log file output - for example to the following temporary path:

"C:\Program Files (x86)\Google\GoogleUpdate\Install\{B5F9BEF5-1D04-4FF5-AD92-4D1E21D76F51}\xyz.msi.log"

However, the containing folder is then deleted along with the log file during cleanup, AFAIK.

Is there a switch I'm missing to have this log file preserved. That's what I would like in order to diagnose problematic installs.

If not, what is the point in generating the msi log file which does tend to slow thing down?

Thanks a lot.

Activity

  1. sorinj commented on Nov 27, 2019

    @sorinj
    Contributor

    The log file is still accessible before Omaha cleans up the directory. I believe the intention was to collect a log file, and retrieve it for analysis before Omaha exited and eventually uninstalled itself.

  2. turquoiseowl commented on Nov 27, 2019

    @turquoiseowl
    Author

    Hmmm, I guess you'd need to be quick to get the log file between it being closed and cleaned up.

    After a bit more investigation, it transpires there are numerous ways to instruct Windows Installer how to log: https://docs.microsoft.com/en-us/windows/win32/msi/normal-logging

    The current explicit /log parameter has the effect of overriding any of the other indirect methods the developer might choose, e.g. via the Windows machine profile, or indeed a property in the MSI itself.

    Furthermore, the /log switch would appear to be incorrect, and should be something like /L*vx : https://docs.microsoft.com/en-us/windows/win32/msi/command-line-options

    I'm removing the switch entirely from my repo so as to fall back on the other mechanisms.

    Thanks.

  3. sorinj commented on Nov 28, 2019

    @sorinj
    Contributor

    What scenario are you trying to debug using the msi log? Generally speaking, Omaha will clean up its install directory when it instantiates an InstallManager object: https://github.com/google/omaha/blob/master/omaha/goopdate/install_manager.cc#L75
    I expect that the directory will be deleted as well when Omaha uninstalls.
    In the case of an interactive install, Omaha will keep its UI up, therefore, the log file could be retrieved before the UI is dismissed. In the case of an update, then the log file will be there until the next update attempt. I may be missing some other execution flow though.

    Re: the MSI /log command line argument, it looks like /log is supported in the version 3.0 of MSI
    Should we be doing something else?

  4. turquoiseowl commented on Nov 28, 2019

    @turquoiseowl
    Author

    I'm running some automated functional tests as part of a build and release pipeline. They simulate the full lifecycle of the app: install, run some tests, then uninstall. At the moment I'm getting occasional install issues and need the msi log file to diagnose what went on.

    Yes, sorry, I missed those later command-line options so scrub what I said about the /log switch.

    I would still suggest it is not ideal that Omaha overrides any environmental settings for msi logging and then ensures the log file it specifies is deleted.

    Cheers.

  5. sorinj commented on Dec 1, 2019

    @sorinj
    Contributor

    Understood. Would something such as a registry option to disable the MSI logging work for you?

  6. turquoiseowl commented on Dec 3, 2019

    @turquoiseowl
    Author

    Yes, that would be great.

  7. sexysue1972 commented on Feb 15, 2022

    @sexysue1972

    @#suesdefault

  8. sexysue1972 commented on Feb 15, 2022

    @sexysue1972

    View my script on TradingView

  9. sexysue1972 commented on Feb 15, 2022

    @sexysue1972
  10. Rock141 commented on Oct 1, 2022

    @Rock141

    From what I can tell, Omaha enables msiexec log file output - for example to the following temporary path:

    "C:\Program Files (x86)\Google\GoogleUpdate\Install\{B5F9BEF5-1D04-4FF5-AD92-4D1E21D76F51}\xyz.msi.log"

    However, the containing folder is then deleted along with the log file during cleanup, AFAIK.

    Is there a switch I'm missing to have this log file preserved. That's what I would like in order to diagnose problematic installs.

    If not, what is the point in generating the msi log file which does tend to slow thing down?

    Thanks a lot.

    Fix support

  11. mohammadkarimy271 commented on Jul 13, 2023

    @mohammadkarimy271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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

      0