Page 2 of 3 <123>
Topic Options
#71033 - 2002-10-24 08:41 AM Re: UpdateKiXForms() - comments
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Not sure what you mean "optional" for Source. It is something that should be modified by the user before running. How else did you have in mind?

As far as Destination....sorry. Good Windows usage dictates that .DLL files MUST go into the SYSTEM/SYSTEM32 folders and SHOULD NOT be installed elsewhere. I strongly disagree about installing them elsewhere.

Top
#71034 - 2002-10-24 09:27 AM Re: UpdateKiXForms() - comments
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, it does not matter where your dll is. and what comes to good practise, dll which is specific for some use, is expected to be in the correct dir, not in sys.

what comes to source, you have it now as temp.
maybe user wants to set it...

having optional input parameter for source would ease up using it with different sources.

[ 24. October 2002, 10:01: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#71035 - 2002-10-24 03:20 PM Re: UpdateKiXForms() - comments
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I have to agree with Les. I'd also put the DLLs into SYSTEM for Windows 9x and SYSTEM32 for Windows NT/2000/XP.

Additionally, since I'm running all my scripts with SETOPTION('NoVarsInStrings','ON') it is natural to me now to properly use quotes (') and use the double qoute (") only when enclosing filenames.

I also remember that Ruud mentioned that support for variables/macros insise quotes might be dropped completely in a future version of KiXtart. Thus, my scritps try to be future-proof.

BYW, I think that vars/macros inside strings look ugly.
_________________________
There are two types of vessels, submarines and targets.

Top
#71036 - 2002-10-24 03:31 PM Re: UpdateKiXForms() - comments
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well well.
I'm not sure about that support thing...
I remember he told about it and I got the impression that dropping all that is very unlikely to happen.

anyway, the quotes, I happen to have some scripts using execute (like all the scripts including kixforms).
those can't be even completely removed in the most complex structures.
without great pain, I mean...
_________________________
!

download KiXnet

Top
#71037 - 2002-10-24 05:53 PM Re: UpdateKiXForms() - comments
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doc,

One comment (one thing that I learned from MCA [Smile] )..

I would replace:

code:
$Destination="%windir%\system32\"

with:

code:
$Destination=$windir+"\system32\"

Where $windir is:
code:
 $windir = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion","SystemRoot")

There is my 2¢..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71038 - 2002-10-24 10:05 PM Re: UpdateKiXForms() - comments
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Kent,

Yes, I could read reg for that, but then that would add a couple more lines, as Windows 9x would not store in the same place, etc...
And as far as MCA on that point, It was my recommendation many times in the past to do Reg reads for locations. MCAs was the <>0 <>1 etc..
However, in this case I'm not sure it is the best or not. The environment "should" mimick the reg for that. If the environment is not, then that workstation is going to be having other pathing problems beyond your script as well.

Sorry Lonkero, I've been using/working/fixing NT since 3.1 days. .DLL files should not go anywhere else. I'm not saying you can't, I'm saying that they should not go anywhere else except the %windir%\system(32) folders.

2000 now has a dllcache folder under system32 which puts back .DLL files into the SYSTEM32 folder if a user deletes them.

As far as optional, I'm still not sure what you're meaning. I put it as C:\TEMP because I used c:\temp for testing, but in your own useage I would expect one to put in their location which may be %NETLOGON% folder. (Windows 9x would not find it that way though).

How or what more specifically are you alluding to? Maybe show a code example of what you're thinking of. Sorry, but I'm drawing a blank as to what you're asking for.

Top
#71039 - 2002-10-24 10:59 PM Re: UpdateKiXForms() - comments
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doc,

Yeah.. I guess I could agree, but it would add five lines and the variable could be re-used throughout the script..

code:
 IF (@inwin = 1)
$windir = READVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion","SystemRoot")
ELSE
$windir = READVALUE("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion","SystemRoot")
ENDIF

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71040 - 2002-10-25 04:05 AM Re: UpdateKiXForms() - comments
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Lonkero, Les, Kent...

Have updated the code again. This time it has variables you can supply Lonkero, Has names as Les asked for, and has Registry reads that Kent suggested.

You guys done picking on me yet? [Razz]

Love ya... Actually found this a very enlightening post. Learned some more "finer" points of coding in KiX.

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=12&t=000285#000000

Top
#71041 - 2002-10-25 07:40 AM Re: UpdateKiXForms() - comments
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes.

really nice, even [Cool]
_________________________
!

download KiXnet

Top
#71042 - 2002-10-28 04:40 PM Re: UpdateKiXForms() - comments
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doc,

One more comment.. [Razz]

You are correct in copying down the KIXFORMS.DLL to the %windir%\system32 and needing Admin access.. If you created a %Systemdrive%\Scripts folder which I have done for the KIX32.EXE updates and modified MCA's code for.. Couldn't this be done for KIXFORMS.DLL too?

The reason for the location outside of %windir% is that we ran into a situation where a locked down user could not write to even %windir% much less %windir%\system32.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71043 - 2002-10-28 04:43 PM Re: UpdateKiXForms() - comments
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If I may answer for DOC...

Admin rights would be needed to register the DLL so where it is copied (based on rights) becomes a moot point.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71044 - 2002-10-28 04:45 PM Re: UpdateKiXForms() - comments
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I was thinking that too.. But, you know the submit was pretty quick here..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71045 - 2002-10-28 04:48 PM Re: UpdateKiXForms() - comments
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
how about an admin script that would:
check file version
scheduletask() a job to unregister it (if necessary)
push the file to the client PC
scheduletask() a job to register it

possibly provide a open/readline method for listing client PC names
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#71046 - 2002-10-28 04:52 PM Re: UpdateKiXForms() - comments
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Rad,
WMI remote command may be another way. Aren't you the king of WMI?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71047 - 2002-10-28 04:54 PM Re: UpdateKiXForms() - comments
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I wouldn't say King...

I'm just clever... There are people here that actually KNOW what they are doing. [Wink]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#71048 - 2002-10-28 06:03 PM Re: UpdateKiXForms() - comments
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Les,

You are right, here is the error:

quote:

RegSvr32
DllRegisterServer in c:\scripts\kixforms.dll failed.
Return code was: 0x8002801c

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71049 - 2002-10-28 06:58 PM Re: UpdateKiXForms() - comments
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no no,
  no NO!

poweruser.
_________________________
!

download KiXnet

Top
#71050 - 2002-10-28 08:11 PM Re: UpdateKiXForms() - comments
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... I won't challenge that.

PowerUser ~ Admin
5.5 of one ~ half dozen of the other...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71051 - 2002-12-04 06:48 PM Re: UpdateKiXForms() - comments
Grasshopper Offline
Fresh Scripter

Registered: 2002-11-29
Posts: 15
Loc: London, UK
Just what I'm looking for, but just wanted to ask quickly, will this install and register the dll without admin rights ? I'm guessing 'no' !
_________________________
Just Another Aussie on Tour !

Top
#71052 - 2002-12-04 07:14 PM Re: UpdateKiXForms() - comments
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, can the kixforms be loaded instead of registering????
_________________________
!

download KiXnet

Top
Page 2 of 3 <123>


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

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.041 seconds in which 0.017 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