Steps for capturing an application
1. Click on “Tools” menu in Wise package studio and click on “SetupCapture” under “Package creation” section.
2. In the Welcome screen, click on “SetupCapture” and Click Next.
3. Specify the target location and name the windows installer file which has to be created. Select “Copy Source Files During Installation Save” option and select the destination directory where the source files need to be saved. Check “Store Source File Pathnames as Relative Pathnames”.
4. SetupCapture screen launches.
· Click Change button to change the location of the Configuration file.
Note: Configuration file has the information about the files/registries that should be excluded during the capture.
· Click Settings button to view/change the setupcapture configuration settings.
Ø Include files deleted during capture and Include registry keys deleted during capture: Unless you are trying to capture an upgrade/patch, you probably don't want to use these options.
Ø Capture changes in hardware registry entries: This means most of the data in the HKEY_LOCAL_MACHINE\SYSTEM key (which includes services and other non-hardware-related stuff) will be ignored unless you select it.
Ø Allow root to be watched during capture: This will watch the root drive during capture.
Ø Enable ordering of self-registration (for SmartMonitor only): This will capture the order in which the files are registered.
5. Click Next on the “Begin Installation Capture” screen to begin capture.
6. Wait till the scan completes and when the “Execute Installation” screen comes, browse the exe and execute it.
7. Click Next after execution to capture the changes after installation.
8. “SetupCapture Inclusions” screen appears which will have the captured entries during the installation. The below screen has the list of files captured during the installation.
This screen has a drop-down named “Inclusion_Type” with the help of which we can see the files/registries/INI files/Shortcuts captured during the installation.
This screen also has three options, “Exclude”, “Exclude Globally” and “Treat as INI”.
Exclude – This option helps to exclude an entry from the current installation, if it is not related to the installation. Select the file/registry/ini file/shortcut and click “Exclude”.
Exclude Globally – This option will exclude the selected entry globally i.e., this option moves the selected entry to the exclusion list and hence that entry will no longer be captured in any of the installation.
Treat as INI – This option is applicable only for the File Inclusion screen. This option will move the selected file to INI table of the msi.
9. Click Next to go to “SetupCapture Exclusions” screen where you will see the files/registries/INI files/shortcuts excluded during the installation. This screen has an option to “Include” the excluded entry.
10. Click Next to go to the finish screen.
This screen will have the below information of the application:
Name: <Application_name>
Version: <Version>
Manufacturer: <Vendor>
Default Directory: <Default_Directory>
Destination Feature: Complete (in most cases)
After filling the required information in the above screen click “Finish” which will compile the installation.
It will then create <Application_name.wsi>. Edit this file and compile it to get <Application_name.msi>.
Structure of MSI: