PB double antislash
Published: Dec 8, 2016 - 11:31
Good morning,
First of all, a huge thank you to the development team for this fantastic solution that makes my life so much easier
After setting up the deployment of the classic packages.
I'm tackling the creation of my first packages… Sorry, I'm also a Python newbie
I am looking to install Qgis 2.14.9.
Installing Qgis 2.14.9 is no problem EXCEPT that I have to uninstall the previous version first: a 2.14.3 (which wasn't installed with wapt, otherwise I might have been able to use the "conflicts" function if I understand correctly?)
So I set up this:
except that when I run it I get double backslashes in the path of the uninstallation executable added even though the value in the registry is correct.
I searched through the forum posts but I didn't find anything
What is the way to get around this problem?
Thank you for your help
Denis
First of all, a huge thank you to the development team for this fantastic solution that makes my life so much easier
After setting up the deployment of the classic packages.
I'm tackling the creation of my first packages… Sorry, I'm also a Python newbie
I am looking to install Qgis 2.14.9.
Installing Qgis 2.14.9 is no problem EXCEPT that I have to uninstall the previous version first: a 2.14.3 (which wasn't installed with wapt, otherwise I might have been able to use the "conflicts" function if I understand correctly?)
So I set up this:
Code: Select all
from setuphelpers import *
uninstallkey = ['QGIS 2.14']
def install():
print('installation de Qgis 2.14.9')
if isrunning('qgis-bin.exe'):
print("Qgis est ouvert !!! GRRRR...")
quit()
print('desinstallation de Qgis 2.14.3')
sofname = 'Qgis Essen'
versionsoft = '2.14.3'
uninstallkey = ['QGIS Essen']
check_installed_soft = installed_softwares(sofname)
if check_installed_soft:
for uninstall in check_installed_soft:
if Version(uninstall['version']) < Version(versionsoft):
cmd = WAPT.uninstall_cmd(uninstall['key'])
run(cmd)
run(r'"QGIS-OSGeo4W-2.14.9-2-Setup-x86_64.exe" /S')
remove_desktop_shortcut(r'GRASS GIS 7.0.4')
remove_desktop_shortcut(r'GRASS GIS 7.0.5')
remove_desktop_shortcut(r'OSGeo4W Shell')
remove_tree(r'C:\Users\Public\Desktop\QGIS Essen')
remove_tree(r'C:\Users\Public\Desktop\QGIS 2.14')Code: Select all
FATAL ERROR : CalledProcessError: Command '([u'C:\\Program Files\\QGIS Essen\\Un
install-QGIS.exe', '/S'],)' returned non-zero exit status 1What is the way to get around this problem?
Thank you for your help
Denis