Page 2 of 3
Re: [Wapt - installation path]
Published: May 13, 2016 - 4:17 PM
by sfonteneau
But he needs you to include your ini file in the package.
Re: [Wapt - installation path]
Published: May 17, 2016 - 08:29
by shirocen
I understand, but does the inclusion happen when creating the WAPT package via the command line, or in the folder
generated during package creation where the .ini file is directly copied and pasted?
Re: [Wapt - installation path]
Published: May 17, 2016 - 10:18
by Jacki
Hello everyone,
I'm new to this forum. I'm going to offer my help on this topic, which I also encountered when creating the Firefox package.
Our applications are also installed on D: to separate the system and the applications.
Regarding Firefox, as mentioned, you need to create an INI file containing the installation path.
The INI file must be included in the package, but it won't work as is, because Firefox won't be able to find it.
The problem with the Firefox INI file is that it must be in an absolute path, not a temporary one.
The workaround I found is to include in setup.py the copy of the ini file to a directory (c:\windows\temp) for example, and then run the firefox installation command with the path to the ini file. Below is the code:
filecopyto('firefox.ini','c:/windows/temp/')
run(r'"Firefox_Setup_45.0.1esr.exe" -ms /INI=C:/windows/temp/firefox.ini',timeout=300)
Re: [Wapt - installation path]
Published: May 17, 2016 - 11:18
by sfonteneau
Or without a copy:
Code: Select all
# -*- coding: UTF-8 -*-
import subprocess
from setuphelpers import *
import os
uninstallstring = []
def install():
currentpath = os.path.dirname(os.path.realpath(__file__))
run(r'"Firefox_Setup_45.0.1esr.exe" -ms /INI=%s\file.ini' % currentpath ,timeout=300)
Re: [Wapt - installation path]
Published: May 17, 2016 - 3:22 PM
by Jacki
I just re-packaged it with the version that doesn't copy, and it works.
Thank you.
Re: [Wapt - installation path]
Published: May 19, 2016 - 5:45 PM
by SergieTrunk
Good morning,
I'd like to return to the first answer,
I need to install my agent on C:\appli\wapt, and not C:\wapt by default.
So I modified the line
DefaultDirName="C:\appli\wapt"
I created a new agent, and indeed, when I install it manually, this directory is offered to me by default.
Now when I try using the command line with ....
it's back in C:\
Any suggestions?
Re: [Wapt - installation path]
Published: May 19, 2016 - 8:52 PM
by sfonteneau
I just tested it by changing the directory to c:\wapttest,
and it works for me even with /VERYSILENT
Re: [Wapt - installation path]
Published: May 20, 2016 - 09:55
by SergieTrunk
Hello,
yes, I just tried it on another machine with the same executable and I no longer have the problem.
Thank you.
Re: [Wapt - installation path]
Published: May 20, 2016 - 4:05 PM
by shirocen
Thank you all for your help, we can now fully enjoy the tool

Re: [Wapt - installation path]
Published: May 20, 2016 - 5:20 PM
by shirocen
Hmm, the commands still aren't working...
Even the "filetocopy()" call does nothing on the client; no files are copied.
And yet WAPT continues the installation as if nothing's wrong and installs the software on C:, especially since
I have no record of what's happening and no logs... nothing...