diff --git a/image_creator/os_type/windows.py b/image_creator/os_type/windows.py index 86de674f9242a2c58f49480757929c64780f853a..0847190b59694eb6a190d2de8ae3aa185f774e67 100644 --- a/image_creator/os_type/windows.py +++ b/image_creator/os_type/windows.py @@ -689,8 +689,8 @@ class Windows(OSBase): addr = 'localhost' runas = '--runas=%s' % user winexe = subprocess.Popen( - ['winexe', '-U', user, runas, "//%s" % addr, command], - stdout=subprocess.PIPE, stderr=subprocess.PIPE) + ['winexe', '-U', user, runas, "--uninstall", "//%s" % addr, + command], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = winexe.communicate() rc = winexe.poll()