Skip to content
Remove old bundled connections?
Got a problem with Viscosity or need help? Ask here!
Hi Bryan,
The bundled installer templates don't directly support deleting connections, however you can remove the connections yourself using a script. If this is a managed machine you can simply run it directly prior to deploying your updated Viscosity bundle. It can be as simple as something like "rm -Rf ~/Library/Application\ Support/Viscosity/OpenVPN" (without the quotes), which will remove all connections for the user it is run under.
If you'd like to integrate the script with a bundled installer, something like so should work:
1. Save your script. Ensure it contains a #! header and runs correctly.
2. Edit the Viscosity Installer.pkgproj template in Packages
3. Right click on the Viscosity package to the left and select duplicate.
4. Go to the Scripts tab on your duplicated copy.
5. Clear both Pre-installation and Post-Installation scripts, and remove the Preconfigure folder from the Additional Resources section.
6. Select your own script under Pre-installation.
7. Build the package.
Cheers,
James
The bundled installer templates don't directly support deleting connections, however you can remove the connections yourself using a script. If this is a managed machine you can simply run it directly prior to deploying your updated Viscosity bundle. It can be as simple as something like "rm -Rf ~/Library/Application\ Support/Viscosity/OpenVPN" (without the quotes), which will remove all connections for the user it is run under.
If you'd like to integrate the script with a bundled installer, something like so should work:
1. Save your script. Ensure it contains a #! header and runs correctly.
2. Edit the Viscosity Installer.pkgproj template in Packages
3. Right click on the Viscosity package to the left and select duplicate.
4. Go to the Scripts tab on your duplicated copy.
5. Clear both Pre-installation and Post-Installation scripts, and remove the Preconfigure folder from the Additional Resources section.
6. Select your own script under Pre-installation.
7. Build the package.
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
3 posts
Page 1 of 1