Issue 4729 - Provide installation set for Windows as self-extracting .exe or .msi
Summary: Provide installation set for Windows as self-extracting .exe or .msi
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: current
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Martin Hollmichel
QA Contact: issues@installation
Depends on: 44260 45919
  Show dependency tree
Reported: 2002-05-10 20:11 UTC by simonbr
Modified: 2006-03-29 07:12 UTC (History)
10 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---

Script for a silent self-extracting .exe installer for 2.0 (1.68 KB, text/txt)
2005-02-20 12:35 UTC, stp
no flags Details
Icon used in script (9.90 KB, application/octet-stream)
2005-02-20 16:03 UTC, stp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description simonbr 2002-05-10 20:11:56 UTC
It would be easier to install if the installation set for Windows would be an 
autoextracting .exe file instead of a .zip (not everybody has an unzip program 
installed). This should be very easy to implement!
Comment 1 Olaf Felka 2002-05-13 09:08:24 UTC
Hi Falko,
that's a good idea.
Comment 2 simonbr 2002-08-20 23:12:19 UTC
Could GNU Gzip/Wiz/Infozip be used for this? See:
Comment 3 Unknown 2002-08-23 14:28:17 UTC
I suppose, that the best thing for Windows should be to use .msi :)
(Microsoft installer :) ).
Comment 4 thegoldenear 2003-04-26 16:06:41 UTC
to me, and I expect the majority of Windows users installing OOo, it
seems completely ludicrous that rather than one executable file which
is obviously run to install the program (the norm for 99% of software
for Windows), OOo comes packaged in a .zip file which it has to be
extracted from and then there are not one, but 414 files. the user has
to scroll down to the bottom of a long list to find the setup.exe file.

this completely breaks the thinking that many people installing
software on Windows will have learned and it seems even more ludicrous
that this is happening for their most fundamental sofwtare application
of all - the office suite - people I've seen have trouble with this
have expected that the care would have been taken with such a
pervasive application to make it as easy as possible to install for
them; and thus gives them a negative impression from the outset
Comment 5 falko.tesch 2003-10-01 10:46:08 UTC
Sorry guys, but this business of the OO eople.
StarOffice does come as an .EXE
Comment 6 falko.tesch 2003-10-01 10:46:22 UTC
Comment 7 quetschke 2003-10-01 18:20:11 UTC
> Sorry guys, but this business of the OO eople.
> StarOffice does come as an .EXE

Am I wrong, or is this the OOo issuezilla?

Please don't close an issue because it works in Staroffice!

It's completely fair when you say it's not your duty, and you assign
it back to issues, but not to close it.
Comment 8 falko.tesch 2003-10-06 11:55:44 UTC
Sorry, you are right.
I should not have closed it.
Re-assigned to submitter.
Comment 9 stp 2005-02-19 17:11:39 UTC
May I suggest we use this issue for discussing what to do with 2.0: How do we
create self-running .exe or .msi downloads for Windows users?

Adjusted summary and Target milestone accordingly.
Comment 10 stp 2005-02-20 12:35:06 UTC
Created attachment 22843 [details]
Script for a silent self-extracting .exe installer for 2.0
Comment 11 stp 2005-02-20 15:57:51 UTC
The attached NSIS script will silently extract the install files and run setup.exe. 

The .exe installer also passes any command line option such as -a to OOo's
setup.exe. Furthermore, I have added the -x option to extract the install files
to a directory.

I think this works very much like the installer for SO 8 beta.

In order to make these self-extracting installers based on the attached script
NSIS needs to be installed on the build system. 

NSIS can be downloaded from here:

Please let me know if I can do more to make this happen.
Comment 12 stp 2005-02-20 16:03:30 UTC
Created attachment 22844 [details]
Icon used in script
Comment 13 justinclift 2005-02-20 20:32:33 UTC
This appears to be a duplicate of IZ 33117.
Comment 14 stp 2005-02-21 09:23:22 UTC
Hi Justin,

Issue 33117 is for OOo 1.x and there really is a difference between OOo 1.x and
OOo 2.0. OOo 2.0 is based on MSI and the install files are CAB archives - not
ZIP. That means that there really isn't a lot to gain in compression. But
usability is still an issue.

LZWA compression could be turned on if it is possible to create noncompressed
CAB archives during the build process.

I should probably add that the attached script is global meaning there are no
need for localisation what so ever.

Comment 15 stp 2005-02-22 18:00:24 UTC
I am taking this one. Let's see how far I get...

Build requirements:
Comment 16 stp 2005-02-22 18:02:13 UTC
Native installer description:
Comment 17 stp 2005-03-06 22:05:02 UTC
File extensions definition:
Comment 18 stp 2005-03-08 17:23:48 UTC
After exploring the CVS I found out that NSIS related functions have already
been added to these build scripts:

I assume this is for the StarOffice wrapper introduced with SO8 Beta.

The SO8 beta wrapper introduces an additional "extract to what directory" dialog
while the script I attached to this issue is silent and thus doesn't need
additional translation.

Before I go any further I would like Sun to comment on what approach should be
1) SO and OOo should have different NSIS wrappers
2) SO and OOo should align the NSIS wrappers
a) - and it should be the wrapper introduced in SO8 beta
b) - and it should be the silent wrapper
c) - and lets talk about it

Reassigning to mh for a comment.
Comment 19 Martin Hollmichel 2005-04-06 15:59:34 UTC
I begin alignment of SO/OOo Nsis installer in cws mh1990. you're welcome to join
this effort.
Comment 20 stp 2005-04-16 11:04:51 UTC
Can I help without setting up a build environment and cws system? What are your
plans for the NSIS wrapper?
Comment 21 davidfraser 2005-04-17 18:31:08 UTC
As far as I understand you should be able to create a single MSI file that knows
how to install itself, containing the CAB files.
Comment 22 Martin Hollmichel 2005-04-18 09:56:48 UTC
creation of download sets committed now to cws mh1990.

we still need to find final bitmaps and compression strategy within CAB and NSIS.

the msi thing should not discussed within this issue now, I suggest to discuss
this on dev@installation first and then may file this as an request for enhancement.
Comment 23 stp 2005-04-18 19:26:41 UTC
Yes, you can make single MSI files, but I don't know how. Maybe it is hidden
somewhere in this documentation:
Comment 24 2005-04-19 14:19:48 UTC
To include the cab files into the msi database is already prepared. You only
have to set 

$include_cab_in_msi = 1;

instead of 

$include_cab_in_msi = 0;

in solenv/bin/modules/installer/ and you will get a 90 MB  msi
database next to other files in the installation set.
Comment 25 stp 2005-04-19 14:59:11 UTC
Nice. Why don't we just distribute the single MSI file then instead of applying
a NSIS wrapper and thus additional build requirements?

MySQL installer is now a .msi file. Firefox / Thunderbird 1.1 will also be
available in .msi :

Comment 26 2005-04-19 15:49:32 UTC
Our installation sets contain some files that cannot be included into the
database. There is a setup.exe with its setup.ini, there are instmsi files and
there are readme and license files.
Comment 27 davidfraser 2005-04-19 18:52:34 UTC
For the READMEs they are usable within the package anyway and presumably could
be made available from the same download location.
It seems like setup.exe and setup.ini are just used to launch the msi
installation anyway. Is there any other critical functionality / reasons why
they are needed?
Comment 28 2005-04-20 09:14:47 UTC
The setup.exe looks for an installed Windows Installer service and checks its
version. If the service is not found or if it is too old, the setup.exe installs
the instmsi* files that are also located in the installation set. Only then the
service can be started with the database  and the required transformation (in
multilingual installation sets).
For multilingual installation sets the setup.exe additionally determines the
language, in which the setup is started.
In my opinion we cannot create installation sets without setup.exe, setup.ini,
Comment 29 davidfraser 2005-04-20 10:07:39 UTC
I think the point is not that the setup.exe is not needed for some people (with
old Windows Installer versions etc).
The point is that some people know they have Windows Installer installed, and it
would be simpler to give those people a single msi rather than requiring them to
download a zipfile, unzip it, and then run the installer.

I'm also pretty sure that WISE and InstallShield allow you to include the
instmsi files in a single executable with the msi bundled into it, so presumably
this could be possible here as well (using NSIS or suchlike).

From what I recall the setup.exe reads the Windows locale to decide which
language to launch the installer in. Is that correct? Is there no native Windows
Installer support for determining the correct language?
Comment 30 Martin Hollmichel 2005-04-22 13:31:38 UTC
make as verified, although
* bitmaps for installer are not final
* not all discussions are finished about how exactly all parameters are set.

will go into master as a new, but not yet completed feature, to enable all
participants to do further work and discussion on this.
Comment 31 stp 2005-04-24 13:00:12 UTC
The purpose of this issue is to increase the usability of installation on
Windows. Therefore, I suggest we do not add unneccessary UI steps (and thus
localisation needs).

AFAIK Martins checkin asks the user where he/she wants to unpack the
installation files. My attached NSIS script silently, unpacks the installation
files to s subdirectory in the $TEMP directory and launches setup.exe.

The utility that opens and handles MSI files is Windows Installer. Windows
Installer is bundled in Windows XP and Windows 2000. The latest version (2.0) is
already bundled in Windows XP but can be downloaded for Windows 95, 98, ME, NT4
and 2000.

This means that any XP or 2000 user can doubleclick a single MSI file and it
will launch the installer without the need for setup.exe etc. Windows 9x users
may already have the Windows Installer installed without knowing.

I am favoring moving to a single MSI file or alternatively using a silent NSIS
Comment 32 Martin Hollmichel 2006-03-29 07:12:14 UTC
close issue.