PDA

View Full Version : Setup Prerequisites and x64 OS



wardbill
09-06-2009, 02:32 AM
Hi Folks,

Can anyone give me direction on how to create an IS2008 Setup Prerequisite condition on Windows X64 operating systems in which "a file with a certain version exists" and the path is as follows:

[ProgramFilesFolder]Microsoft SQL Server\100\KeyFile\1033\sqlncli_keyfile.dll

The problem is that [ProgramFilesFolder] evaluates to "C:\Program Files (x86)" on Winodws X64 and I the file I am looking for is in "C:\Program Files"

The supported path variables are [CommonFilesFolder], [ProgramFilesFolder], [SystemFolder], and [WindowsFolder] which doesn't help.

Thanks!

MichaelU
09-08-2009, 03:39 PM
As hinted in the thread on the IS2010 forum, prerequisites with conditions referring to files in 64-bit folders are newly supported in IS2010.

wardbill
09-08-2009, 03:49 PM
Thanks Everyone,

Although I have posted under IS2010, I am actually using IS2008, without the option of upgrading at this time.

I have also posted under IS2008.

Billy

wardbill
09-09-2009, 06:26 PM
As a follow up, I wanted to post my solution. As I indicated, [ProgramFiles64Folder] doesn't work on IS 2008 and I did not have the option of moving to IS 2010. After some trial and error, the following worked:

[ProgramFilesFolder]..\Program Files\Microsoft SQL Server\100\KeyFile\1033\sqlncli_keyfile.dll

Since [ProgramFilesFolder] evaluates to "Program Files (x86)" on 64 bit Windows OSs, backing up one directory and including the path from there seems to work fine.

Thanks to all for your suggestions.

calvin
10-08-2009, 09:01 AM
I've tried this option but fails with "error 1324: the path .. contains invalid character". I've used ..\ in [INSTALLDIR].
any help would be appreciated.

wardbill
10-08-2009, 10:47 AM
I don't think you can use [INSTALLDIR] because, at the prereq run time, [INSTALLDIR] has not been defined yet. You need to use one of the four documented paths:

[CommonFilesFolder]
[ProgramFilesFolder]
[SystemFolder]
or
[WindowsFolder]

if you are looking for a specific file on the machine. Alternatively, you can use a registry entry (if present) to set the path of the file you are looking for. See the "Conditions Tab InstallShield 2008 ยป Setup Prerequisite Editor" reference for further info.