nsExec Issues and The ModerUI
I have been reading all the forum threads regarding starting dos commands or batch files and have determined that nsExec should do what I want it to. However I am having some issues with it casuing the graphics of my installer to hang (using moder UI).
Here is a brief explanation of my install program. It is basically a wrapper for an MSI.
get user input
NSIS Installs files for MSI Installation.
custom leave funtions for MUI_PAGE_INSTFILES hides installer and runs the MSI with appropriate switches
some final pages then determine if MSI installed properly, etc
However, I have a few command line scripts that I want to run as soon as the MSI install finishes succesfully. I don't want the dos windows to show so I am trying it with nsExecLog (the output would be nice to display but not necessary). However, whenever I run this the gaphics hang until the commands finish.
I have placed the commands in several areas of the code with the same result.
It is logging the command' output to the installer window but I can't see it happening. I know it is logging because if I place a message box after the nsExec commands the installer re-paints when the message box appears and I can see the appropriate result in the log window.
No matter where I run these commands I can't get it to post the output while it is happening. And the installer hanging will not be acceptable
I also put all the commands into a batch file and ran
ExecShell "open" 'firewall.bat' SW_HIDE and
ExecShell "" 'firewall.bat' SW_HIDE
which runs the batch file fine, but the dos windows still appears even though I have the SW_HIDE option set.
None of these commands seem to be behaving the the documentation states. What am I doing wrong.