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
- :
- When reinstall package and in silent mode return ResultCode of '0'
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
‎Feb 17, 2017
03:44 PM
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,
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,
- Tags:
- installshield
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2017
11:50 PM
does anybody have any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2017
03:20 AM
I still can't figure this out, can somebody help?