cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kwib799
Level 3

When reinstall package and in silent mode return ResultCode of '0'

I wanted to do the following and have the ResultCode of '0' returned, but '-3' always returned.

Is "return 0" a valid way?

function OnFirstUIBefore()
if ((MODE = SILENTMODE)
&& MSICONDITION_TRUE = MsiEvaluateCondition(ISMSI_HANDLE, "REINSTALL<>\"\"")) then
**return 0;**
...
endif;

I just tried with the second install. It seems OnMaintUIBefore() gets called, so I added the following:

function OnMaintUIBefore()
begin
// reinstall scenario - ignore
if ((MODE = SILENTMODE)
&& REMOVEONLY) then
return 0;
endif;
but still Setup.log has this inside:

[ResponseResult]
ResultCode=-3


Thanks,
Labels (1)
0 Kudos
(2) Replies
kwib799
Level 3

does anybody have any ideas?
0 Kudos
kwib799
Level 3

I still can't figure this out, can somebody help?
0 Kudos