I am deploying a VPN profile created through CMAK. I'm installing it silently to all users.
In the application I have set a detection method for the existence of a file in the profile located in c:\programdata\microsoft\network\connections\<profilename>\file.txt.
The application installs successfully and I've confirmed the presence of the profile directory and the file I am checking for. However deployment always fails because it cannot detect the presence of the file after the successful deployment.
I've tried other methods of detection such as VBScripts and PowerShell. If I manually run the scripts they detect the file and write to STDOUT. And don't write if they don't detect the file. But they don't work when used in the application.
Is there something about that directory path that's causing it to fail? I've used this detection method before and it's simply worked. But for some reason it's not in this application.