I am developing a package using Installshield 2008 Primer Edition and Project type is Installscript MSI project.
The problem I am facing is during installation I am installing some of the files to the following location C:\Program Files\Company\SystemFiles
from this location I am copying and adding the set of files into System32 folder, it contains DLLs and OCX files, copying into the System32 folder has been done using Installscript.
Due to this during uninstallation, the installed file is getting removed from System32 due to this other dependent application which requires the same set of DLLs have stopped working.
I have approached Installscript to copy files from ProgramFiles to System32 Folder rather than using built-in options because we have an issue during the upgrade in order to avoid that I am using Installscript.
Even I have tried several workarounds like setting the file attributes after file copies to System32 using Installscript like FILE_ATTR_SYSTEM which sets the system attribute but still files are getting removed during uninstallation.
Any idea how to give file attributes as PERMANENT or SHARED; will this help, and if it will, then how can I set it using Installscript?
For InstallScript projects: To prevent the files in a particular Component from being removed during uninstall: 1-Select the Components view from within the Organization folder. 2-Select the component that contains the files you do not wish to remove during uninstall. 3-Change the "Uninstall" property in the right pane to a value of "No."
For MSI Projects: To prevent the files in a particular Component from being removed during uninstall: 1-Select the Components view from within the Organization folder. 2-Select the component that contains the files you do not wish to remove during uninstall. 3-Change the "Permanent" property in the right pane to a value of "Yes".