[SOLVED] Edt Package v2022 build 0.3.0 / Pronote v2022 build 0.3.0

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
e-annaThouet
Messages: 2
Registration: Sep 4, 2018 - 1:47 p.m.

September 4, 2018 - 1:57 PM

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.
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 4, 2018 - 3:08 PM

Hello,

Pronote package sent!

Best regards,
Last edited by olaplanche on 07 Sep 2018 - 08:23, edited 1 time.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
e-annaThouet
Messages: 2
Registration: Sep 4, 2018 - 1:47 p.m.

September 4, 2018 - 4:45 PM

Thank you so much for the speed; the package will save me a tremendous amount of time.

Sincerely
jejew2006
Messages: 1
Registration: Sep 06, 2018 - 9:11 p.m.

September 6, 2018 - 9:14 PM

Hello Olaplanche,

I would also be interested in the EDT package.

Thank you in advance.
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 7, 2018 - 8:22 AM

Hello,

EDT package sent!

Best regards,
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
alf
Messages: 17
Registration: May 17, 2018 - 2:06 p.m.

September 7, 2018 - 2:54 PM

Hello,

I'm going to try something a little different.

Could I also have the Pronote package?

Thank you in advance.

Anne-Laure
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 7, 2018 - 2:58 PM

Hello,

It's done!

Best regards,
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
alf
Messages: 17
Registration: May 17, 2018 - 2:06 p.m.

September 10, 2018 - 2:42 PM

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
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 10, 2018 - 4:00 PM

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!
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
alf
Messages: 17
Registration: May 17, 2018 - 2:06 p.m.

September 10, 2018 - 4:50 PM

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
Locked