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
Escape character in file paths
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
You must not reference files located in waptdev (you must specify the relative path).
If there is a backslash in the string you are writing, then you must add an 'r' at the beginning of the string.
http://sametmax.com/comment-marchent-le ... en-python/
If there is a backslash in the string you are writing, then you must add an 'r' at the beginning of the string.
http://sametmax.com/comment-marchent-le ... en-python/
In examples 1, 3, and 4, I use `basedir` with a relative path.
In example 2, I "cracked" and hardcoded the path to the PyScripter development environment to note any potential difference during testing.
I tried all the given examples with and without the `r` at the beginning, but nothing works.
`run('Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
and `run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
both generate the error `-f1C:\\waptdev\\lmr-pronote-wapt\\setup2018.iss'` during the installation test in the PyScripter environment.
Thank you.
In example 2, I "cracked" and hardcoded the path to the PyScripter development environment to note any potential difference during testing.
I tried all the given examples with and without the `r` at the beginning, but nothing works.
`run('Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
and `run(r'Install_PRNclient_FR_2018.0.2.5_win64.exe -s -f1%s\setup2018.iss' % basedir)`
both generate the error `-f1C:\\waptdev\\lmr-pronote-wapt\\setup2018.iss'` during the installation test in the PyScripter environment.
Thank you.
