Hello,
after successfully installing packages on a client, I'd like to specify their installation paths.
Currently, they all install directly to the C: drive, but I'd like them to install to the D: drive. After
consulting numerous articles to understand how to do this, I haven't found any solutions other than
the copytree2() function, which doesn't seem appropriate.
I only know that the modification must be done in setup.py.
Thanks in advance!
[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 :
Good morning
I haven't tried it, but it should normally be okay
When creating a custom Waptagent: First, modify the file:
and modify this line:
https://github.com/tranquilit/WAPT/blob ... up.iss#L31
To replace it with whatever you want.
Then restart the generation of a Waptagent
Simon
I haven't tried it, but it should normally be okay
When creating a custom Waptagent: First, modify the file:
Code: Select all
C:\wapt\waptsetup\waptsetup.isshttps://github.com/tranquilit/WAPT/blob ... up.iss#L31
Code: Select all
DefaultDirName="C:\wapt"Then restart the generation of a Waptagent
Simon
Thank you for your reply, Simon.
This command installs the agent in D:, but I would like to install the software sent from the WAPT console in D:
and not the agent. For example, when I install Firefox, the files are stored in C:. I would like to change this
behavior and redirect all installations to the D: drive.
Thank you in advance!
This command installs the agent in D:, but I would like to install the software sent from the WAPT console in D:
and not the agent. For example, when I install Firefox, the files are stored in C:. I would like to change this
behavior and redirect all installations to the D: drive.
Thank you in advance!
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Ah yes, okay.
Well, you have two solutions. You need to modify all your WAPT packages to add options:
For example, for Firefox with: `InstallDirectoryPath=d:\firefox\`
https://wiki.mozilla.org/Installer:Comm ... _Arguments
The second solution is to move Program Files:
http://www.clubic.com/forum/microsoft-w ... page1.html
But this only solves the problem for software that installs in Program Files.
Well, you have two solutions. You need to modify all your WAPT packages to add options:
For example, for Firefox with: `InstallDirectoryPath=d:\firefox\`
https://wiki.mozilla.org/Installer:Comm ... _Arguments
The second solution is to move Program Files:
http://www.clubic.com/forum/microsoft-w ... page1.html
But this only solves the problem for software that installs in Program Files.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
You need to modify your WAPT package to change this.
You can use this link for help:
https://wiki.mozilla.org/Installer:Comm ... _Arguments
You can use this link for help:
https://wiki.mozilla.org/Installer:Comm ... _Arguments
I don't understand; the installation path should be chosen during the "wapt-get make-template *****.exe" command
from an .ini file in which the installation path is specified?
THANKS.
EDIT: I described the case for Firefox, but I have dozens of packages to install on D: (7zip, flash, etc.).
I successfully installed Firefox on D: using the command:
Now, I would like to create a WAPT package for Firefox in which I can specify this .ini file or do anything else
manipulations that would allow me to install the software in D:.
THANKS.
from an .ini file in which the installation path is specified?
THANKS.
EDIT: I described the case for Firefox, but I have dozens of packages to install on D: (7zip, flash, etc.).
I successfully installed Firefox on D: using the command:
Code: Select all
firefox.exe /INI=c:\wapt\firefox.inimanipulations that would allow me to install the software in D:.
THANKS.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Wapt is a command executor, so it cannot control the installation folder location of software.
The technique mentioned is only valid for Firefox. And this type of technique isn't available for all software.
Furthermore, it will require you to modify all the packages in your private repository.
This method will therefore be simpler for you:
http://www.clubic.com/forum/microsoft-w ... page1.html
But I don't necessarily recommend this method either.
Why do you want to move the software to D:\?
Simon
The technique mentioned is only valid for Firefox. And this type of technique isn't available for all software.
Furthermore, it will require you to modify all the packages in your private repository.
This method will therefore be simpler for you:
http://www.clubic.com/forum/microsoft-w ... page1.html
But I don't necessarily recommend this method either.
Why do you want to move the software to D:\?
Simon
I install my software on D: to keep the system files separate on C: from the software on D:.
I finally found the solution: simply modify the installation command in the setup.py file and specify
an .ini file with the argument /INI=*****.ini:
run(r'firefox.exe /INI=c:\..\..\setup.ini')
Thank you for your help.
I finally found the solution: simply modify the installation command in the setup.py file and specify
an .ini file with the argument /INI=*****.ini:
run(r'firefox.exe /INI=c:\..\..\setup.ini')
Thank you for your help.
Hello,
I regret to inform you that the method for installing on D: using an .ini file does not work.
Because the installation is performed on a remote machine, the client has no access to the .ini file hosted on the server
and is therefore unable to follow the instructions it contains.
I am therefore looking for a new method to install my software available on WAPT on the
D: drive of client machines.
Thank you.
I regret to inform you that the method for installing on D: using an .ini file does not work.
Because the installation is performed on a remote machine, the client has no access to the .ini file hosted on the server
and is therefore unable to follow the instructions it contains.
I am therefore looking for a new method to install my software available on WAPT on the
D: drive of client machines.
Thank you.
