ProgramData not clearing on uninstall.
Posted: Thu Sep 19, 2013 1:17 am
Good Day
I am currently busy rewriting our MSI based installer and I am using the IA Native Engine with the Studio version of IA NX.
The problem I have is as follow:
I run the setup to install our product which has multiple services. The installer extracts the setup to the C:\ProgramData\{productkey}
In C:\ProgramData\{productkey1234…} there is a file {productkey1234…}.native.data file which I can see is log of the installation. As a simple example (to explain my problem) this file will have entries as follow:
Line 1:Step A
Line 2:Step B
Line 3:Step C
Once my installation is complete I run the setup again to uninstall the product.
At this stage the product has been removed but the C:\ProgramData\{productkey} directory still remains.
I then run the very same version of the installer again and the product installs perfectly fine, but the {productkey1234…}.native.data file inside C:\ProgramData\{productkey1234…} gets modified as follow then:
Line 1:Step A
Line 2:Step B
Line 3:Step C
Line 4:Step A
Line 5:Step B
Line 6:Step C
Now when I try to uninstall our product again, on the Apply Uninstall line I get 1 error (the specified service does not exist as an installed service) for each service our product installed. I gathered that it uses the {productkey1234…}.native.data file to undo the installation and with this file now having double install entries it tries to uninstall our services twice.
Although I get these errors, the product uninstalls fine. If I run the setup again and the uninstall again, I get 2 errors for each service since the {productkey1234…}.native.data file now contains triple entries.
When I look at the predefined variables ENGINECACHE: it states as follow: This folder is always removed after uninstallation, although a reboot may be necessary for the removal to finalize.
I tried rebooting after the 1st install & uninstall but the C:\ProgramData\{productkey1234…} directory does not clear after the reboot.
I also went and started a new native template project which installs one of our services and then uninstalls it, with this the ProgramData directory gets removed and cleared perfectly.
As soon as I copy all of my installer code over to the new project, I sit with the same problem again.
Is there anything else I can check to figure out why an uninstall of our product does not remove the C:\ProgramData\{productkey1234…} directory?
Regards
I am currently busy rewriting our MSI based installer and I am using the IA Native Engine with the Studio version of IA NX.
The problem I have is as follow:
I run the setup to install our product which has multiple services. The installer extracts the setup to the C:\ProgramData\{productkey}
In C:\ProgramData\{productkey1234…} there is a file {productkey1234…}.native.data file which I can see is log of the installation. As a simple example (to explain my problem) this file will have entries as follow:
Line 1:Step A
Line 2:Step B
Line 3:Step C
Once my installation is complete I run the setup again to uninstall the product.
At this stage the product has been removed but the C:\ProgramData\{productkey} directory still remains.
I then run the very same version of the installer again and the product installs perfectly fine, but the {productkey1234…}.native.data file inside C:\ProgramData\{productkey1234…} gets modified as follow then:
Line 1:Step A
Line 2:Step B
Line 3:Step C
Line 4:Step A
Line 5:Step B
Line 6:Step C
Now when I try to uninstall our product again, on the Apply Uninstall line I get 1 error (the specified service does not exist as an installed service) for each service our product installed. I gathered that it uses the {productkey1234…}.native.data file to undo the installation and with this file now having double install entries it tries to uninstall our services twice.
Although I get these errors, the product uninstalls fine. If I run the setup again and the uninstall again, I get 2 errors for each service since the {productkey1234…}.native.data file now contains triple entries.
When I look at the predefined variables ENGINECACHE: it states as follow: This folder is always removed after uninstallation, although a reboot may be necessary for the removal to finalize.
I tried rebooting after the 1st install & uninstall but the C:\ProgramData\{productkey1234…} directory does not clear after the reboot.
I also went and started a new native template project which installs one of our services and then uninstalls it, with this the ProgramData directory gets removed and cleared perfectly.
As soon as I copy all of my installer code over to the new project, I sit with the same problem again.
Is there anything else I can check to figure out why an uninstall of our product does not remove the C:\ProgramData\{productkey1234…} directory?
Regards