Jump to content

Does the world need my XML driven installer? =)


PryGuy

Recommended Posts

Hello all!

I've been messing with the AutoIt 3.1.1.72 Beta and discovered that it supports the good old XML!!! It allowed me to make a postinstall utility that uses data from the XML file. All the programs you wish to install appear as checkboxes (see the attached pic). In the XML file you may make the programs hidden in the list (but they will be installed anyway) or make the checkbox unchecked by default. Here's the sample XML file:

<?xml version="1.0" encoding="UTF-8" ?>

<Settings>

<Property>

<Name>Microsoft .NET Framework</Name>

<Path>NetFramework</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Microsoft Windows Media Player</Name>

<Path>WMP</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Apple iTunes</Name>

<Path>iTunes</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>AutoIt</Name>

<Path>AutoIt</Path>

<Check>0</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Alcohol 120%</Name>

<Path>Alcohol120</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Mozilla Firefox</Name>

<Path>Firefox</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Java Runtime</Name>

<Path>JRE</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Adobe Acrobat Reader</Name>

<Path>Acrobat</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>DivX Codecs</Name>

<Path>Codecs</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Additional Themes</Name>

<Path>Themes</Path>

<Check>1</Check>

<Hide>0</Hide>

</Property>

<Property>

<Name>Finalizing Installation...</Name>

<Path>Remove</Path>

<Check>1</Check>

<Hide>1</Hide>

</Property>

</Settings>

I think it's pretty easy to understand what it's about: the <Name> parameter defines the name of the program, the <Path> parameter sets the path to the SETUP.CMD (which runs hidden during the installation by the way) file that is in the X:\SOFTWARE\path\SETUP.CMD where X is the CD drive letter and "path" is the name of the folder inside of the SOFTWARE directory. Yet, if there are more than 10 programs in the list, the installer becomes two ot three or more column...

The question is, do you need this XML installer and if you do what do you think I should add there? And suggest a name for this utility please! :)

post-42222-1125830461_thumb.png

Edited by PryGuy
Link to comment
Share on other sites


Wow, yet another post-install wizard, and this one looks nice n' easy. I'm a big AutoIt fan and would love to learn more about this before giving it a spin with my Windows 2000 installs. Can you post a working sample with integration instructions?

Edited by blinkdt
Link to comment
Share on other sites

looks excellent. ive been looking for a good alternative to RunOnce and WPI thats not gonna take me hours to setup. also just wondering if it would be possible to customize the style of the box using the xml. eg putting a background image in, a Timer before install starts.

Edited by ScubaSteve
Link to comment
Share on other sites

Although the AutoIt-script might need some work, maybe you could post it anyway ?? ;)

I really like the idea of the project, as it would be quite easy to use, with no extra overhead of unnecessary functions (or at least one would be able to strip them from the script if needed...)

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

    • No registered users viewing this page.
×
×
  • Create New...