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
- :
- Re: Install msi file from Basic MSI?!?!
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Apr 24, 2012
06:02 AM
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?
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?
(2) Replies