I'm working on creating a NSIS installer for our new VPN we will be getting in around a month. I have it calling a PowerShell script to create the connection without issue. However, removing the VPN connection is not working with the same method. Below is all my code for the uninstall
Section Uninstall ExpandEnvStrings $0 "%COMSPEC%" ExecShell "" '"$0"' "/C powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File .\DeleteVPNConnection.ps1 -connectionName ${VPN_NAME} " SW_HIDE Delete "$INSTDIR\uninst.exe" Delete "$INSTDIR\CreateVPNConnection.ps1" Delete "$INSTDIR\DeleteVPNConnection.ps1" RMDir /r "$INSTDIR" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" SetAutoClose true SectionEnd Does anyone have any ideas why the uninstall script isn't working (and I have tried removing the connectionName parameter as well, same issue).
.\for the script's path. What is the current directory when theExecShellruns?