java.lang.Objectjwrapper.jwutils.JWInstallApp
public class JWInstallApp
Can be used by JWrapperPostInstallApp virtual apps
Constructor Summary | |
---|---|
JWInstallApp()
|
Method Summary | |
---|---|
static void |
addAppShortcut(java.lang.String shortcutName,
java.lang.String virtualAppName)
Add a shortcut to a virtual app in the usual OS-specific place (e.g. |
static void |
addAppShortcut(java.lang.String shortcutName,
java.lang.String virtualAppName,
java.io.File iconFile,
int iconIndex)
Add a shortcut to a virtual app in the usual OS-specific place (e.g. |
static void |
addAppShortcutInFolder(java.lang.String shortcutName,
java.lang.String virtualAppName,
java.io.File iconFile,
int iconIndex,
java.io.File targetFolder)
Add a shortcut to a virtual app in the specified folder |
static void |
addAppShortcutWithID(java.lang.String shortcutName,
java.lang.String virtualAppName,
java.io.File iconFile,
int iconIndex,
java.lang.String appID)
Add a shortcut to a virtual app in the usual OS-specific place (e.g. |
static void |
addAppShortcutWithIDInFolder(java.lang.String shortcutName,
java.lang.String virtualAppName,
java.io.File iconFile,
int iconIndex,
java.lang.String appID,
java.io.File targetFolder)
Add a shortcut to a virtual app in the specified target folder including a Window application ID |
static void |
addUninstallerShortcut(java.lang.String shortcutName)
Add a shortcut to uninstall the app bundle to the usual OS-specific place (e.g. |
static void |
addUninstallerShortcut(java.lang.String shortcutName,
java.io.File iconFile,
int iconIndex)
Add a shortcut to uninstall the app bundle to the specified folder |
static void |
addUninstallerShortcutInFolder(java.lang.String shortcutName,
java.io.File targetFolder)
Add a shortcut to uninstall the app bundle to the specified folder |
static void |
addUninstallerShortcutInFolder(java.lang.String shortcutName,
java.io.File iconFile,
int iconIndex,
java.io.File targetFolder)
Add a shortcut to uninstall the app bundle to the usual OS-specific place (e.g. |
static void |
addWebShortcut(java.lang.String url,
java.lang.String shortcutName)
Add a shortcut to a URL in the usual OS-specific place (e.g. |
static void |
addWebShortcut(java.lang.String url,
java.lang.String shortcutName,
java.io.File iconFile,
int iconIndex)
Add a shortcut to a URL in the usual OS-specific place (e.g. |
static void |
exitJvm_ContinueAndPerformStandardSetup()
Tell the JWrapper installer to continue with installation including performing the standard setup of shortcuts etc |
static void |
exitJvm_ContinueAndSkipStandardSetup()
Tell the JWrapper installer to continue with installation but skip the standard setup of shortcuts etc |
static void |
exitJvm_QuitInstallAndRollBack()
Tell the JWrapper installer to quit the installation and roll it back |
static java.lang.String |
getChosenLanguage()
Get the language chosen by the user (or the default language if only one is supported) |
static java.io.File |
getWindowsOrLinuxShortcutLauncherFile()
Get the launcher file which corresponds to the default user(s) install menu and desktop shortcuts created in Windows and Linux |
static void |
removeAllStandardShortcuts()
Remove all the usual shortcuts from a permanent installation of this bundle. |
static void |
removeAppShortcut(java.lang.String shortcutName)
|
static void |
removeAppShortcut(java.lang.String shortcutName,
boolean web)
|
static void |
setChosenLanguage(java.lang.String code)
Set the chosen language (typically this will be chosen by the user) |
static void |
setupAllStandardShortcuts(boolean createMacOsApplicationLauncher)
Set up all the usual shortcuts for a permanent installation of this bundle (shortcuts to all visible apps in the OS specific place such as the start menu on Windows) |
static void |
setupAllStandardShortcutsInFolder(boolean createMacOsApplicationLauncher,
java.io.File targetFolder)
Set up all the usual shortcuts for a permanent installation of this bundle (shortcuts to all visible apps), but instead store the shortcuts in targetFolder. |
static void |
setupAllStandardShortcutsInFolderAndOverrideProperties(boolean createMacOsApplicationLauncher,
java.io.File targetFolder,
java.util.Properties overridePropertiesOSX)
Set up all the usual shortcuts for a permanent installation of this bundle (shortcuts to all visible apps), but instead store the shortcuts in targetFolder. |
static java.lang.String |
showLanguageChooser()
Show the standard JWrapper language chooser to ask the user to choose a language and return their choice. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWInstallApp()
Method Detail |
---|
public static void addAppShortcut(java.lang.String shortcutName, java.lang.String virtualAppName) throws java.io.IOException
shortcutName
- the name of the shortcutvirtualAppName
- the name of the virtual app to launch
java.io.IOException
public static void addAppShortcut(java.lang.String shortcutName, java.lang.String virtualAppName, java.io.File iconFile, int iconIndex) throws java.io.IOException
shortcutName
- the name of the shortcutvirtualAppName
- the name of the virtual app to launchiconFile
- the Windows icon file (ICO)iconIndex
- the Windows icon file index to use
java.io.IOException
public static void addAppShortcutInFolder(java.lang.String shortcutName, java.lang.String virtualAppName, java.io.File iconFile, int iconIndex, java.io.File targetFolder) throws java.io.IOException
shortcutName
- the name of the shortcutvirtualAppName
- the name of the virtual app to launchiconFile
- the Windows icon file (ICO)iconIndex
- the Windows icon file index to usetargetFolder
- the target folder in which to store the shortcut. If this is null the default OS location will be used.
java.io.IOException
public static void addAppShortcutWithID(java.lang.String shortcutName, java.lang.String virtualAppName, java.io.File iconFile, int iconIndex, java.lang.String appID) throws java.io.IOException
shortcutName
- the name of the shortcutvirtualAppName
- the name of the virtual app to launchiconFile
- the Windows icon file (ICO)iconIndex
- the Windows icon file index to useappID
- the Windows System.AppUserModel.ID identifier used to identify the application launched by this shortcut
java.io.IOException
public static void addAppShortcutWithIDInFolder(java.lang.String shortcutName, java.lang.String virtualAppName, java.io.File iconFile, int iconIndex, java.lang.String appID, java.io.File targetFolder) throws java.io.IOException
shortcutName
- the name of the shortcutvirtualAppName
- the name of the virtual app to launchiconFile
- the Windows icon file (ICO)iconIndex
- the Windows icon file index to useappID
- the Windows System.AppUserModel.ID identifier used to identify the application launched by this shortcuttargetFolder
- the target folder in which to store the shortcut. If this is null the default OS location will be used.
java.io.IOException
public static void addUninstallerShortcut(java.lang.String shortcutName) throws java.io.IOException
shortcutName
- the name of the shortcut (e.g. "Uninstall MyApp")
java.io.IOException
public static void addUninstallerShortcut(java.lang.String shortcutName, java.io.File iconFile, int iconIndex) throws java.io.IOException
shortcutName
- the name of the shortcut (e.g. "Uninstall MyApp")
java.io.IOException
public static void addUninstallerShortcutInFolder(java.lang.String shortcutName, java.io.File targetFolder) throws java.io.IOException
shortcutName
- the name of the shortcut (e.g. "Uninstall MyApp")targetFolder
- the folder in which to save the shortcut. If null, the OS-specific place.
java.io.IOException
public static void addUninstallerShortcutInFolder(java.lang.String shortcutName, java.io.File iconFile, int iconIndex, java.io.File targetFolder) throws java.io.IOException
shortcutName
- the name of the shortcut (e.g. "Uninstall MyApp")targetFolder
- the folder in which to save the shortcut. If null, the OS-specific place.
java.io.IOException
public static void addWebShortcut(java.lang.String url, java.lang.String shortcutName) throws java.io.IOException
url
- the URL of the website to point toshortcutName
- the name of the shortcut
java.io.IOException
public static void addWebShortcut(java.lang.String url, java.lang.String shortcutName, java.io.File iconFile, int iconIndex) throws java.io.IOException
url
- the URL of the website to point toshortcutName
- the name of the shortcuticonFile
- the Windows icon file (ICO)iconIndex
- the Windows icon file index to use
java.io.IOException
public static void exitJvm_ContinueAndPerformStandardSetup()
public static void exitJvm_ContinueAndSkipStandardSetup()
public static void exitJvm_QuitInstallAndRollBack()
public static java.lang.String getChosenLanguage() throws java.io.IOException
java.io.IOException
public static java.io.File getWindowsOrLinuxShortcutLauncherFile()
public static void removeAllStandardShortcuts() throws java.io.IOException
java.io.IOException
public static void removeAppShortcut(java.lang.String shortcutName) throws java.io.IOException
java.io.IOException
public static void removeAppShortcut(java.lang.String shortcutName, boolean web) throws java.io.IOException
java.io.IOException
public static void setChosenLanguage(java.lang.String code) throws java.io.IOException
java.io.IOException
public static void setupAllStandardShortcuts(boolean createMacOsApplicationLauncher) throws java.io.IOException
createMacOsApplicationLauncher
- Whether to also create OSX .app launchers for each virtual app in the standard /Applications folder (note that currently
each of these will have the same icon - the bundle icon).
java.io.IOException
public static void setupAllStandardShortcutsInFolder(boolean createMacOsApplicationLauncher, java.io.File targetFolder) throws java.io.IOException
createMacOsApplicationLauncher
- Whether to also create OSX .app launchers for each virtual app.targetFolder
- The target folder in which to store the shortcuts.
java.io.IOException
public static void setupAllStandardShortcutsInFolderAndOverrideProperties(boolean createMacOsApplicationLauncher, java.io.File targetFolder, java.util.Properties overridePropertiesOSX) throws java.io.IOException
createMacOsApplicationLauncher
- Whether to also create OSX .app launchers for each virtual app.targetFolder
- The target folder in which to store the shortcuts.overridePropertiesOSX
- a set of properties that will override any existing shortcut properties.
java.io.IOException
public static java.lang.String showLanguageChooser()