Order of Operations
Cloudhouse Alchemy performs various operations depending on which task it is performing on the Compatibility Package:
- Deploying in User/Machine Mode.
- Registering.
- Running in User/Machine Mode in a Shared/Non-Shared Context.
- Updating in User/Machine Mode.
- Unregistering.
- Uninstalling in User/Machine Mode in a Shared/Non-Shared Context.
For more information on each of the components that are deployed or uninstalled, see: Configuring an Alchemy Compatibility Package.
Deploying in User/Machine Mode
When deploying an Alchemy Compatibility Package in user or machine mode, the following actions are performed:
- PreDeploy Event is executed.
- Compatibility Package is validated.
- ProgData files are copied over into the deployed folder.
- All Compatibility Package configuration files are copied to the deployed folder.
- AAV binaries are copied over into the deployed folder.
- The Pre-deployment script is executed.
- Windows add/remove program entry is set up.
- COM is deployed.
- COM+ is deployed.
- Shortcuts are configured.
- Services are installed (only in machine mode).
- Drivers are installed (only in machine mode).
- Post-deployment script is executed.
- Context menus are installed.
- File associations are installed.
- PostDeploy Event is executed.
Deploying in a Shared Context
When deploying an Alchemy Compatibility Package in a shared context (either a machine or user deploy), the following actions are performed:
- PreDeploy Event is executed.
- Compatibility Package is validated.
- Deployment Script is copied to the shared location.
- Com confirmation files are copied to the shared location.
- File associations file is copied to the shared location.
- App Registry file is copied to the shared location.
- Services file is copied to the shared location.
- Drivers file is copied to the shared location.
- Shortcuts file is copied to the shared location.
- The Pre-deployment script is executed.
- Windows add/remove program entry is set up.
- COM is deployed.
- COM+ is deployed.
- Shortcuts are configured.
- Services are installed (only in machine mode).
- Drivers are installed (only in machine mode).
- Post-deployment script is executed.
- Context menus are installed.
- File associations are installed.
- PostDeploy is executed.
Registering
When a compatibility package was not registered at deploy time, the following actions are performed when registering:
- PreRegistration Event is executed.
- Package is validated (inc. licensing)
- Files copied to user location
- Shorcuts are configured in user mode.
- Context menus are installed in user mode.
- File associations are installed in user mode.
- PostRegistration Event is executed.
Running in User/Machine Mode in a Shared/Non-Shared Context
When running an Alchemy Compatibility Package in user or machine mode in a shared or a non-shared context, the following actions are performed:
- Environment Variables are set.
- PreRun Event is executed.
- Package is validated (including licensing).
- App registry keys are deployed.
- COM keys are deployed.
- Log if services are not running.
-
Run Programs. For each program:
- PreProgramRun Event is executed. (Ignored for services.)
- PostProgramRun Event is executed. (Ignored for services.)
- PostProgramStop Event is executed. (Ignored for services.)
-
PostRun Event is executed.
Updating in User/Machine Mode
When updating an Alchemy Compatibility Package in user or machine mode, the following actions are performed:
- Compatibility Package is validated.
- Pre-uninstall script is executed.
- COM is uninstalled.
- COM+ is uninstalled.
- Shortcuts are removed.
- Services are removed (only in machine mode).
- Drivers are removed (only in machine mode).
- File associations are uninstalled.
- Post-Deployment script is executed.
- Windows installer/uninstaller is removed.
- All files are removed from the deploy folder.
- All registry entries are removed from the Cloudhouse root hive for all users.
- ProgData files are copied into the deployed folder.
- Compatibility Package configuration files are copied into the deployed folder.
- AAV binaries are copied into the deployed folder.
- The Pre-deployment script is executed.
- Windows add/remove program entry is set up.
- COM is deployed.
- COM+ is deployed.
- Shortcuts are configured.
- Services are installed (only in machine mode).
- Drivers are installed (only in machine mode).
- Post-deployment script is executed.
- Context menus are installed.
- File associations are installed.
Updating in a Shared Context
When updating an Alchemy Compatibility Package in a shared context (either a machine or user deploy), the following actions are performed:
- Compatibility Package is validated.
- Pre-uninstall script is executed.
- COM is uninstalled.
- COM+ is uninstalled.
- Shortcuts are removed.
- Services are removed (only in machine mode).
- Drivers are removed (only in machine mode).
- File associations are uninstalled.
- Post-Deployment script is executed.
- Windows installer/uninstaller is removed.
- All files are removed from the deploy folder.
- All registry entries are removed from the Cloudhouse root hive for all users.
- Deployment Script is copied to the shared location.
- Com confirmation files are copied to the shared location.
- File associations file is copied to the shared location.
- App Registry file is copied to the shared location.
- Services file is copied to the shared location.
- Shortcuts file is copied to the shared location.
- The Pre-deployment script is executed.
- Windows add/remove program entry is set up.
- COM is deployed.
- COM+ is deployed.
- Shortcuts are configured.
- Services are installed (only in machine mode).
- Drivers are installed (only in machine mode).
- Post-deployment script is executed.
- Context menus are installed.
- File associations are installed.
Uninstalling in User/Machine Mode in a Shared/Non-Shared Context
When uninstalling an Alchemy Compatibility Package in user or machine mode in a shared or a non-shared context, the following actions are performed:
- Pre-uninstall script is executed.
- COM is uninstalled.
- COM+ is uninstalled.
- Shortcuts are removed.
- Services are removed (only in machine mode).
- Drivers are removed (only in machine mode).
- File associations are uninstalled.
- Post-uninstall script is executed.
- Windows add/remove program entry is removed.
- All files are removed from the deploy/shared folder.
- All registry entries are removed from the Cloudhouse root hive for all users.
Unregistering
When a compatibility package was registered using the registration workflow, the following actions are performed when unregistering:
- Pre-unregistration Event is executed.
- Shortcuts are removed.
- Context menus are uninstalled.
- File associations are uninstalled.
- All files are removed from the user's directory.
- All registry entries are removed from the current user's Cloudhouse root hive.
- Post-unregistration Event is executed.