Page 1 of 1

[SOLVED] Delete an application in %HOMEDRIVE%%HOMEPATH%\AppData

Published: June 24, 2019 - 5:55 PM
by toma
Hello,

I would like to deploy an MSI. This software is already present on some machines and installed in the users' home directory:

%HOMEDRIVE%%HOMEPATH%\AppData\Local\application.

I would like to find a way to clean up the system on the machine before deploying the new version.

Thank you.

- Installed WAPT version (1.7)
- Server OS (Linux) and version (Debian Stretch)
- Administration/package creation machine OS (Windows 10)

Re: Deleting an application from %HOMEDRIVE%%HOMEPATH%\AppData

Published: June 24, 2019 - 6:39 PM
by dcardon
Hello Toma,
toma wrote: June 24, 2019 - 5:55 PM I want to deploy an MSI. This software is already present on some machines and installed in the users' home directory:

%HOMEDRIVE%%HOMEPATH%\AppData\Local\application.

I would like to find a way to clean up the machine before deploying the new version.

Thank you.

- Installed WAPT version (1.7)
- Server OS (Linux) and version (Debian Stretch)
- Administration/package creation machine OS (Windows 10)
If you want to remove it in the user context (session_setup), you can retrieve the path to appdata/local with the command user_local_appdata() [1] and check if the directory exists. If the directory exists, then it's probably best to run the uninstaller in silent mode to ensure it doesn't leave too much behind.

The more brute-force method is to delete the directories at the beginning of the `def install()` function, listing all existing profiles one after the other, and then modify their `appdata/local` directory. You'll also need to be careful about file associations and shortcuts that may have been created in user contexts.

Sincerely,

Denis

[1] https://www.wapt.fr/en/api-doc-1.5/sour ... al_appdata