Archive: calling Microsoft Installer


calling Microsoft Installer
I am creating an installer for a program that requires Java. I run the java installer if java is not present. I want to give the option to uninstall java in the uninstaller. The only way it seems to uninstall java is by using the microsoft installer MsiExec.exe. I tried running ExecWait '"MsiExec" "/x{7148F0A8-6813-11D6-A77B-00B0D0142060}"' It runs the uninstaller but acts as if there were no arguments. MsiExec returns the following error code:
ERROR_INVALID_COMMAND_LINE Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.

If I run the command from the command prompt or execute it from a tcl shell it works fine. Any ideas why it won't work from NSIS?

Thanks


Your command line for MsiExec is slightly wrong. The "/x" parameter and the GUID should be separate arguments.


Sorry, I forgot to mention that I tried the calling the command various ways: I seperated the /x and the GUID, I removed the curley bracket, I escaped the curley brackets, I seperated the /x and removed the curley brackets, I even tried lumping the entire command into one whole string, because nothing else was working


If all else fails, you can always use the documented method:

http://java.sun.com/j2se/1.4.2/docs/...de/silent.html