Question

I am using InstallShield Spring 2012. Currently, my company uses a VC redistributable prerequisite for their installer. The way the condition was set up originally, did not cover all of our users issues and so it had to be changed. Since InstallShield handles prerequisite conditions with AND operators, I had a rough time because I needed to point to different registry keys on x64 and x86. This forced me to create 2 prerequisites for the same VC redistributable. Upon doing so, I ran into a new problem where the VC redist file was being duplicated in our installer, thus increasing the size of the installer by 4.3MB. To fix the size issue, I gave both prerequisites the same GUID. This does work, although I am now getting an error upon building.

The error I am seeing is (GUID and file paths below are not actual ones in use): ISDEV : error -1007: Cannot copy source 'C:\vc9\vcredist_x86_vc9sp1.exe' to target 'C:\MyApplication\temp\ISSetupPrerequisites{L4530M2D-G0U7-9437-326H-14 PDGA5R257T}\vcredist_x86_vc9sp1.exe'

Even with the error, everything seems to work fine. My guess is that InstallShield is placing the VC redist under that GUID folder and when it wants to copy it again to that same location for the second prereq, it is running into a problem, which possibly might be due to read only or folder already being in use.

Is there some way around this so that I do not get this error upon building? If someone knows of a better approach to any of the issues I faced in this post, please share. Thanks.

Was it helpful?

Solution

I definitely was overlooking this. I did not have to have separate prereqs for x86 and x64. To fix this, I just had it point to x86 paths, no matter what OS was being used. This solved the issue. THanks Michael.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top