Page 3 of 8
Re: [SOLVED] Creating Edt/Pronote package
Published: September 4, 2018 - 1:57 PM
by e-annaThouet
Hello Olaplanche,
I would also be interested in the Pronote package as I work across several schools and it would be a great help and save me a lot of time.
Thank you in advance.
Re: [SOLVED] Creating Edt/Pronote package
Published: September 4, 2018 - 3:08 PM
by olaplanche
Hello,
Pronote package sent!
Best regards,
Re: [SOLVED] Creating Edt/Pronote package
Published: September 4, 2018 - 4:45 PM
by e-annaThouet
Thank you so much for the speed; the package will save me a tremendous amount of time.
Sincerely
Re: [SOLVED] Creating Edt/Pronote package
Published: September 6, 2018 - 9:14 PM
by jejew2006
Hello Olaplanche,
I would also be interested in the EDT package.
Thank you in advance.
Re: [SOLVED] Creating Edt/Pronote package
Published: September 7, 2018 - 8:22 AM
by olaplanche
Hello,
EDT package sent!
Best regards,
Re: [SOLVED] Creating Edt/Pronote package
Published: September 7, 2018 - 2:54 PM
by alf
Hello,
I'm going to try something a little different.
Could I also have the Pronote package?
Thank you in advance.
Anne-Laure
Re: [SOLVED] Creating Edt/Pronote package
Published: September 7, 2018 - 2:58 PM
by olaplanche
Hello,
It's done!
Best regards,
Re: [SOLVED] Creating Edt/Pronote package
Published: September 10, 2018 - 2:42 PM
by alf
Hello,
thank you for your quick response.
The installation worked perfectly.
However, I'm having trouble uninstalling it via Wapt.
Is there anything specific I need to do?
Thank you in advance.
Anne-Laure
Re: [SOLVED] Creating Edt/Pronote package
Published: September 10, 2018 - 4:00 PM
by olaplanche
Good morning,
I have just updated the code for the uninstall part of the edt package as shown below:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing wapt-edt2018')
install_exe_if_needed("Install_EDTclient_FR_2018.0.2.1_win64.exe",silentflags='-s -f1%s\Setup.iss' % basedir,key='{56186141-47B5-4BF6-A06E-6D6EED12C720}',min_version='0.0.2.1',killbefore='Client EDT.exe')
uninstallkey.remove('{56186141-47B5-4BF6-A06E-6D6EED12C720}')
remove_desktop_shortcut('EDT2017.lnk')
create_desktop_shortcut(r'EDT2018',target=u'C:\Program Files\Index Education\EDT 2018\Réseau\Client EDT.exe',arguments=r'-Adresse "SERVERNAME" -PortTcp "SERVERPORT"')
def uninstall():
print('uninstalling wapt-edt2018')
import tempfile
pathuninstallfile = makepath(tempfile.gettempdir(),'Uninstall.iss')
data = ur"""[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{56186141-47B5-4BF6-A06E-6D6EED12C720}-DlgOrder]
Dlg0={56186141-47B5-4BF6-A06E-6D6EED12C720}-MessageBox-0
Count=2
Dlg1={56186141-47B5-4BF6-A06E-6D6EED12C720}-SdFinishReboot-0
[{56186141-47B5-4BF6-A06E-6D6EED12C720}-MessageBox-0]
Result=6
[{56186141-47B5-4BF6-A06E-6D6EED12C720}-SdFinishReboot-0]
Result=1
BootOption=0
"""
fichier = open(pathuninstallfile, "w")
fichier.write(data)
fichier.close()
run(r'"%s\InstallShield Installation Information\{56186141-47B5-4BF6-A06E-6D6EED12C720}\setup.exe" -runfromtemp -l0x040c -uninst -removeonly -s -f1%s' % (programfiles32,pathuninstallfile))
remove_file(pathuninstallfile)
remove_desktop_shortcut('EDT2018.lnk')
However, as mentioned in a previous post, uninstallation doesn't work via the wapt package, nor from pyscripter run as administrator. On the other hand, the package's `run` command executes and correctly uninstalls the software when run manually from a command prompt (command prompt) run as administrator.
Although I don't really need to uninstall the edt/pronote packages once they're installed, and during a major update (v2017 -> v2018), the new version uninstalls the previous one, the fact that the uninstallation has never worked has never bothered me. But if anyone has an explanation or suggestion, I'd obviously be interested!
Re: [SOLVED] Creating Edt/Pronote package
Published: September 10, 2018 - 4:50 PM
by alf
Hello again,
thank you for your reply.
Indeed, based on our discussions, I was pretty sure a solution hadn't been found.
Thank you for the updated code.
I'm not familiar with Pronote, but the fact that the new installation uninstalls the old one is a good thing.
I'll try to look into it a bit more; otherwise, I'll rely on the new school year.
Thanks again.
Have a good rest of the day.
Anne-Laure