This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Setup Prerequisites and x64 OS
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Sep 06, 2009
02:32 AM
Setup Prerequisites and x64 OS
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!
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!
(5) Replies
‎Sep 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.
[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.
‎Oct 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.
[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.