I have some components that unzip some zip files. If unzip fails for whatever reason, I want the component to show as not installed, so if the user downloads the zip file again, he can try reinstall it (otherwise reinstall will show the component as installed and disabled). Is that possible to change the installed status in postInstallationActionList? I tried to set project.component(xx).selected in onErrorActionList, but doesn't work. I tried to move that code to postInstallationActionList but doesn't work either.
This question is marked "community wiki".
asked 28 Sep '12, 19:27
InstallBuilder does not currently allow marking a component as not installed or as requiring reinstallation.
As a workaround, you can keep the zip file on disk and store the information that the zip archive has to be re-unzipped next time. This, however, will not cause a re-download of the file.
Could you provide more background on what you are trying to achieve and if there is a reason for using zip file rather than built-in component format? If the download of
If the issue is potential re-downloads and sizes of components, InstallBuilder currently only allows re-downloading of the files if the installer was not stopped and if the server allows HTTP file resuming. Also, feature to improve the download mechanism to allow re-downloading even if installer was stopped is already in our bug tracking system, so if this would resolve the original issue.
answered 01 Oct '12, 03:37