Hello
How come that the function "removeAllUserExtentions" does not remove any of my extentions I installed?
regards
Rune
public static void removeAllUserExtensions() throws BootstrapException, com.sun.star.uno.Exception, com.sun.star.lang.IllegalArgumentException
{
System.out.println("removeAllUserExtensions");
XComponentContext xContext = null;
xContext = Bootstrap.bootstrap();
XPackageManagerFactory packageManagerFactory = thePackageManagerFactory.get(xContext);
XPackageManager packageManager = packageManagerFactory.getPackageManager("user");
XPackage[] packages = packageManager.getDeployedPackages(null, null);
for (int i=0; i< packages.length; ++i)
{
XPackage xpackage = packages;
XAbortChannel abortchannel = xpackage.createAbortChannel();
XCommandEnvironment commandenviroment = null;
System.out.println("Removing:"+xpackage.getName()+", "+xpackage.getVersion());
xpackage.revokePackage(abortchannel, commandenviroment);
}
}
displays:
removeAllUserExtensions
Removing:test.oxt, 20090518.0.3
revokePackage (Java) - removing an extension
Java, C++, C#, Delphi... - Using the UNO bridges
Jump to
- Getting started
- ↳ Survival guide
- ↳ Beginners
- ↳ Getting Started Guide for 4.x
- ↳ Getting Started Guide for 3.x
- ↳ Install, Setup and Troubleshooting
- ↳ Admin Guide
- ↳ MS Windows
- ↳ Linux
- ↳ Mac OSX
- ↳ LibreOffice
- ↳ Tablets
- ↳ Tutorials
- ↳ Writer
- ↳ Calc
- ↳ Base
- Applications
- ↳ Writer
- ↳ Writer Guide for 4.x
- ↳ Writer Guide for 3.x
- ↳ Writer Tutorials
- ↳ Templates
- ↳ Advanced Uses
- ↳ Calc
- ↳ Calc Guide for 4.x
- ↳ Calc Guide for 3.x
- ↳ Calc Functions
- ↳ Calc Tutorials
- ↳ Impress
- ↳ Impress Guide for 4.x
- ↳ Impress Guide for 3.x
- ↳ Draw
- ↳ Draw Guide for 4.x
- ↳ Draw Guide for 3.x
- ↳ Math
- ↳ Math Guide for 4.x
- ↳ Math Guide for 3.x
- ↳ Math Guide for 3.x
- ↳ Base
- ↳ Base Guide for 4.x
- ↳ Wiki
- ↳ Base Tutorials
- ↳ Tables & Queries
- ↳ Forms
- ↳ External Data Sources
- ↳ Reporting
- ↳ Database Examples
- Customizing and Extending
- ↳ Macros and UNO API
- ↳ Basic Guide
- ↳ Code Snippets
- ↳ Extension Repository
- ↳ Macro Repository
- ↳ External Programs
- ↳ Extensions
- ↳ Extensions page
- Community
- ↳ General Discussion
- ↳ Site Feedback
- ↳ Forum Governance
- ↳ User Experience (UX)
- ↳ Announcements
- Business
- ↳ Institutions & Educational
- ↳ Paid support
- ↳ Consultants Directory