MadzKeen Posted January 20, 2009 Share Posted January 20, 2009 I'm trying to write a program that will update a client application. It first needs to check to see if the old license file is present and delete it. Second it need to check if the upgrade as already been done and call in a module that will run the installation part of it if it isn't already installed. I'm so lost so any help would be great. My code is list below: (It sucks I know.) 'Check to see if the old license file exist, if so delete it if "c:\evrsi.sys" True then delete "c:\evrsi.sys" Else if "C:\Windows\Program Files\Rockwell Software\Factory Talk Activation\ftactTool.exe" True then install FASU Else EndFunc ' Installing the Factory Talk Activation Software Module Install "C:\Windows\Program Files\Rockwell Software\Factory Talk Activation\ftactTool.exe" Link to comment Share on other sites More sharing options...
FireFox Posted January 20, 2009 Share Posted January 20, 2009 @MadZKeen Welcome to autoit forum FileExists ; FileWrite ; FileDelete and helpfile If FileExists('evrsi.sys') Then FileDelete('evrsi.sys') ElseIf FileExists('factool') Then ;change dir FileInstall('source', 'dir') EndIf Cheers, FireFox. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now