Hi all,
A few days ago I encountered a problem with my installers and I can't figure out what to do and I have finally decided to admit defeat and ask for help, and this seems like the best place to start.
The installers in question are designed to install 5 pre-requesits (Adobe Reader 9, SQL Native Client, .Net Framework, VS2010 Redist, and Crystal Reports - in that order). Up until a few months ago the pre-requesite installers were run from folders and sub-folders within the main installer folder. (That made a lot more sense in my head... basically the CD looked a little like this MyCD\MyInstallerFolder\Pre-requesites\Adobe; MyCD\MyInstallerFolder\Pre-requesites\SQL;... etc)
A few months ago it was decided that the pre-requesites should be placed in a different location on the CD (justification being that there are a few copies of some of them (Namely the .Net Framework) which has caused the CD to grow out of control, so we finally did some cleaning up and had the pre-requisites in a sepearate folder so that everything could access them)
The new location was "MyCD\MyExternals\" and in Advananced Installer the folder location for the pre-requesites was set to "..\MyExternals\".
So... a few months pass without any problems, the pre-requesites all work fine, everyone is happy... Until a few days ago, when the QA team start testing again. Everytime they test they run the installers and usually don't experience any problems, but that day they experienced an error whilst trying to install the pre-requesites.
"This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a calid Windows Installer package."
So I set about fixing the problem for them, and after an hour or so realised that it was due to the change in location. (It was a slow day. ) specifically the addition of "..\NewLocation".
Has anyone else ever experienced a problem with using "..\" to locate pre-requesites? I am certain that it is because of this file path as changing it back to the old one works fine, but then when I try again with the new path it doesn't (I have also tried various different paths with ".." to go up a folder at different stages and none of them work on this machine)
The part that I am most confused about by all of this, is that we have gone a good couple of months without this causing any problems on other machines/operating systems/environments (every time the QA team install again they do so on a fresh machine so there isn't any chance that we just hadn't experienced it before because the pre-requesites weren't installed, this is how they always install the pre-requesites) and probably more worrying is the fact that Adobe Reader installs fine.
I have tested multiple times and tried many different things but I can't get it to work using the new location. Normally I would have moved on from this by now, it's quite a small problem for this installer, but having spent so much time on it, added to the fact that we built the new CD structure around this location for the pre-requisites, I just can't forget about it.
Thanks in advance.
Edit: I originally put the incorrect ordering down and forgot to mention what might be usefull information: The two pre-requesites that fail are SQL and Crystal (Acrobat worked fine straight away, then in order to test I installed SQL manually (running the installer that should run from my installer), then ran it again, and it failed at Crystal (I checked the others in between and they had installed correctly)) and both of these are .msi files, the others (that work) are all .exe.