Escape character in file paths
Published: February 14, 2019 - 1:27 AM
Wapt Enterprise 1.6.2.7 in a Win 7 VM on a Windows 2008/R2
PyScripter 3.4.2.7 in a Win 7 VM on a Windows 10
Hello,
I am starting to develop installation packages from exe and I have a problem with file paths.
Here are some examples using Pronote 2018 (thanks to stephane2b and olaplanche):
`run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
or `
run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1C:\waptdev\lmr-pronote-wapt\setup2018.iss')`
or `
install_exe_if_needed("Install_PRNclient_FR_2018.0.2.5_win64.exe",silentflags= ' -s -f1%s\setup2018.iss' % basedir)`
or
`flagpronote = '-s -f1%s\setup2018.iss' % basedir`
install_exe_if_needed("Install_PRNclient_FR_2018.0.2.5_win64.exe",silentflags=flagpronote)
etc., etc., ...
all these examples result in the following error when executed in PyScripter:
FATAL ERROR: CalledProcessErrorOutput: Command 'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1C:\\waptdev\\lmr-pronote-wapt\\setup2018.iss' returned non-zero exit status -2147213312.
I don't understand; the syntax matches what's found in the documentation, in the Pronote thread, in the source code of various packages downloaded from the Tranquil IT repository, etc.
Help!
Thanks
PyScripter 3.4.2.7 in a Win 7 VM on a Windows 10
Hello,
I am starting to develop installation packages from exe and I have a problem with file paths.
Here are some examples using Pronote 2018 (thanks to stephane2b and olaplanche):
`run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
or `
run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1C:\waptdev\lmr-pronote-wapt\setup2018.iss')`
or `
install_exe_if_needed("Install_PRNclient_FR_2018.0.2.5_win64.exe",silentflags= ' -s -f1%s\setup2018.iss' % basedir)`
or
`flagpronote = '-s -f1%s\setup2018.iss' % basedir`
install_exe_if_needed("Install_PRNclient_FR_2018.0.2.5_win64.exe",silentflags=flagpronote)
etc., etc., ...
all these examples result in the following error when executed in PyScripter:
FATAL ERROR: CalledProcessErrorOutput: Command 'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1C:\\waptdev\\lmr-pronote-wapt\\setup2018.iss' returned non-zero exit status -2147213312.
I don't understand; the syntax matches what's found in the documentation, in the Pronote thread, in the source code of various packages downloaded from the Tranquil IT repository, etc.
Help!
Thanks