+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How do I get the logs of installation

  1. #1
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default How do I get the logs of installation

    Hello,

    I have created setup.exe using SB10. I have one scenario to test like, I have installed my product 1.0 which install node service using NSSM. now I want to install product 2.0, in 2.0 before copying new files I am checking if service is running then stop and then copy new files and then again start the node service using NSSM. here i want to test like if NSSM is used by other application and that time I am trying to install 2.0 how it works, so when I installed 2.0 it says installed and shows finish screen, and asks for restart, I wanted to check installation log here, so can you please help me how I can get installation log.
    And as while installing 2.0 new nssm file will get copied in installation dir however old nssm file is being used by other application so how SB handles this, it does not throw any error? is it in logs?

    Thanks in advance!

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How do I get the logs of installation

    Hello,

    sorry, but we really need your 1.0 and 2.0 scripts to see what you are doing here. A restart is requested (by Windows) if you replace locked (in-use) files. The un-installation log is created (by default) in the application folder (if you have enabled the uninstall feature).

    You say, "old nssm file is beeing used by another application". Unfortunately, I don't know what this means. How would you handle this scenario WITHOUT SetupBuilder. You can then replicate the steps with SetupBuilder.

    Friedrich

  3. #3
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I get the logs of installation

    Hello,

    "old nssm file is beeing used by another application" means NSSM file is being locked by other application. In this case we want to show error to user and rollback if anything copied and exit the application. We want installation logs like in this case log file should show that which file is being locked which caused us to exit the installation with other logs.

    Thanks!

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How do I get the logs of installation

    Hello,

    the default and recommended way is to let Windows replace the file at the next reboot.

    If you would like to stop the installation, you can use the "Check In-user File..." and/or "Check In-use Folder Tree..." script functions and then act accordantly (e.g. ask the user to stop the app or kill a service and wait, then check again if it is still locked), or Exit the install.

    You should do it BEFORE you begin to modify the system.

    Friedrich

  5. #5
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I get the logs of installation

    Thanks Friedrich!!

    I'll definitely check this.

  6. #6
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I get the logs of installation

    Hello,

    can you please comment on installation logs?

    Thanks!

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How do I get the logs of installation

    Hello,

    not exactly sure how to answer this question. The UNinstallation log (an ASCII text file) logs actions to power the uninstall executable (uninstall files, registry entries, edit INI, shortcuts, etc.). It does not log all actions (e.g. Run, Search for File, etc.).

    You can run an installer in event logging mode (/E) to check specific actions.

    Friedrich

  8. #8
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I get the logs of installation

    Thanks Friedrich,

    I'll check that.

  9. #9
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I get the logs of installation

    Hi Friedrich,

    Event logging will be enabled by passing \E command line option while running the installer. However If I want to always enable event logging without passing the \E, How can I do this? User will just double click on installer file and event logging should happen in that case.


    Thanks in advance!!

  10. #10
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How do I get the logs of installation

    Hello,

    the /E event logging switch is strictly required in order to enable this feature. It's not possible to enable it by default. But I'll check if it is possible to add such a feature.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •