/build/static/layout/Breadcrumb_cap_w.png

Exit MSI on Error with Error Code "Sucessfully Installed"

Hi
I have a little problem.
We install different MSIs in connection by using a special "container-parser".

My problem now:
I have an msi that includes an AppSearch. If this AppSearch does not respond the nescessary values there is an CA19 that terminates the installation. But if the installation is terminated this way it does not finish as "successfully installed".
Is there a possibility to end an MSI without installing but with reporting Error/Exit Code "successfully installed"

thx for ideas

0 Comments   [ + ] Show comments

Answers (4)

Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
ORIGINAL: Wolfgang74
I have a little problem.
We install different MSIs in connection by using a special "container-parser".
My problem now:
I have an msi that includes an AppSearch. If this AppSearch does not respond the nescessary values there is an CA19 that terminates the installation. But if the installation is terminated this way it does not finish as "successfully installed".
Is there a possibility to end an MSI without installing but with reporting Error/Exit Code "successfully installed"
thx for ideas

no....OK, I'll bite...why do you want an app reported as successfully installed when it is not?
If you actually want the app to install you can remove the CA or change the condition?....
Posted by: Wolfgang74 15 years ago
Senior Yellow Belt
0
Our "containers" how i mentioned act like a kind of batch file.
Our container parser runs one MSI after the other. But if one installation fails the whole containers gets stopped.
Normally thats OK for me. But now in a special case it would be nice to can go on with the next MSI.
But the parser checks the reported Error Codes. And to go on with the next MSI-package the previous must report "success".

I think by breaking with CA19 it reports me a 1603 and thats the problem.
I just need to find a possibility to manipulate or create the reporting exit code.

I know that a little bit crazy ;-) - But it would be nice for me
Posted by: anonymous_9363 15 years ago
Red Belt
0
Try setting the ProductState using the WI Automation object in script. I can't recall what the value is for 'Installed' or 'Advertised' but MSDN will have it. It will probably have example code as well.
Posted by: Wolfgang74 15 years ago
Senior Yellow Belt
0
Thanks

It seems that i have found a kind of dirty solution for my problem.
The package includes an AppSearch for Reg-Keys. If these key do not exist there was a CA19.
Now i changed a little bit.
According to the AppSearch i change the InstallLevel of the Features.
I set by "condition" the InstallLevel of all Features to 100 for AppSearch does not report what is nescessary by still using "3" as Level for Install.
Without any activated Feature (happy that this package has only "1") the msi runs but does not really install. Even you can not find it installed in ARP afterwards.
The Log shows "success" and in the end i have a "MainEngineThread is returning 0"

Still checking ... but maybe that will fit.

----------------------------------------------------------------
PS. Hope my english is OK ;-)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ