Command line not executing

May 3, 2009 at 7:09 PM
Edited May 4, 2009 at 5:30 PM


a command component is used by me to execute the following commands (this is what I put in the command-field):
start /wait msiexec /uninstall {AB00DB53-6902-44c2-8537-BC3B8283A21D} /quiet & msiexec /I "#CABPATH\Aplication.msi"

If I execute this on the command prompt, it works well, but with DNI I get an error asking me to continue with the other components. The log says:
2009-05-03 20:08:21 Executing: start /wait msiexec /uninstall {AB00DB53-6902-44c2-8537-BC3B8283A21D} /quiet & msiexec /I "F:\Temp\{F3E0D2BE-9B07-4FD4-BCF2-15FA07EF6AC4}\Application.msi"
2009-05-03 20:08:21 ***Component ERROR ON DOWNLOAD OR EXECUTING

Is there anything special I should take care of?

Edit: Since I solved the issue of uninstalling and installing a MSI (what I wanted to with the command line above) in another way (I managed it directly in the MSI) I currently do not need do do such calls anymore. It would be good if something like the above would work, but I do not need it currently :)


May 6, 2009 at 11:52 PM

Sounds like a stretch :) It's impossible to know whether something like this succeeds or fails.

I think "start" is a shell extension. Instead of doing that, just run a command "msiexec.exe /uninstall ...", we use it in a lot of bootstrappers. dotNetInstaller will wait for the msiexec process to complete anyway. You're also trying to pack two commands in one, which is achieved by two commands in dotNetInstaller.