Sign in to follow this  
Followers 0
rendez2k

First scipt

2 posts in this topic

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?

Share this post


Link to post
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.

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