[RESOLVED] Package Deployment Error

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
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

March 27, 2020 - 09:22

I ran your command line on my virtual machine which is supposed to have owncloud installed by deployment.
Result: package not installed (see attached) even though the program itself is properly installed.

In your code, from the wapt console, I used print() to retrieve the variables: get_current_user(), url_owncloud, and application_data(). The correct values ​​are returned.

The machine I'm deploying to doesn't have administrator privileges. I don't know if that matters during the deployment process?

It seems the folder and file creation isn't working, which is preventing me from writing the parameters. However, I'm not getting any error messages. I'll try your code and create a folder on the desktop, for example, to see if that works, and I'll let you know.


I just added some code based on yours, and it doesn't work either:

Code: Select all

testdossier = makepath(user_desktop(),'TEST')
mkdirs(testdossier)

If you have any other ideas, I'm all ears.

Thank you again.
Attachments
CMD.JPG
CMD.JPG (45.82 KB) Viewed 5507 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 27, 2020 - 3:27 PM

with frej-oWncloud instead of frej-oncloud?
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

March 30, 2020 - 09:28

Oops!
Here's the actual screenshot. Sorry,

any idea what the error is?
For me, there seems to be a problem with the `makepath` function, but from the server, when I print the `makepath` variables, I get the correct result.

But I still have a question: Apparently, when I deploy OwnCloud, neither the OwnCloud folder nor the .cfg file is created until I click the desktop icon. The WAPT script must create the folders and the .cfg file so that everything exists on the first run. Is that what the script does?

Thanks.
Attachments
Capture.JPG
Capture.JPG (94.76 KB) Viewed 5490 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 30, 2020 - 12:54

The %HOMEPATH% variable should not work on your PC

It would be necessary to replace

Code: Select all

homeowncloud = makepath(os.environ.get('HOMEPATH'),'ownCloud')
by

Code: Select all

homeowncloud = r'C:\Users\%s\ownCloud' % get_current_user()
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

March 30, 2020 - 2:34 PM

It seems to work, at least it works on my test machine :D
. THANK YOU THANK YOU THANK YOU.

I'm doing more tests on different PCs before closing the post.

BUT, is it possible, using the same script, to delete the same folders during uninstallation?
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

April 7, 2020 - 11:19

I don't have a proper way to test it at the moment, so I'm closing this thread.
If I have any further issues, I'll reopen it.

Thanks again, it was quick and efficient.
Well done!
Locked