[Wapt - installation path]

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 13, 2016 - 4:17 PM

But he needs you to include your ini file in the package.
shirocen
Messages: 11
Registration: Apr 25, 2016 - 4:01 p.m.

May 17, 2016 - 08:29

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?
Jacki
Messages: 8
Registration: May 17, 2016 - 10:05

May 17, 2016 - 10:18

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)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 17, 2016 - 11:18

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)

Last edited by sfonteneau on May 17, 2016 - 23:23, edited 1 time.
Jacki
Messages: 8
Registration: May 17, 2016 - 10:05

May 17, 2016 - 3:22 PM

I just re-packaged it with the version that doesn't copy, and it works.

Thank you.
SergieTrunk
Messages: 9
Registration: Apr 26, 2016 - 09:51

May 19, 2016 - 5:45 PM

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 ....

Code: Select all

\waptagent(1).exe /VERYSILENT

it's back in C:\
Any suggestions?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 19, 2016 - 8:52 PM

I just tested it by changing the directory to c:\wapttest,

and it works for me even with /VERYSILENT
SergieTrunk
Messages: 9
Registration: Apr 26, 2016 - 09:51

May 20, 2016 - 09:55

Hello,
yes, I just tried it on another machine with the same executable and I no longer have the problem.
Thank you.
shirocen
Messages: 11
Registration: Apr 25, 2016 - 4:01 p.m.

May 20, 2016 - 4:05 PM

Thank you all for your help, we can now fully enjoy the tool :)
shirocen
Messages: 11
Registration: Apr 25, 2016 - 4:01 p.m.

May 20, 2016 - 5:20 PM

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...
Locked