Blank CMD Window After Update

Hi all,

We are currently developing an Outlook Add-In. After performing an update via wyUpdate, Outlook successfully closes and starts back up. However, a blank .cmd window remains open.

I have confirmed that no batch files have been written that have not been closed.

Any suggestions on how to rid of this orphan cmd window? Otherwise, the user has to manually exit cmd.

wyUpdate doesn't start any command windows. It's something in your app, or something you're starting.

I've done some investigation of this issue, created a simple test project of Outlook Addin,it contains form with updater and update button, also I setup CloseAppNow handler to close applicationproperly using Globals.ThisAddIn.Application.Quit().

That's what I found:If you run outlook under default user permissions, while updating outlook is simply closed and new instance is not started after.If you run outlook as administrator, it starts a new instance of outlook after updating through cmd.exe(probably windows behavior).

Could you please take a look at this? or provide an example of wyUpdate usage in case of outlook addin.I've uploaded my code here https://www.dropbox.com/s/pkafm1gxh65mu7v/OutlookAddIn1.zipThanks!

First of all, don't do this:

        private void Form1_Load(object sender, EventArgs e)        {            automaticUpdater1.ForceCheckForUpdate();        }

The automaticUpdater automatically checks for updates. Don't ForceCheckForUpdates(). Why? Because it messes with things if you don't check the current state of the update progress.

As far as why a commanline window is popping up, I don't know. It's something in your app.