Page 1 of 2

Error installing package

Published: July 16, 2018 - 3:06 PM
by Smart
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?

Re: Error installing package

Published: July 16, 2018 - 4:17 PM
by louisinger
Do you have any logs to show us?

Re: Error installing package

Published: July 17, 2018 - 09:11
by Smart
I'm getting the following error message. Otherwise, I don't know where to find the logs...

Re: Error installing package

Published: July 17, 2018 - 09:51
by louisinger
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 :

Code: Select all

install_exe_if_needed(exe = pathToSetup, timeout = 3000)

Re: Error installing package

Published: July 17, 2018 - 11:44 AM
by Smart
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)

Re: Error installing package

Published: July 17, 2018 - 11:51
by louisinger
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.

Re: Error installing package

Published: July 17, 2018 - 1:36 PM
by Smart
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".

Re: Error installing package

Published: July 17, 2018 - 2:40 PM
by sfonteneau
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 ;)

Re: Error installing package

Published: July 17, 2018 - 3:20 PM
by Smart
What do you mean by running the line via CMD? Which line? Do I need to launch the program?

Re: Error installing package

Published: July 17, 2018 - 3:46 PM
by louisinger
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:

Code: Select all

delta_copy_setup.exe /VERYSILENT
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").