Use --uninstall in winexe
authorNikos Skalkotos <skalkoto@grnet.gr>
Tue, 23 Jul 2013 10:44:10 +0000 (13:44 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Tue, 30 Jul 2013 13:43:59 +0000 (16:43 +0300)
image_creator/os_type/windows.py

index 86de674..0847190 100644 (file)
@@ -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()