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

ERROR when custom action call MSIEXEC

Hello!!

I wrote a script function:
function RemoveMySQL(hMSI)
begin
if(LaunchAppAndWait(WINSYSDIR^"msiexec.exe","/uninstall \"" + INSTALLDIR^"mysql.msi" + "\"",LAAW_OPTION_WAIT)< 0) then
MessageBox ("Unable Remove My SQL.",SEVERE);
abort;
endif;
end;


And then, I add custom action to call above function.
If I add it to UI sequence then it's OK. But if I add it to Exec sequence then it's Error when run.

Error content : another installer is running. waitting for it finish.

In my task manager, it has 2 processes of msiexec.exe.

pls, help me!
Labels (1)
0 Kudos
(5) Replies
J_anitha
Level 8

In execute sequence, msiexec process is being used by your program. So if you try to use it again, it will ofcourse give an error. I don't think it's possible to make two instances of msiexec.exe run at the same time.
0 Kudos
binoco
Level 3

have any way to setup MySQL in Installscript MSI project?

I am new study installshield
0 Kudos
duannt1
Level 3

I also get a isue as you but I can not solve this isue.
Please help us!
0 Kudos
duannt1
Level 3

I think In:) .msi file of MySQL have used msiexec to call another components.
So you use msiexec to call .msi file of MySQL ==> duplicate use msiexec
0 Kudos
reachyouvenkat7
Level 4

Hi,
As windows installer 3.1 will not allow two instances of MSIEXEC at a time, because of this you are facing error. This type of behavior will be called as NETSTED MSI installation. We can puase the main installation till the time when the netsted installation is in progress. Please follow up netsted installation behaviour.
0 Kudos