MAKEMSI can build MSI Installers from a command line or ANT/MAKE process etc
(see the "MM" batch file)
but here I will show you how to use Explorer.
Right click (with right side mouse button) on the
"TryMe.MM" file,
you should see two MAKEMSI build options as follows:
Choose one of these build options
(developer or production).
This should build a complete MSI without any other user
involvement.
Its possible you will not be able to build the samples from
the "program files" directory as not all users will have write access
here.
If you can't build anything then please copy the samples to a your
"My Documents" and try again.
If an empty console window comes up and nothing happens (a hang) then
I have seen this happen if you have installed ZoneAlarm ForceField 1.1
(Check Point software).
You can stop this product or uninstall it...
The build process generates and executes a script you may be
prompted for authorisation depending on what
software you have installed.
If prompted then you must approve the execution or the build will
not complete.
The build process will probably take about 30-60 seconds to build
and when complete will look something like:
If you didn't get the validation working
(did not get the "VALIDATED OK" and/or got a warning message) then you
probably did not install "MSIVAL2".
I probably wouldn't worry for now but I'd install it as soon as
possible since the warning and error messages it produces can help you
learn MSIs and solve problems.
Do not release MSIs to others unless you have validated them!
Please see the "build problems"
section of this manual for any other problems building the MSI.
The text that you see in the above screen has been captured in the
file "OUT\TRYME.dbg.txt".
Most other diagnostic files are to be found in the
"out\TryMe.MM\LOG" directory.
I recommend you open it up in a text editors and
have a look through it.
The MSI (and its documentation) have been generated in the
"out\TryMe.MM\MSI" directory.
Note that the MSI may exist even if the build failed, the reason
being that you can frequently work out a problem by looking at the
state of the MSI (typically using "ORCA").
EXAMINE THE SOURCE
The "TryMe.MM" file is a MAKEMSI
script containing the
commands which told MAKEMSI what files to include
for installation and the default installation location.
The main commands (each documented in the installed PPWIZARD or MAKEMSI manuals)
used in the script are similar to:
This PPWIZARD command is used to imbed the contents of another
file as if it were inline and is used to modularise your
MSI scripts or configuration.
If your name is "Steve" then you should create a "Steve.MMH"
file for your own MSIs (even if it's an exact copy of "ME.MMH").
You can now double click on the MSI to install it
(or perhaps you'd like to try the
"right click, verbose logging method).
Please see the "installation problems"
section of this manual if you have problems installing the MSI.
If you'd already previously installed it:
If you'd already installed a previous version of the MSI
(its actual version number is irrelevant) then it will
be automatically uninstalled before the install proceeds.
If the same "version" then the maintenance dialog
will be displayed.
After the install completes, start the Windows
"Add/Remove Applet".
You should find it listed there
(the developer mode adds a prefix so that they sort first).
If you have WIN2000 or WINXP there should also be
"Support Information" (click on this), if you click on the readme link
the generated documentation will be displayed (by default it gets installed).
This may not work if your default browser is firefox (a feature it has).
You may want to try the "Verify Files" button in the generated
documentation (or the "Add/Remove Applet").
This button is only available (currently) in IE.
You can uninstall the MSI via the "Add/Remove Applet" but try
double clicking on the MSI again to display the maintenance dialog
and then choose the "Remove" option.
Please see the "Testing Your MSI" section for more
testing tips.
THE ABOVE WORKED! Now What?
MAKEMSI related documentation can be accessed via the "Start" menu:
There are a number of other scripts which get much more complicated
that the sample used above, you could try to build these also.
Do not make any more changes to any files in the MAKEMSI
install directory tree. These files may/will be deleted on uninstall!
Now that we know the basic environment is OK and you know the
basic build process I suggest you copy the source files (.MM+.VER)
to a new directory you create and possibly rename these files) and
try to rebuild.
Assuming success then you can use this copy of the MAKEMSI supplied
files you can make minor changes and look at the results to
understand things better.
Be sure to use the "GUID Generation" shortcut
to create a new unique GUID and modify the "Guid.UpgradeCode"
statement in the version file,
while you're there change the "ProductName" as well.
In general every one of your MSIs must use a unique GUID for this.
I'd make a copy of a script which is closest to what you require and
start by making very small simple changes and testing these.
One of the changes you may wish to make is to alter
what is being filtered out, have a look at the
"out\?\log\Validation" directory and you will see
the "parsed" filter plus before and after filtering files.
When creating MSIs you are generally doing one of two things,
packing up files or other resources
(which you or your company produce), or you are
repackaging other vendors installers
(this can be very simple or very difficult depending on the product and its documentation).
If you currently donate your "spare" CPU to scientific or medical research projects (such as cancer research or protein folding) and are not currently part of a team please consider joining the "MAKEMSI" team which I've recently set up. If you don't donate your CPU, why not? For more information see "http://boinc.berkeley.edu/".
Please report any problems to me and I will fix ASAP
(take my word for it, you won't believe how fast this can be).
Please provide the ".MM", the ".VER" and any files in the "out\?\LOG"
directory zipped if you are reporting a problem which may be a bug or
you need help.
WARNING!!!
Never make changes (you need to keep) to any files in the installation directory as an uninstall or repair will probably remove your changes!