Dmitry_Bond
06-12-2012, 11:12 AM
Hi.
We are investigating question if we could migrate to new InstallShield version from the very old one (v.11).
But I have faced very strange problem - the DLL function call which was working fine in the InstallShield 11 is working in a wrong way in InstallShield 2012 Professional!
In particular here is function header from IS script:
prototype string InstUtil.GetPropertyValue(byval string, byval string, byval number);
Here is a piece of code of IS script:
sz = GetPropertyValue("DiskSize,mb", svResult, -1);
diskCapacity = StrToNumDef(sz, -1);
In the log file generated by DLL I can see:
174037.024 [P3344|INFO] GetPropertyValue("DiskSize,mb", "C:", -1)
174037.024 [P3344|INFO] GetPropertyValue: Result="42939"
But the debug message from InstallShield 2012 script is showing this:
---------------------------
SW Server 2010.2 - InstallShield Wizard
DEBUG: DiskSize,Mb = ㈴㌹9嵽2, capacity=-1
---------------------------
As you can see - the "42939" string was screwed up to the "㈴㌹9嵽2".
So, for sure function was called and it was returned correct result value.
But the InstallShield 2012 was screwed up value somewhere inside. :-(
Can you see any reasons - WHY?!
Regards,
Dmitry.
We are investigating question if we could migrate to new InstallShield version from the very old one (v.11).
But I have faced very strange problem - the DLL function call which was working fine in the InstallShield 11 is working in a wrong way in InstallShield 2012 Professional!
In particular here is function header from IS script:
prototype string InstUtil.GetPropertyValue(byval string, byval string, byval number);
Here is a piece of code of IS script:
sz = GetPropertyValue("DiskSize,mb", svResult, -1);
diskCapacity = StrToNumDef(sz, -1);
In the log file generated by DLL I can see:
174037.024 [P3344|INFO] GetPropertyValue("DiskSize,mb", "C:", -1)
174037.024 [P3344|INFO] GetPropertyValue: Result="42939"
But the debug message from InstallShield 2012 script is showing this:
---------------------------
SW Server 2010.2 - InstallShield Wizard
DEBUG: DiskSize,Mb = ㈴㌹9嵽2, capacity=-1
---------------------------
As you can see - the "42939" string was screwed up to the "㈴㌹9嵽2".
So, for sure function was called and it was returned correct result value.
But the InstallShield 2012 was screwed up value somewhere inside. :-(
Can you see any reasons - WHY?!
Regards,
Dmitry.