[Wapt - installation path]
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
But he needs you to include your ini file in the package.
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)
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)
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
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.
-
SergieTrunk
- Messages: 9
- Registration: Apr 26, 2016 - 09:51
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
Now when I try using the command line with ....
it's back in C:\
Any suggestions?
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
I created a new agent, and indeed, when I install it manually, this directory is offered to me by default.DefaultDirName="C:\appli\wapt"
Now when I try using the command line with ....
Code: Select all
\waptagent(1).exe /VERYSILENTit's back in C:\
Any suggestions?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
I just tested it by changing the directory to c:\wapttest,
and it works for me even with /VERYSILENT
and it works for me even with /VERYSILENT
-
SergieTrunk
- Messages: 9
- Registration: Apr 26, 2016 - 09:51
Hello,
yes, I just tried it on another machine with the same executable and I no longer have the problem.
Thank you.
yes, I just tried it on another machine with the same executable and I no longer have the problem.
Thank you.
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...
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...
