Jump to content

Lotus Notes Script Help


Guest lisvard
 Share

Recommended Posts

Hi,

I'm new to this forum, but have used AutoIt in the past. I created an executable to mass install Lotus Notes 5 on all our clients a few years back. My company would now like to do the same with V6, but I'm having problems. Can anyone help?

I found this example script on the web and it appears to work, but the install never starts. I get to the point where I have to manually hit next in the setup process. Is there any problems with the following code? Any help would be appreciated, thanks.

;Icon:

;##############################################################

;###Let's upgrade to 6.1.5 of Lotus Notes client software

;##############################################################

;##

;##Present user with dialog box, and ask if they'd like to upgrade now.

MsgBox, 4, Lotus Notes 6.5.1 Upgrade, This will upgrade your version of Lotus Notes to 6.5.1, and close your current session.\nAll your windows will be minimized, NOT closed.\nWould you like to continue?

IfMsgBox, NO, Goto, stopIT

;##############################################################

;**********Let's close the Notes client (if running)***********

;**********Let's minimize all application windows

;##############################################################

;SetTitleMatchMode, 2

WinKill, Lotus Notes

WinMinimizeAll

;##############################################################

;###Find the path to the Notes executable, and read as variable "notesPath"

;##############################################################

RegRead, notesPath, REG_SZ, HKEY_LOCAL_MACHINE, Software\\Lotus\\Notes, Path

MsgBox, 4, Lotus Notes Upgrade, Please DO NOT touch your keyboard or mouse during the installation\nprocess. This should not take more than 3-5 minutes.\nWould you like to continue?

IfMsgBox, NO, Goto, stopIT

;##############################################################

;###Run through the installation, and step user through

;###all the installation prompts

;##############################################################

Run, \\\\SCI_TCY_005\\Sciapps1\\Notes6\\setup.exe

WinWaitActive,Lotus Notes Installation

Sleep,500

Send,{Enter}

Sleep,500

Send,{Enter}

Sleep,500

Send,{Enter}

Sleep,500

Send,{Enter}

Sleep,500

Send,{Enter}

WinWaitActive,Lotus Notes Installation

Send,{Enter}

;##############################################################

;###Let user know installation is complete, and restart Notes

;##############################################################

MsgBox, 0, Lotus Notes Upgrade..., Installation completed successfully. We'll now restart your Lotus Notes client.\n Press OK to continue.

Run, %notesPath%notes.exe

;##############################################################

;###Exit if user clicks NO

;##############################################################

stopIT:

Exit

Link to comment
Share on other sites

Here's what I have so far. Getting error here. String missing closing quote

$__msgbox = MsgBox ( 4, 'Lotus Notes 6.5.1 Upgrade', 'This will upgrade your version of Lotus Notes to 6.5.1, and close your current session.' & @LF & 'All your windows will be minimized, NOT closed.' & @LF & 'Would you like to continue?' )

if NOT ( $__msgbox = 7 ) then

; <AUT2EXE VERSION: 3.0.102.0>

; ----------------------------------------------------------------------------

; <AUT2EXE INCLUDE-START: C:\Documents and Settings\ligonz\Desktop\LotusUpgrV6.au3>

; ----------------------------------------------------------------------------

; V2.64 to V3.0.100 (Version 1.0.6)

; Converted with AutoItV2toV3 [Version 1.0.6]

; © Copyright 2004 J-Paul Mesnage.

; Prologue ; should be renamed (?) and called somewhere if you are converting an include file

__init()

; End Prologue

;Icon:

;##############################################################

;###Let's upgrade to 6.1.5 of Lotus Notes client software

;##############################################################

;##

;##Present user with dialog box, and ask if they'd like to upgrade now.

$__msgbox = MsgBox ( 4, 'Lotus Notes 6.5.1 Upgrade', 'This will upgrade your version of Lotus Notes to 6.5.1, and close your current session.' & @LF & 'All your windows will be minimized, NOT closed.' & @LF & 'Would you like to continue?' )

if NOT ( $__msgbox = 7 ) then

;##############################################################

;**********Let's close the Notes client (if running)***********

;**********Let's minimize all application windows

;##############################################################

;SetTitleMatchMode, 2

WinKill ( 'Lotus Notes' )

WinMinimizeAll ( )

;##############################################################

;###Find the path to the Notes executable, and read as variable "notesPath"

;##############################################################

$notesPath = RegRead ( 'HKEY_LOCAL_MACHINE\' & 'Software\Lotus\Notes', 'Path' )

$__msgbox = MsgBox ( 4, 'Lotus Notes Upgrade', 'Please DO NOT touch your keyboard or mouse during the installation' & @LF & 'process. This should not take more than 3-5 minutes.' & @LF & 'Would you like to continue?' )

if NOT ( $__msgbox = 7 ) then

;##############################################################

;###Run through the installation, and step user through

;###all the installation prompts

;##############################################################

Run ( '\\SCI_TCY_005\Sciapps1\Notes6\setup.exe' )

WinWaitActive ( 'Lotus Notes Installation' )

Sleep ( 500 )

Send ( '{Enter}' )

Sleep ( 500 )

Send ( '{Enter}' )

Sleep ( 500 )

Send ( '{Enter}' )

Sleep ( 500 )

Send ( '{Enter}' )

Sleep ( 500 )

Send ( '{Enter}' )

WinWaitActive ( 'Lotus Notes Installation' )

Send ( '{Enter}' )

;##############################################################

;###Let user know installation is complete, and restart Notes

;##############################################################

$__msgbox = MsgBox ( 0, 'Lotus Notes Upgrade...', 'Installation completed successfully. We\'ll now restart your Lotus Notes client.' & @LF & ' Press OK to continue.' )

Run ( $notesPath & 'notes.exe' )

;##############################################################

;###Exit if user clicks NO

;##############################################################

endif ; stopIT

endif ; stopIT Force extra clausing

Exit

; Epilogue Extra Functions needed for Compatibility execution

; take care of possible redefinition if you are converting an include file

;

func __init () ; to define global variables needed

endfunc

; End Epilogue

; ----------------------------------------------------------------------------

; <AUT2EXE INCLUDE-END: C:\Documents and Settings\ligonz\Desktop\LotusUpgrV6.au3>

; ----------------------------------------------------------------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...