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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Action rule 'Check platform' does not detect Windows XP!
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
‎Nov 04, 2010
12:08 PM
Action rule 'Check platform' does not detect Windows XP!
Hi,
On the Set InstallAnywhere Variable action, I have set a rule using Check Platform to detect "Windows XP" and set the user magic variable if my platform is Windows XP.
I am using Windows XP SP3 and the variable does not get set. When I run the installer on XP it does not detect that I am using "Windows XP"!
Is this a bug in IA2010?
If I change the rule to be "Windows 7" and run on Windows 7 instead then it detects that platform just fine and sets the variable OK. Also I can successfully get other rules such as Check Architecture rule to work to check for 32bit/64bit etc.
Thanks.
On the Set InstallAnywhere Variable action, I have set a rule using Check Platform to detect "Windows XP" and set the user magic variable if my platform is Windows XP.
I am using Windows XP SP3 and the variable does not get set. When I run the installer on XP it does not detect that I am using "Windows XP"!
Is this a bug in IA2010?
If I change the rule to be "Windows 7" and run on Windows 7 instead then it detects that platform just fine and sets the variable OK. Also I can successfully get other rules such as Check Architecture rule to work to check for 32bit/64bit etc.
Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
02:55 PM
As IA is a Java-based installer tool, anything passes through Java, even platform detection (i.e. the detection code simply asks the running JVM which is the OS string code) (this for instance was a problem for older JVMs released before newer Windows OSes which falsely reported the OS to the most recent they knew at the time they were released). So my question are:
- do you bundle any VM, and if yes, which one is that?
- you said Windows XP SP 3 is not recognized, do you happen to know what platform your installer thinks it is on?
- do you bundle any VM, and if yes, which one is that?
- you said Windows XP SP 3 is not recognized, do you happen to know what platform your installer thinks it is on?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2010
05:52 AM
pv7721 wrote:
As IA is a Java-based installer tool, anything passes through Java, even platform detection (i.e. the detection code simply asks the running JVM which is the OS string code) (this for instance was a problem for older JVMs released before newer Windows OSes which falsely reported the OS to the most recent they knew at the time they were released). So my question are:
- do you bundle any VM, and if yes, which one is that?
- you said Windows XP SP 3 is not recognized, do you happen to know what platform your installer thinks it is on?
Hi Vlad,
Yes I bundle a VM on Windows - JRE 1.6.0.
From the install.log file, the installer thinks it is on the following platform:
os.name == Windows XP
os.arch == x86
os.version == 5.1 build 2600 Service Pack 3
So I cannot figure out why it is not detecting this.
It has to be a bug in IA, doesn't it?
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2010
08:11 AM
In the meantime, I have found a somewhat crude workaround.
Using the Check Platform rule, I can put Windows(All) in the "Perform on" list, and then put all other Windows variants (e.g. NT, 2000, 2003, Vista, 7) in the "Do Not Perform On" list.
This then detects at least that my Win XP is a version of Windows!
Of course, if it doesn't correctly detect other variants such as 2000, 2003 etc then the workaround is flawed as the action would also be performed on those platforms.
Using the Check Platform rule, I can put Windows(All) in the "Perform on" list, and then put all other Windows variants (e.g. NT, 2000, 2003, Vista, 7) in the "Do Not Perform On" list.
This then detects at least that my Win XP is a version of Windows!
Of course, if it doesn't correctly detect other variants such as 2000, 2003 etc then the workaround is flawed as the action would also be performed on those platforms.