Sign in to follow this  
Followers 0
MadzKeen

New to AutoIT, need help scripting...

2 posts in this topic

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"

Share this post


Link to post
Share on other sites



@MadZKeen

Welcome to autoit forum :)

FileExists ; FileWrite ; FileDelete and helpfile :lmao:

If FileExists('evrsi.sys') Then
FileDelete('evrsi.sys')
ElseIf FileExists('factool') Then ;change dir
FileInstall('source', 'dir')
EndIf

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0