Page 1 of 1 1
Topic Options
#63651 - 2002-03-07 06:36 PM Problem with Lotus Notes install script
WeakLink Offline
Fresh Scripter

Registered: 2002-03-06
Posts: 37
Loc: San Diego
code:
 
Hi All.

I have this script that I'm trying to use to run a silent install of Lotus Notes. With WIN98 I receive an msg stating "out of evironment space", but with NT and W2K I don't receive an error msg, it just doesn't install. I tested silent install w/o scripts, and it works just fine, so it must be the script.

Here's the bat that calls the script:

:START
IF EXIST "x:\nodomain.script" goto END
IF "%OS%"=="Windows_NT" GOTO WINNT
IF "%OS%"=="W2K" GOTO WINNT
IF "%OS%"=="XP" GOTO WINNT

:WIN9X
SET KIXDIR=%WINDIR%\KIX
SET KIXSCRIPT=\\test01dc\netlogon\notes.kix
SET KIXVER=KIX362
GOTO COPY

:COPY
IF NOT EXIST %KIXDIR%\NUL MKDIR %KIXDIR%
IF EXIST %KIXDIR%\%KIXVER% GOTO KIXCOPIED
COPY %0\..\KIX32.EXE %KIXDIR% /Y >NUL
COPY %0\..\KX16.DLL %KIXDIR% /Y >NUL
COPY %0\..\KX32.DLL %KIXDIR% /Y >NUL
COPY %0\..\KX95.DLL %KIXDIR% /Y >NUL
:: ECHO. >%KIXDIR%\%KIXVER%

:KIXCOPIED
IF NOT EXIST %KIXDIR%\KIX32.EXE COPY %0\..\KIX32.EXE %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX16.DLL COPY %0\..\KX16.DLL %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX32.DLL COPY %0\..\KX32.DLL %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX95.DLL COPY %0\..\KX95.DLL %KIXDIR% >NUL
GOTO LOGON

IF NOT EXIST %0 GOTO NOEXT
%KIXDIR%\KIX32.EXE %0 $kixscript="%KIXDIR%\KIX32.EXE %KIXSCRIPT%"
GOTO LOGON

:LOGON
\\test01dc\netlogon\KIX32.EXE %kixscript%
GOTO END

:NOEXT
%KIXDIR%\KIX32.EXE %0.BAT $kixscript="%KIXDIR%\KIX32.EXE %KIXSCRIPT%"
GOTO END

:WINNT
\\test01dc\netlogon\KIX32.EXE \\test01dc\netlogon\notes.kix

:END

Here's the kix script:

; Unattended Check and install of Lotus Notes
If SetConsole("hide")
EndIf

;-----------------------------------------------------------------------------------------------
;PC Inventory Script to gather basic user, software and system data, redirects to \\TEST01DC\Common\noteslog
;-----------------------------------------------------------------------------------------------

; Tag Script Start Time and date
$StartTime = @TIME

; ------------- Redirect output ----------------
If RedirectOutput("\\test01dc\Common\noteslog\@wksta.log", 1) = 0
? "Opened '@wksta.log' at " + @TIME ?
EndIf


; ----------- Get Available (Free) Diskspace on C: -------------
$DiskSpace = GetDiskSpace("C:\")

; ----------- Determine CPU Speed ------------------
$mhz=ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0","~MHz")

; ----------- Determine Drive Mappings --------------
Use list
If @ERROR=0
WriteLine(1, "[Connections]")
While $X<>"End of list."
$X=ReadLine(2)
WriteLine(1, $X)
Loop
; ------------ Display Variables and redirect to @wksta.@domain.log -------------
:write
? "--------------------------------------------"
? "System Information"
? "--------------------------------------------"
? "DOMAIN = " @DOMAIN
? "LOGON_SERVER = " @LSERVER
? "WORKSTATION = " @WKSTA
? "USERID = " @USERID
? "FULLNAME = " @FULLNAME
? "PRIVILIDGE = " @PRIV
? "IPADDRESS = " @IPADDRESS0
? "MAC_ADDRESS = " @ADDRESS
? "LOCATION = " $LOCATION
? "OS_VERSION = " $os
? "CPU_SPEED(MHz) = " $mhz
? "FREE_C:\(Bytes) = " $DiskSpace
? "KIX_VERSION = " @KIX
? "KIX_Directory = " @STARTDIR
? "DRIVE_MAPPING = " $X
? "LAST_LOGIN = " @DATE " " @TIME
? ""
;------------ Check to see if Notes is already installed --------------
$Notes="\Lotus\Notes\notes.exe"

If EXIST ($Notes)
Goto End
If $DiskSpace <= 500000
Goto End

Else
MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
Shell "%COMSPEC% /e:1024 /c \\test02dc\notes\drivec.exe"
EndIf

:End

Any help you can give will be much appreciated.

Thx in advance.


Top
#63652 - 2002-03-12 02:23 AM Re: Problem with Lotus Notes install script
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

We see some ENDIF problems with your script.

Our check with our tool kixstrip400.exe returns
quote:


; Unattended Check and install of Lotus Notes
IF SetConsole("hide")
ENDIF

;-----------------------------------------------------------------------------------------------
;PC Inventory Script to gather basic user, software and system data, redirects to \\TEST01DC\Common\noteslog
;-----------------------------------------------------------------------------------------------

; Tag Script Start Time and date
$starttime = @time

; ------------- Redirect output ----------------
IF RedirectOutput("\\test01dc\Common\noteslog\@wksta.log", 1) = 0
? "Opened '@wksta.log' at " + @time ?
ENDIF

; ----------- Get Available (Free) Diskspace on C: -------------
$diskspace = GetDiskSpace("C:\")

; ----------- Determine CPU Speed ------------------
$mhz=ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0","~MHz")

; ----------- Determine Drive Mappings --------------
USE LIST
IF @error=0
WriteLine(1, "[Connections]")
WHILE $x@lt;@gt;"End of list."
$x=ReadLine(2)
WriteLine(1, $x)
LOOP
; ------------ Display Variables and redirect to @wksta.@domain.log -------------
:write
? "--------------------------------------------"
? "System Information"
? "--------------------------------------------"
? "DOMAIN = " @domain
? "LOGON_SERVER = " @lserver
? "WORKSTATION = " @wksta
? "USERID = " @userid
? "FULLNAME = " @fullname
? "PRIVILIDGE = " @priv
? "IPADDRESS = " @ipaddress0
? "MAC_ADDRESS = " @address
? "LOCATION = " $location
? "OS_VERSION = " $os
? "CPU_SPEED(MHz) = " $mhz
? "FREE_C:\(Bytes) = " $diskspace
? "KIX_VERSION = " @kix
? "KIX_Directory = " @startdir
? "DRIVE_MAPPING = " $x
? "LAST_LOGIN = " @date " " @time
? ""
;------------ Check to see if Notes is already installed --------------
$notes="\Lotus\Notes\notes.exe"

IF EXIST ($notes)
GOTO End
IF $diskspace @lt;= 500000
GOTO End

ELSE
MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
SHELL "%COMSPEC% /e:1024 /c \\test02dc\notes\drivec.exe"
ENDIF

:end

;($begin)
;
; mon 11-mar-2002 05:23:43 (kix 4.00 vs 3.01e)
;
;Informative KIXSTRIP: input=68 output=68 skip=0
;
;Warning KIXSTRIP: 2 errors in block structure(s). missing statement(s).
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; -ERROR- - if:else:endif [5:1:3]
; - select:case:endselect [0:0:0]
; - while:loop [1:1]
;Warning KIXSTRIP: some lines contains errors or possible errors.
;Informative KIXSTRIP: 6 block_structures found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: 2 labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 2 GOTO
;Informative KIXSTRIP: 1 SHELL
;Informative KIXSTRIP: 1 USE
;
;($end)


Before modifying some remarks:
[list]
  • code:
     ; ----------- Determine Drive Mappings --------------
    USE LIST
    IF @error=0
    WriteLine(1, "[Connections]")
    WHILE $x @lt;@gt; "End of list."
    $x=ReadLine(2)
    WriteLine(1, $x)
    LOOP
    ENDIF

    looks very confusion.
    (1) where are you opening both files?
    (2) are you trying to read the output from kixtart call USE list
  • System Information part contains all kind of variable which aren't
    defined in specified script f.e. $os
  • code:
    <pre>
    IF EXIST ($notes)
    GOTO End
    IF $diskspace @lt;= 500000
    GOTO End

    ELSE
    MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
    SHELL "%COMSPEC% /e:1024 /c \\test02dc\notes\drivec.exe"
    ENDIF

    </pre>

    looks also very confusion. we our version.

    Our version of your script for ideas.
    code:
    <pre>
    ; Unattended Check and install of Lotus Notes
    IF SetConsole("hide")
    ENDIF

    ;-----------------------------------------------------------------------------------------------
    ;PC Inventory Script to gather basic user, software and system data, redirects to \\TEST01DC\Common\noteslog
    ;-----------------------------------------------------------------------------------------------

    ; Tag Script Start Time and date
    $starttime = @time

    ; ------------- Redirect output ----------------
    IF RedirectOutput("\\test01dc\Common\noteslog\@wksta.log",1) = 0
    ? "Opened '@wksta.log' at " + @time ?
    ENDIF

    ; ----------- Get Available (Free) Diskspace on C: -------------
    $diskspace = GetDiskSpace("C:\")

    ; ----------- Determine CPU Speed ------------------
    $mhz=ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0","~MHz")

    ; ----------- Determine Drive Mappings --------------
    USE LIST
    IF @error=0
    WriteLine(1, "[Connections]")
    WHILE $x @lt;@gt; "End of list."
    $x=ReadLine(2)
    WriteLine(1, $x)
    LOOP
    ENDIF
    ; ------------ Display Variables and redirect to @wksta.@domain.log -------------
    :write
    ? "--------------------------------------------"
    ? "System Information"
    ? "--------------------------------------------"
    ? "DOMAIN = " @domain
    ? "LOGON_SERVER = " @lserver
    ? "WORKSTATION = " @wksta
    ? "USERID = " @userid
    ? "FULLNAME = " @fullname
    ? "PRIVILIDGE = " @priv
    ? "IPADDRESS = " @ipaddress0
    ? "MAC_ADDRESS = " @address
    ? "LOCATION = " $location
    ? "OS_VERSION = " $os
    ? "CPU_SPEED(MHz) = " $mhz
    ? "FREE_C:\(Bytes) = " $diskspace
    ? "KIX_VERSION = " @kix
    ? "KIX_Directory = " @startdir
    ? "DRIVE_MAPPING = " $x
    ? "LAST_LOGIN = " @date " " @time
    ? ""
    ;------------ Check to see if Notes is already installed --------------
    $notes="\Lotus\Notes\notes.exe"

    IF EXIST($notes) = 0
    IF $diskspace @gt; 500000
    MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
    SHELL "%comspec% /e:2048 /c \\test02dc\notes\drivec.exe"
    ELSE
    MessageBox("Installation of Lotus Notes not possible.")
    ENDIF
    ENDIF
    :end

    ;($begin)
    ;
    ; mon 11-mar-2002 05:26:50 (kix 4.00 vs 3.01e)
    ;
    ;Informative KIXSTRIP: no errors found (input=98 output=71 skip=27).
    ;
    ;Informative KIXSTRIP: 6 block_structures found.
    ;Informative KIXSTRIP: no UDF's found.
    ;Informative KIXSTRIP: 2 labels found.
    ;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
    ;Informative KIXSTRIP: 2 GOTO
    ;Informative KIXSTRIP: 1 SHELL
    ;Informative KIXSTRIP: 1 USE
    ;
    ;($end)
    </pre>

    greetings.
    _________________________
    email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

  • Top
    #63653 - 2002-03-15 06:16 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    Thanks MCA for your suggestions.

    I tried running the revised script, and it still didn't work. Could it be the version of KIX that I'm running? I am running 3.62. I tried upgrading to 2001 but for some reason, KIX would still be running in the background after the script executed.

    I also modified the script to:

    SHELL "%comspec% /e:2048 /c \\test02dc\inclient$\Setup.exe -s -f1 setup.iss"

    That is the true location of the file, the previous was just a shortcut.

    Top
    #63654 - 2002-03-17 11:27 PM Re: Problem with Lotus Notes install script
    MCA Offline
    KiX Supporter
    *****

    Registered: 2000-04-28
    Posts: 5152
    Loc: Netherlands, EU
    Dear,

    Some additional remarks:
    - we see as server names "test01dc" + "test02dc"
    - normally our script should create some output. to prevent possible problems
    we ask you to replace your logon script with a test version.

    Put following kixtart script in your "netlogon" directory
    • test.kix
      code:
       CLS
      COLOR C+/N
      AT (1,1) " "
      IF RedirectOutput("c:\net-info.txt")
      ENDIF
      ? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/script starting."
      ? "-"
      ? "-curdir: "+LCASE(@curdir)
      ? "-scriptdir: "+LCASE(@scriptdir)
      ? "-startdir: "+LCASE(@startdir)
      ? "-"
      ? "-userid: "+LCASE(@userid)+"/"+LCASE(@wuserid)
      ? "-user priv: "+LCASE(@priv)
      ? "-version: inwin="+@inwin+"/dos="+@dos
      ? "-"
      $nul=MessageBox("KiXtart test script is running.","KiXtart info @kix",64,15)
      ? "-"
      ? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/3.01e script ending."
      ? "-"
      IF RedirectOutput("")
      ENDIF
      EXIT

    • logon.bat
      code:
      @echo off
      @echo -start bat- >>c:\net-info.txt
      net use >>c:\net-info.txt
      set >>c:\net-info.txt
      dir \\server\netlogon /o:n /s >>c:\net-info.txt
      @echo -start kix32 test- >>c:\net-info.txt
      \\server\netlogon\kix32.exe \\server\netlogon\test.kix
      @echo -stop bat- >>c:\net-info.txt
      @echo off

    please put the output of file "c:\net-info.txt" on the board and replace
    "\\server\netlogon" with proper "\\server" name.
    greetings.
    _________________________
    email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

    Top
    #63655 - 2002-03-18 05:55 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    Hi MCA.

    Here is the results from the script:

    -start bat-
    New connections will be remembered.

    There are no entries in the list.

    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\home_user\Application Data
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=TEST03WK1
    ComSpec=C:\WINNT\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\
    LOGONSERVER=\\TEST02DC
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=\\TEST02DC\NETLOGON;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\pavfn\platinum\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0703
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=C:\DOCUME~1\HOME_U~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\HOME_U~1\LOCALS~1\Temp
    USERDOMAIN=SYSTEMS-TEST
    USERNAME=home_user
    USERPROFILE=C:\Documents and Settings\home_user
    windir=C:\WINNT
    Volume in drive \\test01dc\netlogon has no label.
    Volume Serial Number is 843C-3335

    Directory of \\test01dc\netlogon

    11/02/2001 03:14p .
    11/02/2001 03:14p ..
    09/11/2000 04:35p 12,911 getlsrv.exe
    09/13/2000 05:47p 28,672 GetOsVer.exe
    11/24/1999 04:50p 163,840 Kix32.exe
    01/18/2002 09:00p 204,800 kix32.exenew
    09/01/1999 03:00p 38,896 Kixplay.exe
    11/19/2001 04:00a 38,896 kixplay.exenew
    03/04/2002 02:39p 76,374 kixstrip363.exe
    11/05/2001 08:59a 59 Kixtart.ini
    09/01/1999 03:00p 47,104 Kx16.dll
    11/19/2001 04:00a 47,104 kx16.dllnew
    09/01/1999 03:00p 32,768 Kx32.dll
    11/19/2001 04:00a 49,152 KX32.dllnew
    09/01/1999 03:00p 36,864 Kx95.dll
    11/19/2001 04:00a 49,152 KX95.dllnew
    11/19/2001 04:00a 73,728 kxrpc.exenew
    03/18/2002 07:53a 413 logon.bat
    03/11/2002 02:46p 2,690 Macro.bat
    11/03/1997 09:10p 277,776 Msvcrt.dll
    03/04/2002 02:39p 1,434 NETWORK.bat
    03/11/2002 02:39p 1,335 notes.bat
    03/08/2002 09:23a 558 notes.batold
    03/15/2002 09:01a 2,231 Notes.kix
    03/11/2002 02:45p 1,992 Notes.kixold
    03/12/2002 03:07p 2,209 Notes1.kix
    03/01/2002 01:29p old scripts
    02/28/2002 09:04a 850 panda.bat
    03/05/2002 08:50a 281 PAVLOG.BAT
    03/05/2002 08:50a 313 PMGR.INI
    03/05/2002 08:47a 903 PMGRD000.BAT
    03/01/2002 03:47p 169 Script1.bat
    03/06/2002 11:45a 167 Script2.bat
    03/12/2002 07:03a 7,398 SHOW_ERR
    03/18/2002 07:54a 653 test.kix
    11/07/2001 10:41a test-scripts
    05/01/1997 12:14p 22,528 winset.exe
    01/18/2002 08:59p 204,800 wkix32.exe
    03/11/2002 08:38a XNET
    34 File(s) 1,429,020 bytes

    Directory of \\test01dc\netlogon\test-scripts

    11/15/2001 08:01a .
    11/15/2001 08:01a ..
    11/15/2001 11:33a 3,307 Inv.kix
    11/24/1999 04:50p 163,840 KIX32.EXE
    03/04/2002 02:39p 76,374 kixstrip363.exe
    01/18/2002 07:46a 2,648 Macro.bat
    11/15/2001 11:41a 1,407 NETWORK.bat
    03/04/2002 07:14a 2,099 Notes.kix
    03/01/2002 01:23p samples
    6 File(s) 249,675 bytes

    Directory of \\test01dc\netlogon\test-scripts\samples

    03/01/2002 01:28p .
    03/01/2002 01:28p ..
    11/15/2001 09:13a 363 drivemapping.kix
    11/15/2001 09:56a 336 drv.kix
    11/07/2001 10:41a 3,591 General Logon Script For Domain Users.txt
    11/07/2001 02:37p 196 gscript.bat
    11/07/2001 02:45p 3,604 gscript.kix
    11/15/2001 11:33a 3,307 Inv.kix
    11/15/2001 09:16a 1,497 mapcheck.kix
    11/13/2001 03:10p 1,036 mapping.bat
    11/13/2001 03:04p 1,042 NETWORK.bat
    11/07/2001 09:55a 1,966 NT account creation script.txt
    11/07/2001 09:56a 1,549 NT Install.txt
    11/07/2001 09:59a 912 RAS backup script.txt
    11/15/2001 08:13a 4,391 results.kix
    11/13/2001 03:16p 719 shares.kix
    11/07/2001 09:57a 818 shares.txt
    11/15/2001 07:40a 139 test.bat
    16 File(s) 25,466 bytes

    Directory of \\test01dc\netlogon\old scripts

    03/01/2002 01:37p .
    03/01/2002 01:37p ..
    07/10/2001 11:59a 155 admin.bat
    11/01/2001 02:33p 184 ietest.bat
    11/01/2001 10:00a 1,281 install_IE.bat
    11/01/2001 02:34p 530 install_IE.kix
    11/01/2001 02:43p 338 Lmhosts.QAMR
    11/15/2001 11:41a 1,407 NETWORK.bat
    08/24/2001 05:10p 4,390 Network.kix
    7 File(s) 8,285 bytes

    Directory of \\test01dc\netlogon\XNET

    03/11/2002 08:44a .
    03/11/2002 08:44a ..
    10/08/1997 10:21a 1,109 xinst.cmd
    05/15/1996 09:02a 44,544 XNET.EXE
    2 File(s) 45,653 bytes

    Total Files Listed:
    65 File(s) 1,758,099 bytes
    14 Dir(s) 2,655,780,864 bytes free
    -start kix32 test-
    -stop bat-

    Thanks for your help!
    Top
    #63656 - 2002-03-19 06:19 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    Success!!!

    The install finally worked. It looks like my messagebox was causing the script not to execute the install. Now I need one more thing:
    When I run the script with a PC that has less than the 500MB required, it still tries to run the install. Any suggestions?

    code:
     

    ; Unattended Check and install of Lotus Notes
    IF SetConsole("hide")
    ENDIF

    ;-----------------------------------------------------------------------------------------------
    ;PC Inventory Script to gather basic user, software and system data, redirects to \\TEST01DC\Common\noteslog
    ;-----------------------------------------------------------------------------------------------

    ; Tag Script Start Time
    $StartTime = @TIME

    ; ------------- Redirect output ----------------
    IF RedirectOutput("\\test01dc\Common\noteslog\@wksta.log", 1) = 0
    ? "Opened '@wksta.log' at " + @TIME ?
    ENDIF


    ; ----------- Get Available (Free) Diskspace on C: -------------
    $DiskSpace = GetDiskSpace("C:\")

    ; ----------- Determine CPU Speed ------------------
    $mhz=ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0","~MHz")

    ; ----------- Determine Drive Mappings --------------
    USE LIST
    IF @ERROR=0
    WriteLine(1, "[Connections]")
    While $x @lt;@gt; "End of list."
    $X=ReadLine(2)
    WriteLine(1, $X)
    LOOP
    ENDIF
    ; ------------ Display Variables and redirect to @wksta.@domain.log -------------
    :write
    ? "--------------------------------------------"
    ? "System Information"
    ? "--------------------------------------------"
    ? "DOMAIN = " @DOMAIN
    ? "LOGON_SERVER = " @LSERVER
    ? "WORKSTATION = " @WKSTA
    ? "USERID = " @USERID
    ? "FULLNAME = " @FULLNAME
    ? "PRIVILIDGE = " @PRIV
    ? "IPADDRESS = " @IPADDRESS0
    ? "MAC_ADDRESS = " @ADDRESS
    ? "LOCATION = " $LOCATION
    ? "OS_VERSION = " $os
    ? "CPU_SPEED(MHz) = " $mhz
    ? "FREE_C:\(Bytes) = " $DiskSpace
    ? "KIX_VERSION = " @KIX
    ? "KIX_Directory = " @STARTDIR
    ? "DRIVE_MAPPING = " $X
    ? "LAST_LOGIN = " @DATE " " @TIME
    ? ""
    ;------------ Check to see if Notes is already installed --------------
    $Notes="c:\Lotus\Notes\notes.exe"

    IF EXIST ($Notes) = 0
    IF $DiskSpace @gt; 500000
    IF $DiskSpace > 500000
    ; MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
    SHELL "%comspec% /e:2048 /c \\test02dc\inclient$\Setup.exe -s -f1 setup.iss"
    ELSE
    ; MessageBox("Installation of Lotus Notes is not possible, please contact x5260.")
    ENDIF
    ENDIF

    :End


    Top
    #63657 - 2002-03-19 06:23 PM Re: Problem with Lotus Notes install script
    Les Offline
    KiX Master
    *****

    Registered: 2001-06-11
    Posts: 12734
    Loc: fortfrances.on.ca
    What's this extra IF?

    IF $DiskSpace @gt; 500000
    _________________________
    Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

    Top
    #63658 - 2002-03-19 07:47 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    That was a recommendation from MCA.

    USE LISTIF @ERROR=0 WriteLine(1, "[Connections]") While $x @lt;@gt; "End of list." $X=ReadLine(2) WriteLine(1, $X) LOOP

    Plus IF $DiskSpace @gt; 500000

    I am not familiar with the command, but I figured it was worth a shot. I tried running the script with the IF $DiskSpace > 500000 and with the above statement, and neither worked.

    Top
    #63659 - 2002-03-19 08:59 PM Re: Problem with Lotus Notes install script
    Les Offline
    KiX Master
    *****

    Registered: 2001-06-11
    Posts: 12734
    Loc: fortfrances.on.ca
    Those are typos in MCA's code. Ampersand gt; and ampersand lt; are html code for < and >. If you count the number of IFs and ENDIFs, they don't match. I suspect that to be your problem.

    What is the value returned by the following?

    $DiskSpace = GetDiskSpace("C:\")
    _________________________
    Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

    Top
    #63660 - 2002-03-19 10:18 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    Thanks for clarifying the typos.

    FREE_C:\(Bytes) = 35840

    Top
    #63661 - 2002-03-19 10:58 PM Re: Problem with Lotus Notes install script
    Les Offline
    KiX Master
    *****

    Registered: 2001-06-11
    Posts: 12734
    Loc: fortfrances.on.ca
    So then... is all well in KiXland?
    _________________________
    Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

    Top
    #63662 - 2002-03-19 11:27 PM Re: Problem with Lotus Notes install script
    WeakLink Offline
    Fresh Scripter

    Registered: 2002-03-06
    Posts: 37
    Loc: San Diego
    Yes, all is well!!!!! Thank you all very very much for your support!!!!!
    Top
    #63663 - 2002-03-25 05:55 AM Re: Problem with Lotus Notes install script
    MCA Offline
    KiX Supporter
    *****

    Registered: 2000-04-28
    Posts: 5152
    Loc: Netherlands, EU
    Dear Les,

    Thanks for your comment. Indeed we had to need the html notation for the ">"
    symbol, but it was a typos.
    greetings.
    _________________________
    email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

    Top
    Page 1 of 1 1


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

    Who's Online
    0 registered and 293 anonymous users online.
    Newest Members
    Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
    17886 Registered Users

    Generated in 0.066 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

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