Internet Explorer add-on (IE6, IE7, IE8):
Web-based deployment for IE extensions
Add-in Express™ |
|
Folder name |
Folder name description |
Folder files |
|
Publish |
Pre-defined name |
Publish Version_info.xml |
|
1033 |
The folder name is set to the language identifier of the .MSI file |
None |
|
1.0.0 |
The folder name is set to version of the .MSI fileThe folder name is set to version of the .MSI file |
|
|
prerequisites |
Pre-defined name |
None |
The file name of the downloader is set to the name of your project. The downloader can be renamed only if you don't use prerequisites.
Step 5. Publishing
Just copy Version_info.xml and folders under the Publish folder to the web server (or to another location) to make it available via the URL specified in the Installation URL field of the Publish dialog.
On the Target PC
Installing
The user downloads and runs setup.exe, which installs prerequisites that were specified when creating the installer. Note that depending on the IE extension type the user may be required to have the administrative privileges; only IE Bar projects can be installed by a standard user. When the prerequisites are installed, setup.exe downloads and runs the downloader. The downloader opens the following window illustrating the progress of downloading the .MSI file:

Note. The Icon File field in the Publish dialog (see Step 1. Publish Dialog) defines the icon for this window.
When the .MSI is downloaded, the downloader runs it and if the "Quiet mode during install" flag (see Step 3. Preferences) is cleared, the .MSI installer shows its GUI. When the setup process is complete, the downloader closes its window.
Updating: Developer’s Perspective
You must provide a way for the user to invoke CheckForUpdates. Any control such as a main menu item, toolbar button, etc. will do. In the code of the corresponding event handler, you must call the CheckForUpdates method of your module (IEModule, IEBarModule, IEToolbarModule). CheckForUpdates downloads and parses version_info.xml using the URL specified in the Installation URL field at Step 1. Publish Dialog. If version_info.xml contains several updates, CheckForUpdates will return the URL for the most recent add-on version (the one that has the highest version number). The URL to return is determined as follows:
- If a web page was specified in Step 3. Preferences, CheckForUpdates returns the URL of the web page.
- If the "Create setup program…" flag was set in Step 2. Prerequisites, CheckForUpdates returns the URL of the corresponding setup.exe.
- Otherwise, CheckForUpdates returns the URL of the downloader for the update.
- In all other circumstances, CheckForUpdates returns an empty string.
Before you start the process, you need to know if the current user has appropriate privileges for uninstalling the current add-on version (and installing the new add-on version): call the IsUpdatable method of your module. The following table describes the return values of the method.
|
Environment |
The value returned by IsUpdatable |
|
IE Bar project on Windows XP |
True |
|
All other project types on Windows XP |
False if the user is a standard user; True if the user is an administrator |
|
Any project type on Windows Vista and Windows 7 |
True |
You can also use IsNetworkDeployed (a method of your module) to check if the current add-on version was deployed via the web.
Before starting the process, you may also want to warn the user that it will require closing all instances of Internet Explorer.
Finally, you call IEApp.Navigate providing the appropriate URL as a parameter.
Updating: User’s Perspective
Setup.exe installs prerequisites, downloads the corresponding downloader and starts it. The downloader uninstalls the current add-on version, requests the user to close all IE instances, downloads the .MSI file and starts it. When the .MSI is installed (or when the installation process fails), the downloader closes.
Uninstalling
Uninstall the add-on in the usual way, via Control Panel.





