[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
shirocen
Messages: 11
Registration: Apr 25, 2016 - 4:01 p.m.

May 25, 2016 - 09:49

Up!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 25, 2016 - 10:39

shirocen wrote:Hmm, the commands still aren't working...

Even the call to "filetocopy()" does nothing on the client; no files are copied.

And yet WAPT continues the installation as if nothing were wrong and installs the software on C:, especially since

I have no record of what's happening and no logs... nothing...
Are you testing in PyScripter?

If so, does it work in PyScripter?
shirocen
Messages: 11
Registration: Apr 25, 2016 - 4:01 p.m.

May 30, 2016 - 09:25

I edit the setup.py files using Windows Notepad, if that's what you were asking.

It seems the machine doesn't even have Python installed, which would explain why setup.py isn't working. :roll:

After checking, it appears wapt has its own Python implementation, which isn't accessible from my system.

So I installed Python and tested setup.py:

`filecopyto('setup.ini','C:/windows/temp/')` -> works correctly; `

run(r'"Firefox Setup 36.0.4.exe" -ms /INI=c:/windows/temp/setup.ini',timeout=300)` -> launches a silent installation that

doesn't use D: as the installation path, as specified in my previously copied setup.ini.

I found the program in: C:\Program Files\Mozilla Firefox
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 30, 2016 - 1:58 PM

I recommend installing the "waptdev" group package on the machine where you develop your Wapt packages.
Waptdev is available in the tranquil.it repository.

You can then directly test the installation using the `run` command on the left in PyScripter.
Picture

Regarding your command with the .ini file, I recommend using the method described here:
viewtopic.php?f=9&t=466&start=10#p1193.

This avoids copying the .ini file using the current path when running the package.

- Simon
Locked