Page 1 of 2
creating packages with exe
Published: January 13, 2016 - 9:42 PM
by bidou
Hello,
I confess I don't know how to summarize my problem in a title.
I have programs that launch as soon as their .exe files are used. They don't install, so I don't think they're in the registry.
One of the programs uses a library, but it doesn't install in the registry either.
Here are the links to the programs:
http://scientillula.net/logiciels/acqui ... isonic.zip
http://regressi.fr/WordPress/wp-zip/Regressi.zip
I would like to create packages to allow deployment on computers in my high school.
Sincerely,
Bidou
Re: Creating a package with an executable
Published: July 1, 2016 - 9:34 PM
by francketaude
Good evening,
This reply might be a little late, but having encountered the same problem (and with the same software), it might still be useful:
http://amilpmarie.fr/WP/index.php/2016/ ... quet-wapt/
I tested it with Regressi (v 3.82) and the avimeca executable (v2.7).
Thanks to the developer,
Franck.
Re: Creating a package with an executable
Published: July 4, 2016 - 4:26 PM
by gaelds
I also used Olivier's app to create the Avimeca package; here is the code for my setup.py:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []
def install():
print('installing dst-avimeca')
copytree2(r'.\Avimeca',r'C:\SCIENCE\Avimeca')
create_desktop_shortcut(r'Avimeca.lnk',target=r'C:\SCIENCE\Avimeca\avimeca3.exe', wDir=r'C:\SCIENCE\Avimeca\\',icon=r'C:\SCIENCE\Avimeca\avimeca3.exe')
def uninstall():
print('uninstalling dst-avimeca')
remove_tree(r'C:\SCIENCE\Avimeca')
remove_desktop_shortcut(r'Avimeca')
Re: Creating a package with an executable
Published: July 4, 2016 - 7:20 PM
by sfonteneau
I also work in a high school, but I don't use Wapt for everything.
For those kinds of situations, I created a network drive called "Programs" where I store all the software that doesn't require installation.
It's much more convenient!
Re: Creating a package with an executable
Published: July 5, 2016 - 8:22 AM
by francketaude
Hello Gaelds,
You seem to have installed Avimeca 3:
[quote="gaelds"]I also used Olivier's app to create the Avimeca package; here is the code for my setup.py:
But where did you manage to download it? All the links seem to be broken...
Another question:
Can you explain the "role" of this part of the code?
With all the thanks of a novice,
Franck
Re: Creating a package with an executable
Published: November 14, 2016 - 8:58 AM
by gaelds
Sorry, I just saw your message. The line "wDir=r'C:\SCIENCE\Avimeca\\'" allows you to fill in the "Start in" field that you see in the properties of Windows shortcuts.
Re: Creating a package with an executable
Published: Dec 11, 2016 - 4:46 PM
by Matthew
Hello,
this might be a bit off-topic, but Aviméca is no longer maintained, and there's a much more efficient alternative that doesn't require any additional codecs: pymecavideo, available at
http://outilsphysiques.tuxfamily.org/wi ... ymecavideo. It's compatible with Windows, as well as Linux Debian and potentially all other platforms that can work with Python. The automatic package works very well.
Regards,
Matthieu
Re: Creating a package with an executable
Published: Dec 12, 2016 - 2:41 PM
by gaelds
Thanks for the info, Mathieu! I tried creating a package for pymecavideo but I get the following error:
installing Pymecavideo
EWaptSetupException: Fatal error: Setup pymecavideo-6.3.0.exe has been and uninstall key pymecavideo 6.3_is1 found but version is not good
Do you see what it could be?
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import shutil
import time
uninstallkey = ["pymecavideo 6.3_is1"]
def install():
versionpaquet = control['version'].split('-',1)[0]
print('installing Pymecavideo')
install_exe_if_needed('pymecavideo-%s.exe' % versionpaquet ,'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-','pymecavideo 6.3_is1',versionpaquet)
print ("Pause de 15sec.")
time.sleep(15)
print(u'Raccourci sur le bureau public')
if not isdir(makepath(common_desktop(),'Logiciels','Physique-Chimie')):
mkdirs(makepath(common_desktop(),'Logiciels','Physique-Chimie'))
print(u'Déplacement du raccourci Pymecavideo 6.3')
shutil.move(makepath(common_desktop(),'pymecavideo 6.3.lnk'),makepath(common_desktop(),'Logiciels','Physique-Chimie','Pymecavideo 6.3.lnk'))
def uninstall():
print ("Désinstallation de Pymecavideo 6.3")
if isfile(makepath(common_desktop(),'Logiciels','Physique-Chimie','Pymecavideo 6.3.lnk')):
remove_file(makepath(common_desktop(),'Logiciels','Physique-Chimie','Pymecavideo 6.3.lnk'))
if isfile(makepath(common_desktop(),'Pymecavideo 6.3.lnk')):
remove_file(makepath(common_desktop(),'Pymecavideo 6.3.lnk'))
Re: Creating a package with an executable
Published: Dec 12, 2016 - 3:09 PM
by Matthew
Good morning,
I admit I didn't make it that complex and my uninstallkey is empty.
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing esaat-pymecavideo6.3')
run(r'"pymecavideo_6.3_setup.exe" /VERYSILENT')
I'm not yet very familiar with the uninstallation procedures, so I'll avoid saying anything stupid.
Good luck with the rest of your project; Pymecavideo can handle videos with high frame rates. I tested it with my laptop, which films at 120 fps, and it's very useful for fast-moving subjects.
Matthew
Re: Creating a package with an executable
Published: Dec 12, 2016 - 5:00 PM
by gaelds
I didn't invent anything, I took the code from a package by Simon Fonteneau, but I must have made a mistake somewhere.