topper_harley
Posts: 24
Joined: Fri Aug 24, 2007 1:13 pm

Uninstalling property based folder

Hello,

in my project there is a feature, that installs files into a property based folder.
When this feature is not installed (what means that the folder is not being created), the product cannot be uninstalled using the "Add or remove programs" control panel tool. It fires Windows Installer error #1606 ("Could not access location <PropertyName>").
Running the MSI-package and using its "Remove"-function does work without any problem.

So what's the diffrence between using the control panel and remove-function of the msi-file?
How do I get this to work with the control panel?

TIA

Edit: A little details about the project:
In "Install Parameters" there is a custom property.
At "Custom Actions" on "InstallUISequence\Begin" there is an attached script action, where the property is set to a default value.
(So is this the difference? Removing via control panel does not use any UI..?)
I have tried the check "create folder on target machine" in the property based folder's properties, but without any effect.
topper_harley
Posts: 24
Joined: Fri Aug 24, 2007 1:13 pm

Workaround

Getting it, that the control panel removes software without using an user interface, I realized that the script to initialize the properties is not run!

While in "Install Parameters" the propertys default value was it's name, I changed it to "C:\".

On some system there may be no C-drive, so this cannot be solution, but it is a workaround...

Return to “Common Problems”