Jump to content

Recommended Posts

Posted

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"

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
×
×
  • Create New...