Click here to Skip to main content
15,891,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a Windows application for installing features (like SQL server silent installation, vlc and others) in batch where user can select which features to install. Now I want to detect if any of the installation is completed successfully or aborted or did not installed successfully. How can I catch this event in the windows application?
used the following code to launch each set up:

VB
If chkVLC.Checked = True Then
            Process.Start("E:\Personal Projects\VS Works\Win App\testLastinstallation\testLastinstallation\testLastinstallation\Executables\vlc-1.1.7-win32-Tatilley.exe")
        End If


I tried to do same kind of thing using installationSheild wizard, which seemed very complex to me. That's why I created this windows application which i intend to use as custom action in installationSheild wizard :(

Can you guys give any solution/example?
Posted
Comments
[no name] 26-May-14 10:17am    
Did you look at the documentation for the Process class to see if there was maybe some way of waiting for the process you start to exit and then check an exit code?
Member 10758061 27-May-14 2:50am    
Thanks for the suggestion. Process class ExitCode() method seems to work. Still not able to find out meaning of non-zero exit codes. But it is working

1 solution

you could use inno setup [^]

it is simple and powefull
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900