Jump to content

First scipt


Recommended Posts

I've just created my first script to install some software and I just wanted to check that my routine to move some icons around is the best way of doing it (and I'm not going to delete my whole start menu!)

; Delete & Tidy Shortcuts

; Delete extra links

FileDelete( @StartMenuDir & "\Programs\CCleaner\Uninstall CCleaner.lnk" )

FileDelete( @StartMenuDir & "\Programs\CCleaner\CCleaner Homepage.*" )

; Check for a Utils folder and then create one if not found

If Not FileExists( @StartMenuDir & "\Programs\Utils" ) Then DirCreate ( @StartMenuDir & "\Programs\Utils" )

; Move the main program link and then delete the original folder

FileMove(@StartMenuDir & "\Programs\CCleaner\CCleaner.lnk" , @StartMenuDir & "\Programs\Utils" )

DirRemove(@StartMenuDir & "\Programs\CCleaner\" )

Also, is it possible to combine the AutoIt compiled exe with any 3rd party exe (such as an installer) into one file? I saw the FileInstall option but what would the destination be for an installer file?

Link to comment
Share on other sites

Also, is it possible to combine the AutoIt compiled exe with any 3rd party exe (such as an installer) into one file? I saw the FileInstall option but what would the destination be for an installer file?

Maybe something like this:

FileInstall("C:\setup.exe", @TempDir & "\setup.exe")
RunWait(@TempDir & "\setup.exe")
FileDelete(@TempDir & "\setup.exe")

Read Autoit helpfile and it's examples carefully.

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...