Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, November 21, 2024 
 
How to Repair a Missing SendSLX Button using an AutoIt Script  
Description:  After upgrading 500 clients from 6.2.4 to 6.2.6 most everyone lost their SendSLX button. i had to release a quick fix. I know Sage had provided a .bat fix that doesn't always do the trick so this is what i came up with. Users can repair it themselves by running the EXE from the network using the following AutoIt code compiled to exe.

Category:  SalesLogix Administration
Author:  David Henry
Submitted:  4/25/2007
   
Stats: 
Article has been read 17203 times

Rating: - 5.0 out of 5 by 3 users
 

fiogf49gjkf0d
How to Repair a Missing SendSLX Button using an AutoIt Script

After upgrading 500 clients from 6.2.4 to 6.2.6 most everyone lost their SendSLX button. i had to release a quick fix. I know Sage had provided a .bat fix that doesn't always do the trick so this is what i came up with. Users can repair it themselves by running the EXE from the network using the following AutoIt code compiled to exe.


The AutoIt Script

All you need to do is install AutoIt v3, paste the following code in a new .au3 file, modify the $Password variable, and modify the $file (Logfile) path. Build as EXE and distribute a link to the users after testing.

;
; AutoIt Version: 3.0
; Language: English
; Platform: WinXP - SMART\Wholesale image
; Author: David Henry (david.henry@ncmc.com)
; Orig. Build 10-17-2006
; EXE location: 
;
; Script Function:
; To repair missing SENDSLX button
; Copies slmn.dll to system32 folder, closes Outlook, re-registers Outlook integration dll's.
; Version 1.0 10-17-2006 Original Build
; Version 1.1 3-1-2007 Elevated privlages only for registering DLL steps. Otherwise script may fail.
; Added version number to log file.

; Verify only one copy of the script is running at a time.
$g_szVersion = "RepairMissingSENDSLXbutton"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)

;Variables
$SalesLogixDirectory = @ProgramFilesDir & "\SalesLogix\"
$Password = "LocalAdminPassword"
$MissingSendSLXVersion = "Version 1.1"

; Prompt the user to run the script - use a Yes/No prompt
$answer = MsgBox(4, "Repair Missing SENDSLX button", "This script will attempt to repair your missing SENDSLX button. PLEASE CLOSE OUTLOOK AND SALESLOGIX BEFORE CLICKING YES! Are you ready?")
If $answer = 7 Then
Exit
EndIf

FileCopy( $SalesLogixDirectory & "slmn.dll", @SystemDir)
ProcessClose( "Outlook.exe")
ProcessClose( "SalesLogix.exe")
Sleep( 3000)
RunAsSet( "Administrator", @ComputerName, $Password, 1)
RunWait(@ComSpec & " /c regsvr32 slxab32.dll", $SalesLogixDirectory, @SW_MAXIMIZE)
RunWait(@ComSpec & " /c regsvr32 slmn.dll", $SalesLogixDirectory, @SW_MAXIMIZE)
RunAsSet()

; Instruct user to see if SENDSLX button is available.
MsgBox(4096, "Complete!", "Open Outlook and check to see if you are now able to see the SENDSLX button. If not, REBOOT and try running the script again.")

$file = FileOpen("\\servername\sharename\Script_Logs\Repair Missing SENDSLX button.txt", 9)
If $file = 1 Then
FileWrite($file, @MON & "/" & @MDAY & "/" & @YEAR & @TAB & @HOUR & ":" & @MIN & @TAB & $MissingSendSLXVersion & @TAB & @ComputerName & @TAB & @UserName & @CRLF)
FileClose($file)
EndIf

Exit



About AutoIt

AutoIt is a freeware Windows automation language. It can be used to script most simple Windows-based tasks (great for PC rollouts or home automation). AutoIt can be downloaded from it's website http://www.autoitscript.com/

 

About the Author

David Henry
AO Smith

fjrigjwwe9r1SiteUser:UserBio
fiogf49gjkf0d


View online profile for David Henry
 

[ back to top] [ send to a friend]  

Rate This Article you must log-in to rate articles. [login here] 
 
Please log in to rate article.
 

Comments & Discussion you must log-in to add comments. [login here] 
 
Author Article Comments and Discussion
Ryan Farley

slxdeveloper.com Site Administrator
slxdeveloper.com Forum Top 10 Poster!

Re: How to Repair a Missing SendSLX Button using an AutoIt Script
Posted: 4/25/2007 2:37:50 PM
fiogf49gjkf0d
FYI,

This article was converted with David's permission from the following forum thread: http://www.slxdeveloper.com/forum.aspx?forumid=5003&postid=7596

Ryan Farley
slxdeveloper.com
 
Bob (RJ)Ledger

slxdeveloper.com Forum Top 10 Poster!

Re: How to Repair a Missing SendSLX Button using an AutoIt Script
Posted: 4/25/2007 5:41:36 PM
fiogf49gjkf0d
Slick.
--
rjl
 
 

       Visit the slxdeveloper.com Community Forums!
Not finding the information you need here? Try the forums! Get help from others in the community, share your expertise, get what you need from the slxdeveloper.com community. Go to the forums...
 



 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/21/2024 4:24:50 PM