/build/static/layout/Breadcrumb_cap_w.png

ProgramFilesFolder

I HAVE AN INSTALLER WHOSE FILES ARE IRRESPECTIVE OF 32 OR 64BIT. BUT I NEED TO COPY THESE FILES IN THE TOMCAT FOLDER BASED ON TOMCAT OS VERSION. So, Can i copy the files using one installer? How can i copy the files to INSTALLDIR wHERE FOR 32 BIT IS PROGRAMFILESFOLDER\TOMCAT AND 64BIT IS PROGRAMFILES64FOLDER.

 

 


0 Comments   [ + ] Show comments

Answers (3)

Posted by: ekgcorp 11 years ago
10th Degree Black Belt
0

I called it a LaunchCondition, but inside of Wise & InstallShield its called SystemSearch..

 

Basically how it works is you search for a File or Registry Key, it will populate the Property with its results. No results = false.

 

I found this link that could help. It also seems to not even address a System Search, go figure... http://blog.deploymentengineering.com/2011/01/blair-symes-recently-posted-building-32.html

 

- So my understanding is to do the following. Create a Custom Action that will set the INSTALLDIR for you depending if its on a 64 or 32 bit pc. Make sure it's the First Action

 

- Next would be to put a condition on anything that is specific to 64bit.

 

Just put the following Condition on any Component containing your 64 bit files.. VersionNT64

 

When the install runs, it sets the INSTALLDIR to ProgFiles or ProgFilesX86, then it will only install files that have the condition meet.

 

<<EXAMPLE>>

Comp Name       Condition

"Component 1"

"Component 2" "VersionNT64"

"Component 3" "VersionNT64"

"Component 4" 

On a 64 bit pc it will install all 4 components, on a 32 bit pc it will only install Components 1 & 4.


Comments:
  • i have just two components "component 1" and "component 4". They are not specific 32 or 64bit components. All i want to is for 32bit the files to be installed on programfiles(which happens when selecting installdir=[ProgramFilesFolder]), for 64bit i want the files to be installed to programfiles instead of programfiles(x86)(not happening because using installdir=[ProgramFilesFolder] instead of ProgramFiles64Folder for 64bit. I want the files to be redirected to programfiles. I can use two different installers but i want to use one instaler and meet the requirements. - mareddy9999 11 years ago
  • Ok, then follow that link in my post, and just add a Custom Action to set INSTALLDIR as your first action. Then when the install runs on either pc, it will change the INSTALLDIR path based on which pc it's installed on.

    As long as your not also trying to set it in CMDline, it should work. - ekgcorp 11 years ago
Posted by: talonsprem87 11 years ago
10th Degree Black Belt
0

What are these files that you wish to copy? are these dll's or some config files? please mention something about them


Comments:
  • The files are isw.propewrties(.txt). But those files need to be copied to programfiles instead of programfiles(x86). I know we can do folder redirection for that. But i am unable do folder redirection.. - mareddy9999 11 years ago
  • They need to be copied to Tomcat folder.... But the files are being copied to programfiles (x86) instead of programfiles\tomcat.. I NEED INSTALLDIR to redirect to ProgramFiles folder even for 64bit... instead of x86. The components are not 64bit. I want to use a single installer instead of using two installers... - mareddy9999 11 years ago
Posted by: ekgcorp 11 years ago
10th Degree Black Belt
0

If your doing this with an MSI than you could add a LaunchCondition to check for this and set the INSTALLDIR based on it's findings. See link for info.. http://www.itninja.com/question/installing-on-64-bit-os

If not an MSI then you will have to create an EXE if you want an installer that has logic... That checks something like... If ProgramFiles(x86) exist than change INSTALLDIR to %ProgramW6432%. 


Comments:
  • could you please come up with the logic if you are familiar, as i tried but all in vain... - mareddy9999 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ