views:

23

answers:

1

Hi Friends

I am developing an 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 file 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 DLL's and OCX files, copying into the System32 folder has been done using Installscript.

Due to this during uninstallation the installed file are getting removed from System32 due this other dependent application which require same set of DLL's 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 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 PERMENANT or SHARED will this going to help if yes then how to set it using Installscript??

+1  A: 

I have 2 ideas 1)I think you can use SHARED option as this wont remove the files while uninstallation.

2)Also when i was facing similar issue , what i did was putting all the required files in the installation directory itself so that while uninstalling only the installed files will be removed.(I know this is not a best solution)

(NOTE:I have worked on Install shield some 6 years back and so remember only certain things)

Raghuram
Thanks Raghu for the help :) .I have checked the SHARED option, still the problem persists....
Chetan