how to get the return value of patch installer - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

pintu.bppimt
Posts: 6
Joined: Fri Mar 11, 2011 10:03 am

how to get the return value of patch installer

Hi Mihai,

I have a customed situation for which i have to use the following line of code in my java application to invoke the patch installer.---
Runtime.getRuntime().exec("msiexec.exe /update \"" + propMap.get("downloadLoc").toString() + "\"");

Now what i want is - when the above line of code get executed, the patch installer start . Normally it get installed successfully.
I have to receive the return value from installer that installation is successful. If installation failed, i have also to detect that
. Normally i want to catch the event that installation is successful or not. Hi can i get that? It is necessary because based on this return value i have to update some field. Waiting for your replay.

Thanks,
Pintu
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: how to get the return value of patch installer

Hi Pintu,

Unfortunately, you cannot have any interaction between java and the install process( like you would with javascript or vbscript via properties for example ).
You can try to define a version criteria for your application( registry value or file version ) and use it in your java application to detect whether the patch was successfully installed or not.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”