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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 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.
any help would be appreciated.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎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.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)