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

Install msi file from Basic MSI?!?!

I create in InstallShield two projects Basic MSI (First, Second)
I need from Second install First.msi

[PHP]function STRING GetSupportPathMSI(hMSI)
STRING szSupportDir[MAX_PATH + 1];
NUMBER nLength;
begin
nLength = MAX_PATH + 1;
MsiGetProperty(hMSI, "SUPPORTDIR", szSupportDir, nLength);
return szSupportDir;
end;

function BeforeInstall(hMSI)
STRING PathMSI;
STRING ResStr;
NUMBER Res;
begin
PathMSI = GetSupportPathMSI(hMSI) ^ 'First.msi';
Res = MsiInstallProduct(GetSupportPathMSI(hMSI) ^ 'First.msi', 'ACTION=INSTALL CLIENTUILEVEL=3');
// Here always error 1603 - A fatal error occurred during installation.
if (Res != ERROR_SUCCESS) then
NumToStr(ResStr, Res);
MessageBox('Error install "PAUT Core 1.3": ' + ResStr, 0);
endif;

// Here show dialog with error
LaunchAppAndWait('msiexec', '/i "' + GetSupportPathMSI(hMSI) ^ 'First.msi" /qb', WAIT);
end;[/PHP]

When install First.msi separate is ok.
How install msi from script in Basic MSI project?
Labels (1)
0 Kudos
(2) Replies
Not applicable

MSI nested installations?

The Chained .msi Packages area of the Releases view is where you add to your project one or more .msi packages that you want to be chained to your main installation.
0 Kudos
Dzuyba
Level 3

Yes it is what i need. Thank you very much
0 Kudos