Page 2 of 2

Re: Package Deployment Error

Published: March 27, 2020 - 09:22
by Scud
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.

Re: Package Deployment Error

Published: March 27, 2020 - 3:27 PM
by sfonteneau
with frej-oWncloud instead of frej-oncloud?

Re: Package Deployment Error

Published: March 30, 2020 - 09:28
by Scud
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.

Re: Package Deployment Error

Published: March 30, 2020 - 12:54 PM
by sfonteneau
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()

Re: Package Deployment Error

Published: March 30, 2020 - 2:34 PM
by Scud
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?

Re: Package Deployment Error

Published: April 7, 2020 - 11:19 AM
by Scud
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!