Page 1 of 1 1
Topic Options
#185145 - 2008-02-07 10:10 PM KixForms from login script
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
ok heres the question of the day from me. What do i need to do to beable to run kixforms from a login script.

Do i need to register the dll on every machine that uses that login script?

Top
#185146 - 2008-02-07 10:17 PM Re: KixForms from login script [Re: duo]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11555
Loc: CA
Yes it needs to be registered on every system that you want to use it on.


[I moved your post to the basic forum as you did not have any script to discuss which is what the Advanced Scripting forum is for, NTDOC]

Top
#185147 - 2008-02-07 10:18 PM Re: KixForms from login script [Re: NTDOC]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
sorry about that
Top
#185173 - 2008-02-08 03:26 PM Re: KixForms from login script [Re: duo]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
How about these questions

1) a way to see if the dll is already registered
2) a way to see if a drive is already mapped
need an answer on both of these if possible

Top
#185174 - 2008-02-08 03:44 PM Re: KixForms from login script [Re: duo]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6343
Loc: Stuttgart, Germany
1. create the kixforms object - check for success (it is registered) - continue (other checks might come here)

There is a lengthy but still interesting discussion about this here or here

2. Umm ... errr ... different ways to skin that cat. Easiest would be to check for existance of the drive letter if they are consistent, aka

 Code:
if exist("H:\") 
    ;no need to map H: again 
endif
_________________________



Top
#185178 - 2008-02-08 04:51 PM Re: KixForms from login script [Re: Jochen]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
Beautiful
Top
#185179 - 2008-02-08 05:00 PM Re: KixForms from login script [Re: duo]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1836
Loc: Hilversum, The Netherlands
Also, the last versions of KiXforms also have an msi installer, you could use GPO to deploy the msi, then have the loginscript off course still check if it's available and registered \:\)
Top
#185181 - 2008-02-08 05:05 PM Re: KixForms from login script [Re: duo]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
can you do if not exist?
Top
#185182 - 2008-02-08 05:09 PM Re: KixForms from login script [Re: duo]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1836
Loc: Hilversum, The Netherlands
Yes
 Code:
If NOT Exist("C:\Windows\system32\kixforms.dll")
  ? "It doesn't exist"
EndIf

Top
#185183 - 2008-02-08 05:23 PM Re: KixForms from login script [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4242
Loc: New Jersey
Mere presence of the DLL doesn't mean it's registered!

Also, explicit references to the Windows folder is not a good idea, specifically because it won't work across multple platforms and locales.

The %WINDIR% variable points to the drive and root folder where the ACTIVELY RUNNING copy of windows has been installed.

Change the Exist command to
Not Exist('%WINDIR%\system32\kixforms.dll')

Even this isn't foolproof, since x64 versions of XP and Vista would place the kixforms.dll in a SysWOW64 folder instead of the System32 folder... This would require a bit more logic. The point is - hard coding system paths is not a good idea!

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

Top
#185184 - 2008-02-08 05:46 PM Re: KixForms from login script [Re: Glenn Barnas]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
Thanks for the insight Glen, you guys missed the point entirely of why i asked about the if not exist portion...at any rate its time to kick this up a notch and give out my shotty programming!
Top
#185186 - 2008-02-08 05:53 PM Re: KixForms from login script [Re: duo]
duo Offline
Getting the hang of it

Registered: 2007-10-25
Posts: 61
Loc: iowa
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=185185
Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 37 anonymous users online.
Newest Members
FlyHorton, mschwj, Barchester, Evgeniy, kvanacker
17498 Registered Users

Generated in 0.099 seconds in which 0.072 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