[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
Mich
Messages: 8
Registration: Sep 3, 2019 - 5:09 p.m.

September 3, 2019 - 5:13 PM

Hello,

Thank you so much for this package, it will be very helpful.
However, I have a question: do you update the package with each new sub-version (for example, your package is at version 0.2.1 and version 0.2.2 is currently available), or does the Pronote client update automatically and you only deploy one version per school year?

Thank you in advance for your reply.

Sincerely
- Installed WAPT version: 1.8.1.6756 Community Edition
- Server OS: Linux / Debian Stretch
- Administration/package creation machine OS: Windows 10
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 20, 2019 - 4:35 PM

Hi,

sorry for the late reply, back-to-school rush, didn't get a notification for your post?! Anyway...

Personally, I only deploy the new version via Wapt at the beginning of the school year; after that, the update happens automatically on the user's computer without requiring administrator rights!

Good luck!
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

July 8, 2020 - 4:46 PM

Hello! Here's the code for the 2020 versions ;)
:!: Remember to replace SERVERNAME and SERVERPORT with your values :!:
This time I chose not to uninstall the previous version from the 2020 version setup, since uninstallation works correctly with the 2019 packages. Therefore, both versions can be installed side-by-side!

EDT 2020 v0.1.1 x64:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('installing wapt-edt2020_x64')
    import tempfile
    import codecs
    pathinstallfile = makepath(tempfile.gettempdir(),'Setup.iss')
    data = ur"""[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-DlgOrder]
Dlg0={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdLicense2Rtf-0
Count=6
Dlg1={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdAskDestPath-0
Dlg2={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-0
Dlg3={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-1
Dlg4={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-2
Dlg5={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdFinish-0
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdLicense2Rtf-0]
Result=1
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdAskDestPath-0]
szDir=C:\Program Files\Index Education\EDT 2020\Réseau\Client
Result=1
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-0]
Result=1
Sel-0=0
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-1]
Result=1
Sel-0=1
Sel-1=0
Sel-2=0
Sel-3=0
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-AskOptions-2]
Result=1
Sel-0=0
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
"""
    fichier = codecs.open(pathinstallfile, "w", encoding='mbcs')
    fichier.write(data)
    fichier.close()
    install_exe_if_needed("Install_EDTclient_FR_2020.0.1.1_win64.exe",silentflags='-s -f1%s' % pathinstallfile,key='{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}',min_version='0.1.1',killbefore='Client EDT.exe')
    uninstallkey.remove('{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}')
    create_desktop_shortcut(r'EDT2020',target=u'C:\Program Files\Index Education\EDT 2020\Réseau\Client\Client EDT.exe',arguments=r'-Adresse "SERVERNAME" -PortTcp "SERVERPORT"')

def uninstall():
    print('uninstalling wapt-edt2020_x64')
    import tempfile
    pathuninstallfile = makepath(tempfile.gettempdir(),'Uninstall.iss')
    data = ur"""[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-DlgOrder]
Dlg0={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-MessageBox-0
Count=2
Dlg1={AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdFinishReboot-0
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-MessageBox-0]
Result=6
[{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}-SdFinishReboot-0]
Result=1
BootOption=0
"""
    fichier = open(pathuninstallfile, "w")
    fichier.write(data)
    fichier.close()
    run(r'"%s\InstallShield Installation Information\{AA9AC92C-2AEE-4FD7-BED8-5CFF8D26C38E}\setup.exe" -s -uninst -f1%s' % (programfiles32,pathuninstallfile))
    remove_file(pathuninstallfile)
    remove_desktop_shortcut('EDT2020.lnk')
    run('"MsiExec.exe" /X{775E087D-A428-428C-A5FD-000010003000} /qn')
Pronote 2020 v0.1.1 x64:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('installing wapt-pronote2020_x64')
    import tempfile
    import codecs
    pathinstallfile = makepath(tempfile.gettempdir(),'Setup.iss')
    data = ur"""[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-DlgOrder]
Dlg0={52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdLicense2Rtf-0
Count=6
Dlg1={52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdAskDestPath-0
Dlg2={52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-0
Dlg3={52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-1
Dlg4={52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-2
Dlg5={52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdFinish-0
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdLicense2Rtf-0]
Result=1
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdAskDestPath-0]
szDir=C:\Program Files\Index Education\Pronote 2020\Réseau\Client
Result=1
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-0]
Result=1
Sel-0=0
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-1]
Result=1
Sel-0=1
Sel-1=0
Sel-2=0
Sel-3=0
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-AskOptions-2]
Result=1
Sel-0=0
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0

"""
    fichier = codecs.open(pathinstallfile, "w", encoding='mbcs')
    fichier.write(data)
    fichier.close()
    install_exe_if_needed("Install_PRNclient_FR_2020.0.1.1_win64.exe",silentflags='-s -f1%s' % pathinstallfile,key='{52F13A9C-7815-4F65-BA5A-CC7E09191930}',min_version='0.1.1',killbefore='Client PRONOTE.exe')
    uninstallkey.remove('{52F13A9C-7815-4F65-BA5A-CC7E09191930}')
    create_desktop_shortcut(r'Pronote2020',target=u'C:\Program Files\Index Education\Pronote 2020\Réseau\Client\Client PRONOTE.exe',arguments=r'-Adresse "SERVERNAME" -PortTcp "SERVERPORT"')

def uninstall():
    print('uninstalling wapt-pronote2020_x64')
    import tempfile
    pathuninstallfile = makepath(tempfile.gettempdir(),'Uninstall.iss')
    data = ur"""[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-DlgOrder]
Dlg0={52F13A9C-7815-4F65-BA5A-CC7E09191930}-MessageBox-0
Count=2
Dlg1={52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdFinishReboot-0
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-MessageBox-0]
Result=6
[{52F13A9C-7815-4F65-BA5A-CC7E09191930}-SdFinishReboot-0]
Result=1
BootOption=0
"""
    fichier = open(pathuninstallfile, "w")
    fichier.write(data)
    fichier.close()
    run(r'"%s\InstallShield Installation Information\{52F13A9C-7815-4F65-BA5A-CC7E09191930}\setup.exe" -s -uninst -f1%s' % (programfiles32,pathuninstallfile))
    remove_file(pathuninstallfile)
    remove_desktop_shortcut('Pronote2020.lnk')
    run('"MsiExec.exe" /X{775E087D-A428-428C-A5FD-000010003000} /qn')
Have a good holiday :mrgreen:
Last edited by olaplanche on Dec 1, 2020 - 13:43, edited 1 time.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
fredB
Messages: 2
Registration: Nov. 30, 2020 - 12:16 p.m.

December 1, 2020 - 10:09 AM

Hello,
thank you for sharing!
However, I can't use it because the Pronote client version available on the website is 0.2.4...

Could someone send me the complete package so I can modify it, or does anyone have the code adapted for the 2020 Pronote client version 0.2.4?
Thank you and have a good day.
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

December 1, 2020 - 1:50 PM

Hello,

the code has been updated in the first post on page 1. ;)
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
fredB
Messages: 2
Registration: Nov. 30, 2020 - 12:16 p.m.

December 1, 2020 - 3:54 PM

Thanks a lot !
joel.montelimard
Messages: 8
Registration: August 29, 2017 - 10:48

January 4, 2021 - 12:24

Hello Olaplanche,

I'm not very comfortable creating packages... I've modified some before, but never created any.
I'm also interested in your Pronote package (version 0.2.5 if possible, as that's the current version) with the server configuration 0430113P.index-education.net.

And, to exaggerate a bit (!), where could I find a simple tutorial for creating this package (or any other package)? I have the code from page 1 and Pronote downloaded, but I don't know what to do with it.

Thanks in advance.
lemarec
Messages: 4
Registration: January 25, 2021 - 6:53 PM

January 26, 2021 - 7:49 PM

Good evening.

Seems to work for version 0.2.5.

Have a good evening.
greening
Messages: 13
Registration: December 20, 2018 - 2:45 PM

June 15, 2021 - 08:33

Hello,

First, thank you for your work and for sharing this package.

I created a package with the preview version of EDT 2021, but I get an error message when I try to install it on machines with the latest 2020 version. I have no installation problems on machines without EDT pre-installed.

The error message is: returned non-zero exit status -2147213312.

Have you tested this preview version?
Do you have any idea what might be causing this error and how to resolve it?

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

June 15, 2021 - 08:48

Hello,

I haven't tested it with the 2021 preview yet. Normally, it's possible to install two major versions side by side...
However, the response file is different depending on whether it's generated on a machine with a previous version installed or not; the problem might stem from that.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Locked