duo
(Getting the hang of it)
2008-02-07 10:10 PM
KixForms from login script

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?


NTDOCAdministrator
(KiX Master)
2008-02-07 10:17 PM
Re: KixForms from login script

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]


duo
(Getting the hang of it)
2008-02-07 10:18 PM
Re: KixForms from login script

sorry about that

duo
(Getting the hang of it)
2008-02-08 03:26 PM
Re: KixForms from login script

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


JochenAdministrator
(KiX Supporter)
2008-02-08 03:44 PM
Re: KixForms from login script

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


duo
(Getting the hang of it)
2008-02-08 04:51 PM
Re: KixForms from login script

Beautiful

Arend_
(MM club member)
2008-02-08 05:00 PM
Re: KixForms from login script

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 \:\)

duo
(Getting the hang of it)
2008-02-08 05:05 PM
Re: KixForms from login script

can you do if not exist?

Arend_
(MM club member)
2008-02-08 05:09 PM
Re: KixForms from login script

Yes
 Code:
If NOT Exist("C:\Windows\system32\kixforms.dll")
  ? "It doesn't exist"
EndIf


Glenn BarnasAdministrator
(KiX Supporter)
2008-02-08 05:23 PM
Re: KixForms from login script

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


duo
(Getting the hang of it)
2008-02-08 05:46 PM
Re: KixForms from login script

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!

duo
(Getting the hang of it)
2008-02-08 05:53 PM
Re: KixForms from login script

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=185185