Page 5 of 8
Re: [SOLVED] Creating Edt/Pronote package
Published: September 3, 2019 - 5:13 PM
by Mich
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
Re: [SOLVED] Creating Edt/Pronote package
Published: September 20, 2019 - 4:35 PM
by olaplanche
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!
Re: [SOLVED] Creating Edt/Pronote package
Published: July 8, 2020 - 4:46 PM
by olaplanche
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

Re: [SOLVED] Creating Edt/Pronote package
Published: Dec 1, 2020 - 10:09 AM
by fredB
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.
Re: [SOLVED] Creating Edt/Pronote package
Published: Dec 1, 2020 - 1:50 PM
by olaplanche
Hello,
the code has been updated in the first post on page 1.

Re: [SOLVED] Creating Edt/Pronote package
Published: Dec 1, 2020 - 3:54 PM
by fredB
Thanks a lot !
Re: [SOLVED] Creating Edt/Pronote package
Published: January 4, 2021 - 12:24 PM
by joel.montelimard
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.
Re: [SOLVED] Creating Edt/Pronote package
Published: January 26, 2021 - 7:49 PM
by lemarec
Good evening.
Seems to work for version 0.2.5.
Have a good evening.
Re: [SOLVED] Creating Edt/Pronote package
Published: June 15, 2021 - 08:33
by verdierr
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.
Re: [SOLVED] Creating Edt/Pronote package
Published: June 15, 2021 - 08:48
by olaplanche
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.