#199142 - 2010-07-29 01:50 PM
Running Kix on Windows 7 64bit...
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
....cant seem to get it working at all. Any one else having problems with Kix(4.61) and running on Windows 7 (64bit) ??
|
Top
|
|
|
|
#199144 - 2010-07-29 04:30 PM
Re: Running Kix on Windows 7 64bit...
[Re: Allen]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Ok , Ive got the script running on XP & Vista. When I try to run it on Windows 7 - its starts coming back with errors in the scripting - but its runs fine on the other platforms.
I started chaning the script around - and then I thought - why should I need to do this , when I know the code is perfect.
|
Top
|
|
|
|
#199147 - 2010-07-29 05:24 PM
Re: Running Kix on Windows 7 64bit...
[Re: Richard H.]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Thanks Guys....sorry I thought it might of been something a bit more simple.
Ok , heres the error when the script it ran on a Windows 7 (64-bit) os. I havent test a 32-bit Os of Windows 7.
This is the code located in this part of the kix file....
Function DrawForms() 39 40 ;Form 41 $Form = CreateObject("Kixtart.Form") 42 $Form.Caption = "Generali Login Script Version 1.0" 43 $Form.Width = 500 44 $Form.Height = 550 45 $Form.MinimizeBox = False 46 $Form.Cursor = 11
|
Top
|
|
|
|
#199152 - 2010-07-29 05:57 PM
Re: Running Kix on Windows 7 64bit...
[Re: Glenn Barnas]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Hi Glenn
Thats for that. Yeah I have defined False as 0. Ive changed it to zero and it moves on now , but gives a different error.
I have the kixforms.dll running on the pc - but had problems trying to register it on windows7(x64bit) ?
I tried manually registering it with regsrv32.exe
Edited by Fergieman (2010-07-29 06:00 PM)
|
Top
|
|
|
|
#199155 - 2010-07-29 06:23 PM
Re: Running Kix on Windows 7 64bit...
[Re: Glenn Barnas]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Hi Glenn , my bad there - but the script it now throwing up more problems. Ive got a feeling its to do with the kixforms.dll. Do you add "C:\program files\itcg\bin" to your path environment ?
|
Top
|
|
|
|
#199156 - 2010-07-29 06:51 PM
Re: Running Kix on Windows 7 64bit...
[Re: Glenn Barnas]
|
eriqjaffe
Hey THIS is FUN
Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
|
If you defined $False = 0 somewhere, then you should be using $False and not just "False". Where are you putting the DLL file? When we use our Customize product (which installs some support tools, the KF DLL, and does some other basic setup tasks), it creates a C:\Program Files\ITCG\Bin folder, copies the DLL there, and registers it from that location. We don't put it anywhere in the C:\Windows folder structure, and have had no problems on Vista or Win-7. Internally, about 96% of our workstations are now 64b versions of Win-7. Since Vista, the Windows folder structure has had different security settings (that make more sense) and putting the DLL there might be an issue. Glenn We use the KiXforms MSI package, which can be deployed via group policy.
It's easy enough to check if KiXforms has been registered properly. Here's what we use (although it's not a login script):
; Attempt to initiate a test form
$frmRoot = CreateObject("Kixtart.Form")
if @ERROR
; try installing kixforms.dll from MIS and try the test form again
shell "msiexec /i "+@SCRIPTDIR+"\KiXforms.msi /qb /norestart"
$frmRoot = CreateObject("Kixtart.Form")
if @ERROR
; notify the user that the dll failed to register and exit.
$ = MessageBox("Unable to register KiXForms.DLL, please contact the MIS department.","Error!",16,0)
quit
endif
endif
; continue on with the script
Edited by eriqjaffe (2010-07-29 06:53 PM)
|
Top
|
|
|
|
#199167 - 2010-07-30 10:46 AM
Re: Running Kix on Windows 7 64bit...
[Re: Glenn Barnas]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Thanks for the....
Im now getting the following message :
ERROR: Error In Expression.! Script: C:\I_Forms.kix Line: 79
The code at line 79 looks like this :
78 ;ClockTimer 79 $Timer = $Form.Timer(600, 0, 0, 15, 15) 80 $Timer.OnTimer = "UpdateClock()"
This thing has me preplexed - Its been running fine on all other o/s for the last year !!
Any help would be great !
|
Top
|
|
|
|
#199170 - 2010-07-30 02:04 PM
Re: Running Kix on Windows 7 64bit...
[Re: Richard H.]
|
Fergieman
Getting the hang of it
Registered: 2010-02-25
Posts: 58
Loc: Ireland
|
Ok - I setup a Windows 7 32-bit desktop - and the script runs perfect on that.
Its obviously just a 64bit problem.
|
Top
|
|
|
|
#199171 - 2010-07-30 05:09 PM
Re: Running Kix on Windows 7 64bit...
[Re: Fergieman]
|
Glenn Barnas
KiX Supporter
Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
|
If it's a "64-bit problem", it's likely with your code or configuration, as nearly all of our workstations are X64 Windows 7. Our login script runs fine, as well as the many Kix-based applications we've developed. "tsAdm" is a complex, KixForms based utility to administer scheduled tasks, and it consists of about 4300 lines of code, and "sit" - a system interrogation/management tool, with all of its loaded modules exceeds 12000 lines of code. Both work on Vista and Windows 7 64-bit platforms.
The code takes the x64 environment into account, especially when referencing files in the Windows folder or manipulating registry values. Registering applications also requires special attention.
Take a close look at the README file in the Kix download, as it contains some information about this, including updates to the SetOption parameter and a discussion of the Alternate reg/file View "reflection" concept. I think they'll help you with your 64b issues.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 369 anonymous users online.
|
|
|