Summary
This article discusses reasons why data may not being installed or uninstalled.
Problem: Data Is Not Being Installed
A. Create a log file for the installation
See Logging An MSI Installation. Check the states of components, features, as well as the ADDLOCAL and REMOVE properties as described in Checking the Installation of Features, Components,Files on the Microsoft Learn website.
B. Check to see if the file already exists on the target machine
If files are not being installed, then check to see if the file already exists on the target machine in the same location in which the installation is installing the file. If it does, then follow these steps:
- Determine the following file information for the file that you are trying to install and the file that already exists on the target machine.
- If it's versioned, what is the version?
- If it's not versioned, what is the Created and Modified date?
- Go through the Default File Versioning rules to determine if your file should be installed according to these rules.
- If the rules show that the file should not be installed under the specific conditions then there are some options:
- Set the REINSTALLMODE property to override the default rules.
- Use Companion Files.
C. If registry data is not being installed
If registry data is not being installed, then verify what options have been set in the Name column of the Registry Table. The value in the name column for the registry entry determines how the key is installed or uninstalled. See the documentation for the Name column in the Registry Table for the available options and their behavior. These options are set in a InstallShield project by following these steps:
- Select the Components view.
- Select the component that contains the registry keys not being installed.
- Expand the component and select the Registry view.
- Right-click the registry key that is not being installed. Here you will see the corresponding +, -, and * options.
- Modify the selected flag accordingly depending on the desired behavior. For information on these flags, see Registry Flags in the InstallShield Help Library.
D. Verify that the component containing the data is associated with a feature
To verify that the component containing the data is associated with a feature, follow these steps:
- Select the Components view.
- Find any components that have an icon that looks like a white exclamation point surrounded by a red circle. This indicates that the component is not associated to a feature.
- Expand each of these components and look in the Files view until you find the file that is not being installed.
- Once the component is found then navigate to the Setup Files view.
- Select a feature and right-click it.
- Select Associate Components from the menu options and select the component that needs to be associated to a feature.
E. Verify that there are not any conditions preventing data from being installed
To verify that there are not any conditions preventing data from being installed, follow these steps:
- Navigate to the Setup Design view.
- Find the component containing the data that is not being installed.
- Select the component and find the Condition property on the right. If there are any conditions on the component, analyze the condition and verify that it is resolving to TRUE during the installation.
- Now select the feature that the component is associated with and then select the Condition property of the feature on the right.
- Check to see if there are any conditions that are causing the feature to be deselected at run time. Modify these condition accordingly.
F. Verify that the state of the component or feature is not being changed by any Windows Installer Selection functions via custom actions
Review the Installer Selection Functions section of the Database Functions topic on the Microsoft Learn website for list of functions that can be used to change the component and feature state.
Problem: Data is not being Uninstalled
A. Create a log file for the Installation
See Logging an MSI Installation. Check the states of components, features, as well as the ADDLOCAL and REMOVE properties as described in Checking the Installation of Features, Components,Files on the Microsoft Learn website.
B. Verify that the component installing the file is not marked as permanent.
See Installing Permanent Component, Files, Fonts, Registry Keys on the Microsoft Learn website. Follow these steps:
- Navigate to the Components view.
- Select the component that contains the file that is not being uninstalled.
- In the component properties view on the right, set the Permanent field for the component to No.
C. If registry data is not being uninstalled
If registry data is not being uninstalled, then verify what options have been set in the Name column of the Registry Table. The value in the name column for the registry entry determines how the key is installed or uninstalled.
See the documentation for the name column in the Registry Table for the available options and their behavior. These options are set in a InstallShield project by following these steps:
- Select the Components view.
- Select the component that contains the registry keys not being installed.
- Expand the component and select the Registry view.
- Right-click the registry key that is not being installed. Here you will see the corresponding +, -, and * options.
- Modify the selected flag accordingly depending on the desired behavior. For information on these flags, see Registry Flags in the InstallShield Help Library.
D. The component is used by another application or feature that is still installed
This can occur if the component has been shared among features or applications without changing the Component Code. In order to uninstall the component, every application or feature using the component must be installed. The issue can be prevented by using unique component codes.
To change the component code, follow these steps:
- Select the Components view.
- Select the component that is not being uninstalled.
- Select the Component Code property on the right .
- Push the Generate GUID button to create a new GUID.
E. Data is being created via a custom action
If data is being created on the target machine via a custom action, then ensure that a custom action is being called during uninstallation to remove the data. See Uninstalling Custom Actions on the Microsoft Learn website.
F. Verify that there are not any conditions preventing data from being uninstalled.
Follow these steps:
- Navigate to the Setup Design view.
- Find the component containing the data that is not being installed.
- Select the component and find the Condition property on the right.
- If there are any conditions on the component, analyze the condition and verify that it is resolving to TRUE during the installation.
- Select the feature that the component is associated with and then select the Condition property of the feature on the right.
- Check to see if there are any conditions that are causing the feature to be deselected at runtime. Modify these condition accordingly.
G. Component's key file is on the list of protected files
If a component's key file is on the About Windows Resource Protection list of protected files, the installer does not remove the component.
H. Component Rules have been broken
See What happens if the component rules are broken? on the Microsoft Learn website.
I. A previous reference count is set
A previous reference count could be set under HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDlls. This key could be set by other applications installing the same file, if you marked the component's Shared property to Yes, or if your application has a file that is being installed the System folder.
When a application is uninstalled, then the SharedDLLs key is decremented for the file being uninstalled. In order to decrement the SharedDLLs key manually, perform the following steps:
- Go to the registry by typing regedit in the Start > Run command.
- Navigate to the SharedDLLs key.
- Open this key,
- Find the file's entry and delete.
WARNING: Deleting this entry and the file could affect other applications and should be used cautiously.
Additional Information
For more information, see Removing Stranded Files on the Microsoft Learn website..
Related Articles
Kill 64bit Process During Installation/Uninstallation 8Number of Views There Is Not Enough Space on Drive C to Extract the Files 13Number of Views Installation and Uninstallation Conditions 9Number of Views Launch Another Installation or Uninstallation from within an Installation 4Number of Views InstallShield Missing from AdminStudio Installation 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago