Alien::WiX - Installing and finding Windows Installer XML (WiX)


Alien-WiX-Version30 documentation Contained in the Alien-WiX-Version30 distribution.

Index


Code Index:

NAME

Top

Alien::WiX - Installing and finding Windows Installer XML (WiX)

VERSION

Top

This document describes Alien::WiX version 1.305419001.

Note that the first digit will change if the API changes in an incompatible or major manner, while the other digits change when the version of WiX that is installed by this module changes.

There is no incompatibility between 0.x and 1.x versions, however.

SYNOPSIS

Top

    use Alien::WiX qw(:GENERAL);

    print wix_version();
    # Prints 3.0.5419.0, usually.

    $version_number = wix_version_number();
    die 'WiX beta-exit build or better required, stopping' 
        if ($version_number < 4805)

    print wix_binary('candle'), " exists\n";
    print wix_library('WixFirewall'), " exists\n";

    use Alien::WiX 0.305419 qw(:ALL);

    print wix_bin_candle(), " exists\n";
    print wix_bin_light(), " exists\n";
    print wix_lib_wixui(), " exists\n";

DESCRIPTION

Top

Installing this module will also install Windows Installer XML (otherwise known as WiX) version 3.0.5419.0, if it (or a later version) has not already been installed.

This module provides utility subroutines that would be useful for programs that use WiX to create Windows Installer (.msi) installation packages.

INTERFACE

Top

All routines will croak when errors occur. useing the module will also croak if WiX is not installed.

wix_version

Returns the version of Windows Installer XML (i.e. 3.0.5419.0) as a string.

wix_version_number

Returns the third portion of the version of Windows Installer XML (i.e. if wix_version returns 3.0.5419.0, this returns 5419) as a number.

wix_binary

Returns the location of the WiX program specified as its first parameter. The '.exe' part is not required.

wix_library

Returns the location of the WiX extension library specified as its first parameter. The 'Extension.dll' part is not required.

wix_bin_candle

wix_bin_light

Returns the location of candle.exe or light.exe.

wix_lib_wixui

Returns the location of the WixUI extension library.

DIAGNOSTICS

Top

Windows Installer XML not installed, cannot continue

The module could not find the registry key for WiX 3.0.

Cannot execute %s

The file wix_binary or a wix_bin routine was attempting to find could not be found or it could not be executed.

Cannot find %s

The file wix_library or a wix_lib routine was attempting to find could not be found.

CONFIGURATION AND ENVIRONMENT

Top

Alien::WiX requires no configuration files or environment variables.

It checks the registry entries that WiX's installer wrote to the Windows registry to get its return values.

Note that this module checks if Windows Installer XML is INSTALLED, NOT that it successfully executes.

DEPENDENCIES

Top

This module requires Perl 5.8.0.

Non-core perl modules required are Win32API::Registry (which is required to be installed in order to run the Makefile.PL or Build.PL successfully), Module::Build (which is required to install this module), Win32::TieRegistry, version, and Readonly.

Installation of Alien::WiX will install Microsoft .NET Framework 2.0 SP1 and Windows Installer XML 3.0.5419.0 by downloading them from the appropriate sites unless otherwise specified.

INCOMPATIBILITIES

Top

If you want to install WiX in a non-default location, you will want to install it yourself before installing this module.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests to bug-Alien-WiX-Version30@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

Top

Curtis Jewell <csjewell@cpan.org>

LICENCE AND COPYRIGHT

Top

DISCLAIMER OF WARRANTY

Top

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


Alien-WiX-Version30 documentation Contained in the Alien-WiX-Version30 distribution.

package Alien::WiX;

use 5.008;
use warnings;
use strict;
use Carp;
use base qw( Exporter );
use vars qw( $VERSION @EXPORT_OK %EXPORT_TAGS);
use version; $VERSION = version->new('1.305419001')->numify();

eval { require Alien::WiX::Version35; 1; } or eval {
	require Alien::WiX::Version30;
	Alien::WiX::Version30->VERSION(5419.1);
	1;
}
  or croak @_;

@EXPORT_OK =
  qw(wix_binary wix_library wix_version wix_version_number wix_bin_candle wix_bin_light wix_lib_wixui);
%EXPORT_TAGS = (
	GENERAL => [qw(wix_binary wix_library wix_version wix_version_number)],
	ALL     => [@EXPORT_OK] );

sub import { ## no critic (RequireArgUnpacking)
	my @import = @_;
	shift @import;

	if ( defined $Alien::WiX::Version35::VERSION ) {
		Alien::WiX::Version35->import(@import);
	} else {
		Alien::WiX::Version30->import(@import);
	}
	Alien::WiX->export_to_level( 1, @_ );

	return;
} ## end sub import


1;

__END__