- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Dynamic files not removed when uninstalled by Control Panel
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dynamic files not removed when uninstalled by Control Panel
Hello,
I've created an installer containing one feature with 2 components - one of them contains dynamically linked folder. Everything is installed correctly, but when I uninstall the product from the control panel, the dynamic folder and it's content are not being removed. However, if I install the data again and try to uninstall it using the setup.exe, it removes everything correctly.
Do you have any suggestion why setup.exe and Control Panel->Uninstall Programs might work differently? I'm using InstallShield 2019.
I noticed that when I change the attribute of the dynamic folder from "by directory" to "best practice", it worked for one of the packages, but did not work for others, which is very odd. Also, this inconsistency is spotted only when using dynamic files.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
A slight update: It seems that this is not related only to dynamic files. I think it happens when the installer runs without UI - it fails to obtain the install directory. Installing without UI puts the files directly in C:\ (instead of the pre-defined location); Still can't find out what does uninstall without UI do...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Which project type is your installation ? Basic msi, InstallScript msi or InstallScript ?
regards
Markus
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @liutenitza ,
Can you enable log during installation and un-installation and check what goes wrong?
If possible can you attach here?
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The project is basic msi.
I ran the installation and uninstallation via cmd.exe and attached the UI install log and the quiet uninstall log - this is the most probable combination that will be used.
The dataset should be installed in C:\MYSOFTWARE_COUNTRY19V1\. However, the quiet install/uninstall use C:\ instead. Therefore, when we install the data through the UI it goes on the correct place, but when we uninstall it quietly, InstallShield tries to remove it from a different location.
Don't know how to view the log when uninstall from the Control Panel - which doesn't seem to remove anything - for some reason it works differently than the cmd's quiet uninstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Where/ How do you set that the dataset should be installed in C:\MYSOFTWARE_COUNTRY19V1\ ?
I ask because the installation sequences are different for interactive install and silent install.
regards
Markus
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The installation directory is a combination of PREVIOUS_DATA_LOCATION and ExpDataVersion.
It's strange that it works perfectly both ways for installers created with an older version of InstallShield. But when I create identical ISM file from scratch and build it with IS 2019, the new installer doesn't work well in silent mode, even though the UI sequence and execute sequence are identical to the old ISM.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)