Hello,
I'm having trouble creating packages... I download my software as an .exe file. I create the package using the console's help (Tools > Package Creation Wizard). I enter the uninstallation key. This creates a directory in C:\WAPTdev.
I launch CMD and enter the following command: wapt-get build-upload c:\waptdev\wapt-deltacopy-wapt. This creates a .wapt file. I then go to Private Repository > Import from File. The package appears. I assign it to the computer.
When I try to install it, it fails and gives an error. Why?
Error installing package
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
-
louisinger
- Messages: 27
- Registration: June 26, 2018 - 09:40
This is a timeout error. By default, if the installation lasts longer than 300 seconds, it stops. You can change this with the setting timeout in the installation functions of setuphelpers.
Example :
Example :
Code: Select all
install_exe_if_needed(exe = pathToSetup, timeout = 3000)Thanks, that solves part of the problem. However, my installation is now stuck in a loop... I have the following code in setup.py:
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing wapt-deltacopy')
install_exe_if_needed("delta_copy_setup.exe",'/VERYSILENT',key='{***********}',min_version='1.40.0000', timeout = 3000)
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing wapt-deltacopy')
install_exe_if_needed("delta_copy_setup.exe",'/VERYSILENT',key='{***********}',min_version='1.40.0000', timeout = 3000)
-
louisinger
- Messages: 27
- Registration: June 26, 2018 - 09:40
I think the installation is stuck; it will keep displaying the same error but for a longer period.
Have you tried running the command line in a command prompt (CMD)? This will help determine if the problem is with Wapt or not.
Have you tried running the command line in a command prompt (CMD)? This will help determine if the problem is with Wapt or not.
My code:
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ['{D6E5F58F-C879-4EC1-90F7-BA31BABF10C9}']
def install():
print('installing wapt-deltacopy')
install_exe_if_needed("delta_copy_setup.exe",'/VERYSILENT',key='{D6E5F58F-C879-4EC1-90F7-BA31BABF10C9}',min_version='1.40.0000', timeout = 3000)
I ran it in AmiensPython (and PyScripter) and it doesn't recognize "from setuphelpers import *". Basically, the installation doesn't start.
On the client, it also displays "Package Error".
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ['{D6E5F58F-C879-4EC1-90F7-BA31BABF10C9}']
def install():
print('installing wapt-deltacopy')
install_exe_if_needed("delta_copy_setup.exe",'/VERYSILENT',key='{D6E5F58F-C879-4EC1-90F7-BA31BABF10C9}',min_version='1.40.0000', timeout = 3000)
I ran it in AmiensPython (and PyScripter) and it doesn't recognize "from setuphelpers import *". Basically, the installation doesn't start.
On the client, it also displays "Package Error".
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
louisinger wrote: ↑Jul 17, 2018 - 11:51 AM I think the installation is stuck; it will give the same error but for longer.
Have you tried running the command line in a command prompt? To see if the problem is with wapt or not.
+ 1
-
louisinger
- Messages: 27
- Registration: June 26, 2018 - 09:40
In fact, all the `install_exe_if_needed` function does is launch an installation command (among other things, of course). In your case, Wapt launches the following command:
To launch it manually (without WAPT), simply copy and paste it into a command prompt. We'll then see if that changes anything. If not, the problem is likely with your installer or your settings ("/VERYSILENT").
Code: Select all
delta_copy_setup.exe /VERYSILENT