I created an installer with two components, I call it "base" and "Component A". Component A is to unzip an external zip file (call it a.zip). I set Component A invisible/unselected if the zip is not present in the installer_directory. I turned on allowAddRemoveComponents. I did the following install/uninstall:
Is there anything I can do with the installer or this is a bug with InstallBuilder?
To be clear this problem only happens when the first time, a.zip is not present, component A is set to invisible (show=0), second time, a.zip is present, but adding component A at the second time doesn't seem to change the visibility of component A in the uninstaller.
asked 27 May '12, 03:43
I was not able to reproduce the issue. Instead of checking if file exists, I have simply implemented a page to reproduce:
Please note that as it is shown before
I first installed it with
Can you try to make a minimal project that reproduces the issue and can be built by us without all the files your installer has? Please send it to email@example.com so we can try to reproduce the issue.
Also, you can try to add setting it as always visible in
This could also resolve the issue.
The reason is that if latest run of the installer sets show/canBeEdited to 0, then running the uninstaller causes the component not to be shown. Which in most cases is desired - i.e. to disallow uninstalling a mandatory component, however, in this case has to be set manually after the installation.
Setting this to 1 does not break anything as when it is not installed, it will not be shown in uninstaller, also, the next installer will have those values set based on actions/rules run before component selection page - in my example the
answered 29 May '12, 10:23