Page 1 of 1 1
Topic Options
#199142 - 2010-07-29 01:50 PM Running Kix on Windows 7 64bit...
Fergieman Offline
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
#199143 - 2010-07-29 02:12 PM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
It works. You are going to have to be more specific describing your problem.
Top
#199144 - 2010-07-29 04:30 PM Re: Running Kix on Windows 7 64bit... [Re: Allen]
Fergieman Offline
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
#199145 - 2010-07-29 04:51 PM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
When Allen said you need to be more specific what he meant was please post your code and the errors, otherwise we are left speculating what possible errors you might have.

There are a couuple of really big hurdles when moving up to modern versions of Windows, especially if they are 64 bit. This is not an issue with KiXtart per-se.

The most common problems are that you now have two repositories for binaries and registry - a 32-bit version and a 64-bit version. Only one is presented to the running program's environment which can make things pretty tricky.

Take a look at the manual with regard to the SetOption() entries for Wow64fileredirection and WOW64AlternateRegView. Also with Windows 7 some of the old locations for user files have changed, and others are present but inaccessible.

If the above doesn't steer you in the right direction then post your code and the errors you are getting and we'll see what we can do.

Top
#199147 - 2010-07-29 05:24 PM Re: Running Kix on Windows 7 64bit... [Re: Richard H.]
Fergieman Offline
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
#199150 - 2010-07-29 05:41 PM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
What's "False"?? That doesn't look legit.

Have you tried 0 (zero), or defining $False = Not 1 and using $False?

Is KixForms.dll registered?

Are you using the same version of KixForms.dll on all systems?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199152 - 2010-07-29 05:57 PM Re: Running Kix on Windows 7 64bit... [Re: Glenn Barnas]
Fergieman Offline
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
#199154 - 2010-07-29 06:11 PM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
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
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199155 - 2010-07-29 06:23 PM Re: Running Kix on Windows 7 64bit... [Re: Glenn Barnas]
Fergieman Offline
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 Offline
Hey THIS is FUN

Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
 Originally Posted By: Glenn Barnas
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):

 Code:
; 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
#199157 - 2010-07-29 08:07 PM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
The path that I specified is unique to our tools - "ITCG" represents our company name - change it accordingly (unless you're installing our tools!).

We do add the BIN folder to the system path, but (my mistake) the DLL is in the ITCG folder and not the Bin subfolder. Thus, the DLL is not in the PATH. It would not need to be, since its location is registered when you run RegSvr32.

I've found that if UAC is enabled, running as the local administrator (or elevating to the local admin) is often necessary to make things work properly. There are also 32 and 64 bit versions of regsvr32! Make sure you're using the right one. You might want to review this link from Microsoft's MSDN forum for related info.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199167 - 2010-07-30 10:46 AM Re: Running Kix on Windows 7 64bit... [Re: Glenn Barnas]
Fergieman Offline
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
#199168 - 2010-07-30 11:48 AM Re: Running Kix on Windows 7 64bit... [Re: Fergieman]
BradV Online   content
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
I think you might need to take several steps back. Take kixfroms out of the equation. Write a small script that just maps a drive and printer. See if that runs. If so, then try adding kixforms in with a simple window that just displays a success message from the mappings. Let's see if we can narrow down the source of the errors.
Top
#199169 - 2010-07-30 01:19 PM Re: Running Kix on Windows 7 64bit... [Re: BradV]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
What Brad said.

Cut the script down to the smallest possible that exhibits the error then post it here so we can see if we have the same issues.

BTW, are you doing any error checking after CreateObject() to make sure that the form gets created OK?

Top
#199170 - 2010-07-30 02:04 PM Re: Running Kix on Windows 7 64bit... [Re: Richard H.]
Fergieman Offline
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 Administrator Offline
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! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.07 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org