From: Nikos Skalkotos Date: Tue, 23 Jul 2013 10:44:10 +0000 (+0300) Subject: Use --uninstall in winexe X-Git-Tag: 0.5~1^2~13^2~12 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/7dc920817af8ab17b6a25d8d5df5ff9eb1a1713b Use --uninstall in winexe --- diff --git a/image_creator/os_type/windows.py b/image_creator/os_type/windows.py index 86de674..0847190 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()