Page 1 of 1

Update OpenVPN - "Openvpnmsica: ProcessDeferredAction: ignoring invalid argument"

Posted: Tue Apr 04, 2023 2:53 pm
by kalmarr
Hello,
I wanted to update OpenVPN to the latest version, but I didn't delete and reinstall it, I just installed it straight away. So something could not be wiped from my machine and this error stuck the installation.
It gives the following error:

"Openvpnmsica: ProcessDeferredAction: ignoring invalid argument" - \AppData\Local\Temp directory. (https://pasteboard.co/em0lJuhvn8eR.jpg)

So now I'm in a stalemate because I can't uninstall or reinstall because I always get the same error.

My question is, what is the solution, how can I reinstall the latest version on my computer?

Image

Robert

Re: Update OpenVPN - "Openvpnmsica: ProcessDeferredAction: ignoring invalid argument"

Posted: Tue Apr 04, 2023 10:05 pm
by kalmarr
I should also note that I have since tried to uninstall OpenVPN. Reinstalled it all over again, but kept getting the error shown. I simply cannot delete this temp directory either. It won't uninstall the program so that I can reinstall it completely. I am completely clueless....

Re: Update OpenVPN - "Openvpnmsica: ProcessDeferredAction: ignoring invalid argument"

Posted: Fri Apr 07, 2023 5:42 pm
by kalmarr
I was able to fix the error in the temp directory that was at fault because Windows 11 unfortunately still can't handle UTF8 characters. So if it does, it runs on error. This is about a 20 year old problem....

openvpnmsica.c

Code: Select all

    TCHAR tmpDir[MAX_PATH];
    GetTempPath(MAX_PATH, tmpDir);

    TCHAR str[MAX_PATH + 7];
    _stprintf_s(str, _countof(str), TEXT("tmpdir=%") TEXT(PRIsLPTSTR), tmpDir);
  
https://learn.microsoft.com/en-us/windo ... ttemppathw

Code: Select all

The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

The path specified by the TMP environment variable.
The path specified by the TEMP environment variable.
The path specified by the USERPROFILE environment variable.
The Windows directory.