Wait I will explain in detail
If your requirement is just to find the end users machine architecture
either run a custom java code or run a execute command utility in IA found under Add Action --> General Tab,
The command to run in uname -m, it will return u i386 which is 32 bit,
To find out more about various OS check out this link for determining the OS architecture, http://www.stata.com/support/faqs/win/64bit.html
Regarding running this write a Java class which would determine the OS version and subsiquently the OS architecture. Store the result in a IA variable
Code snippet
<>
class MyCustomCode(InstallerProxy ip) extends IACustomCode
{
/* Run the logic to store the OS tye in a variable say MyOS */
ip.substitute("OS_TYP", MyOS) // here the value of MyOS determined earlier is stored in a IA valiable $OS_TYP$
}
Inside the Install action under ur IDE you can add a compare installanywhere action to install any specific file or folder
e.g $OS_TYP$ equals 64bit then install else move ahead.
I do not have an IDE infront of me right now otherwise I would have sent you some screen shots.
If you are still face the issue I will create a sample project for you...for this logic
****************************************************************************************************
********************************************************************************************************
I am trying to download the enterprise version.
But there is still one doubt which is - the panel "get user input" is for the end user not for the developer (who is using InstallAnywhere for making installer e.g. me).
Can u throw some light on it please???
Actually I want InstallAnywehre to prompt me (developer) for taking the input as 32 bit or 64 bit at the time of building the project as shown below as per the requirement of the end user.
No comments:
Post a Comment