I have a dll written in Delphi and was trying to test for a correct return code (1602),
but according to the install log the return code is always 1, even if i simply return 1602 instantly.
Code: Select all
MSI (s) (48:14) [12:37:20:199]: Doing action: InitDatabase
Actie 12:37:20: InitDatabase.
Actie gestart 12:37:20: InitDatabase.
InitDatabase:
Actie gestopt 12:37:20: InitDatabase. Return value 1.So i've put a custom action after the Start Services in the installExecuteSequence.
If for some reason the action could not be run, the installation is invalid and it should rollback the installation.
The action is Sync, check return code and Deferred.
Any ideas why the return code is always 1 ?
Delphi code:
Code: Select all
Function InitDatabase(aInitialData: pWideChar): HRESULT; stdcall;
begin
Result := 1602;
end;Thanks in advance.
FOLLOW US
Get the latest news in Application Packaging