Jump to content

Silent Installation / Update of my AutoIt script

Recommended Posts


I have an AutoIt Script that has to be installed (and updated) manually with a "setup.exe" right now. I would like to add the option of a "silent installation". Currently the following steps are done when installing:

1. there is a self-extracting EXE created with "Squeeze" that calls an AutoItScript after everything is extracted
2. Read a value from the registry with RegRead (to know where my script need to be installed)
3. create some directories
4. copy the extracted files to the appropiate directories
5. create a shortcut on the desktop with FileCreateShortcut

I don't want to use "Squeeze" anymore since this tool is outdated and discontinued. So only actions 2 - 5 are needed.

I would like to have it like this:
- only AutoIt is used
- if the setup.exe (this should be an AutoIt script) is started with "/silent" then it should perform the silent installation
- if the setup.exe is started without "/silent" it should perfrom the "normal" installation with display's and MessageBox'es

Is there a "best practices" how to do that? Maybe someone else done this already and there are examples?

Thanks for helping

Link to post
Share on other sites

Personally I prefer InnoSetup using the Quick Start Pack, its free and really simple to use and it also includes uninstaller so that it's packaged correctly so that users can install/uninstall.  You can use either of these silent switches with InnoSetup:

  • /silent - Includes progress Bar
  • /verysilent - No progressbar



Edited by Subz
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By abberration
      Software Installer
      Version: 2.0
      It's been been a long year, but I finally got some time to rework this project. I re-wrote everything from scratch because the old version was getting too complicated with so many options and sub-menus. This new version is much easier to use and I have been testing for a few days and it seems very stable.
      For those who are new to this software, it helps you install software silently/unattended. This new version tries to determine the silent switch automatically. You can also re-organize the order in which the software installs by dragging & dropping them in the listview. It now supports creating profiles and checks for missing software (and automatically unchecks them, so it does not attempt to install non-existent software). One feature I included was because I have seen several people on Youtube talk about disliking bright screens at night. So, now you can choose from a few color theme (half of them are dark). I dabbled a bit more into GDI+ to draw a few things and show my logo with a transparent background (hint: I'm not good at GDI+).
      Under the Help menu, you will find a User Guide, which goes through most of it's features. I included a new icon if you want to use when you compile the script (in the Assets > Misc folder).
      If you have questions, comments or suggestions, all are welcome. Hope you enjoy!
      Here it is in action:

  • Create New...