The search returned 5 results

by yandre
September 7, 2021 - 11:34
Forum: WAPT Packages
Subject: [SOLVED] Retrieve the current user
Answers: 1
Views : 2091

[SOLVED] Re: Recovering the current user

You should use session_setup() instead of putting your user modifications in install() :D
by yandre
September 3, 2021 - 4:39 PM
Forum: WAPT Packages
Subject: [SOLVED] Retrieve the current user
Answers: 1
Views : 2091

[SOLVED] Recover the current user

Hello,

how do I retrieve the current user?
I tested with: `login = get_current_user()`, which works fine when testing its package with PyScripter, but when using it, it returns the system value.

When I do: `login = get_last_logged_on_user().split('\\')[1]`, it...
by yandre
September 3, 2021 - 4:34 PM
Forum: WAPT Packages
Subject: [SOLVED] Editing a configuration file
Answers: 2
Views : 2101

Re: [SOLVED] Editing a config file

Thank you very much.
Very practical:

Code: Select all

inifile_writestring()
by yandre
August 30, 2021 - 4:02 PM
Forum: WAPT Packages
Subject: [SOLVED] Editing a configuration file
Answers: 2
Views : 2101

[SOLVED] Editing a configuration file

Good morning,
I'm trying to modify the Nextcloud configuration file C:\Users\%login%\AppData\Local\Nextcloud\nextcloud.cfg in order to add the following lines to the [Global] section:

Code: Select all

logDebug=false
logExpire=1
logDir=C:/tmp
Thank you in advance, best regards.
by yandre
February 22, 2021 - 3:37 PM
Forum: WAPT Packages
Subject: Nextcloud package
Answers: 3
Views : 3811

Re: Nextcloud package

Hello,

Following the update to 3.1.3, I just realized that the skipUpdateCheck function has changed.
Here is the key that works for me:

#registry_setstring(HKEY_LOCAL_MACHINE, "SOFTWARE\\Policies\\Nextcloud\\Nextcloud", 'skipUpdateCheck', 1, type=REG_DWORD)
registry_setstring(HKEY_LOCAL ...