Good morning
I created the new package with version 2022, taking care to modify the values of the uninstallkey in the .xcfg files and the directories, which are being renamed
The problem remains that the uninstallation command doesn't work. I don't know if the new version installation creates a new directory or overwrites the old one.
And another recurring problem I don't understand. When I run the installation from PyScripter to test, it works perfectly on the PC hosting the Wapt console. But if I deploy it to other PCs, I get this error:
File "C:\Program Files (x86)\wapt\waptutils.py", line 2126, in run
raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command '"Install_PRNclient_FR_2022.0.2.1_win64.exe" -s -f1C:\\WINDOWS\\TEMP\\wapt4g0p39cy\\installPRONOTE.iss' returned non-zero exit status 1.
Output: '"Install_PRNclient_FR_2022.0.2.1_win64.exe"' is not recognized as an internal command
or external, an executable program or a batch file.
Why is it pointing to the wrong folder: -f1C:\\WINDOWS\\TEMP\\wapt4g0p39cy\\installPRONOTE.iss? Ideally, the installPRONOTE.iss file should be retrieved from the package folder in waptdev, since I placed it there. How do I specify this folder? What do the %s variable mean? And what about %basedir?
Here is the package:
Code: Select all
uninstallkey = ['{D1124ED8-514E-40BF-9021-D3B3CA941A53}']
def install():
run(r'"Install_PRNclient_FR_2022.0.2.1_win64.exe" -s -f1%s\installPRONOTE.iss' % basedir)
import time
time.sleep(3)
import os
os.system('taskkill /f /im "Client PRONOTE.exe"')
shutil.copyfile('ConfigClientsHttp.xcfg','C:\ProgramData\IndexEducation\Commun\ConfigClientsHttp.xcfg')
shutil.copyfile('Client PRONOTE.xcfg','C:\ProgramData\IndexEducation\PRONOTE\CLIENT\VERSION 2022-0\FR\Installations\{EE26865C-1E0D-D13E-3DC3-DC89333D079B}\Client PRONOTE.xcfg')
def uninstall():
run(r'"C:\Program Files (x86)\InstallShield Installation Information\{D1124ED8-514E-40BF-9021-D3B3CA941A53}\setup.exe" -s -uninst -f1%s\uninstPRONOTE.iss' % basedir)
shutil.rmtree('C:\ProgramData\IndexEducation','ignore_errors=True')