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
- :
- Re: installation complete exit code
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
‎Sep 25, 2008
01:45 PM
installation complete exit code
I am pretty much an installshield newbie. So bear with me.
I have a customer who wants to install an applicattion via running an msi silently. This part I've got.
However, they want to be able to know when the installation is complete. They would like to be able to capture an exit code (either install success or install fail) without having to look at a log file.
How can I do this? A custom action?
I know that they are using Novell’s ZENWorks to deploy their apps. Can't zenworks capture the windows installer exit codes?
Thanks for your help.
I have a customer who wants to install an applicattion via running an msi silently. This part I've got.
However, they want to be able to know when the installation is complete. They would like to be able to capture an exit code (either install success or install fail) without having to look at a log file.
How can I do this? A custom action?
I know that they are using Novell’s ZENWorks to deploy their apps. Can't zenworks capture the windows installer exit codes?
Thanks for your help.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 25, 2008
02:30 PM
I don't know about ZENworks, but the Windows Installer engine executable msiexec.exe returns a value indicating if the installer was successful; please see the MSI help topic "Error Codes" for details.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 25, 2008
03:44 PM
My question was more along the lines of how can I see the error codes when I run the silent install. We need to see them as the install is running.
They don't want to view a logfile....
They don't want to view a logfile....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 25, 2008
04:02 PM
I'm not sure about "as the install is running", but in a batch file the idea would be something like this---
msiexec.exe /i productname.msi /qb
echo %ERRORLEVEL%
---to catch the exit code, and I assume each deployment system has a way of capturing success or failure...
msiexec.exe /i productname.msi /qb
echo %ERRORLEVEL%
---to catch the exit code, and I assume each deployment system has a way of capturing success or failure...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 26, 2008
10:55 AM
RobertDickau wrote:
I'm not sure about "as the install is running", but in a batch file the idea would be something like this---
msiexec.exe /i productname.msi /qb
echo %ERRORLEVEL%
---to catch the exit code, and I assume each deployment system has a way of capturing success or failure...
Robert,
%ERRORLEVEL% being a system variable is not a reliable way of looking for success or failure of a process, as every process that is ran at DOS level resets this var to success or failure.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 26, 2008
05:48 PM
Quite right, I just used the example for the general timing of things, and not the specific technique...
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)