Ayush
Ayush

Reputation: 165

Batch file for uninstallation of application

I have created a batch file to uninstall my application. The code is:

//
@ECHO OFF 

msiexec /x {8DF8694A-6B64-4477-8B6B-1F9D676107E7}

//

It works fine, but when I run this file the cmd promt is open. I don't want to open the command promt - what can I do?

Upvotes: 0

Views: 266

Answers (1)

David Heffernan
David Heffernan

Reputation: 613441

That's just the nature of the batch file interpreter. It is going to put a console window up, and include it in the taskbar.

Instead of a batch file ship a shortcut whose target is your msiexec command. It's just a different way to invoke the command but it won't lead to any windows being shown, beyond what msiexec may show.

Upvotes: 1

Related Questions