This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installscript MSI project - How do I log when an Installation Prerequisite Fails.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2014
11:24 AM
Installscript MSI project - How do I log when an Installation Prerequisite Fails.
I have been given a requirement to log if an installation prerequiste fails. I am unaware of a way to do this. Is there a way?
Thanks,
Robert M.
Thanks,
Robert M.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2014
02:53 PM
Hi Robert.
For prerequisites the logging will depend on the package you are installing. For msi based installers you could include the /l*vC:\Temp\MyInstall.log
For setup.exe based setups you will need to consult the documentation for the company providing the installer. For instance, I do not think there is a way to specify the log location of the .NET installers, but it will create logs in the users %temp% directory.
I do not think there is a way to specify logging ONLY in a failure event. Logging is either on or off.
Any other type of behavior would require you to include your own bootstrapper and control the logging from the bootstrapper.
For prerequisites the logging will depend on the package you are installing. For msi based installers you could include the /l*vC:\Temp\MyInstall.log
For setup.exe based setups you will need to consult the documentation for the company providing the installer. For instance, I do not think there is a way to specify the log location of the .NET installers, but it will create logs in the users %temp% directory.
I do not think there is a way to specify logging ONLY in a failure event. Logging is either on or off.
Any other type of behavior would require you to include your own bootstrapper and control the logging from the bootstrapper.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2014
03:08 PM
Hello DLee,
Thanks for the information. You have confirmed what I have been able to get from the documentation and some support interaction. In my case I have been able to turn on the MSI logging on the general tab, but get the prerequisites logged you have to use the /debuglog command line. Unfortunately, this has a side effect that if you have to reboot during the prerequisites, the installation does not restart upon reboot even though the prq is set to restart after reboot. Looking through the command line parameters I have not found one that will force the reboot.
Thanks again,
Robert M.
Thanks for the information. You have confirmed what I have been able to get from the documentation and some support interaction. In my case I have been able to turn on the MSI logging on the general tab, but get the prerequisites logged you have to use the /debuglog command line. Unfortunately, this has a side effect that if you have to reboot during the prerequisites, the installation does not restart upon reboot even though the prq is set to restart after reboot. Looking through the command line parameters I have not found one that will force the reboot.
Thanks again,
Robert M.