innosetup

package
v0.0.0-...-6278b43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: BSL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

func (*Compiler) Build

func (c *Compiler) Build(io.Writer) error

Build implements paket.Generator

func (*Compiler) Configure

func (c *Compiler) Configure(project paket.Project, ctx *hcl.EvalContext, body hcl.Body) error

Configure implements paket.Generator

func (*Compiler) Export

func (c *Compiler) Export(project paket.Project, w io.Writer) error

Export implements paket.Generator

func (*Compiler) Import

func (c *Compiler) Import(io.Reader) (*paket.Project, error)

Import implements paket.Generator

func (*Compiler) Info

func (c *Compiler) Info() paket.GeneratorInfo

Info implements paket.Generator

func (*Compiler) Run

func (c *Compiler) Run(io.Writer) error

Run implements paket.Generator

type ISS

type ISS struct {
	Setup Setup `json:"setup"`
}

ISS is the Inno Setup Script *.iss file.

func NewISS

func NewISS(project paket.Project) ISS

Convert a paket.Project to an InnosetupScript *.iss file.

func Parse

func Parse(r io.Reader) (*ISS, error)

Parse parses the given reader. It expects the content to be a valid InnoSetupScriprt *.iss file.

func ReadFile

func ReadFile(path string) (*ISS, error)

ReadFile reads a *.iss file.

func (ISS) WriteFile

func (iss ISS) WriteFile(w io.Writer) error

WriteFile writes the ISS to the given writer. The written content can be used to run the InnoSetup Compiler.

type InstallerConfig

type InstallerConfig struct {
	UUID       string           `hcl:"uuid,optional" json:"uuid,omitempty"`
	Welcome    string           `hcl:"welcome,optional" json:"welcome,omitempty"`
	Conclusion string           `hcl:"conclusion,optional" json:"conclusion,omitempty"`
	Artifacts  []paket.Artifact `hcl:"artifact,block" json:"artifacts"`
}

type Setup

type Setup struct {
	AppId           string `iss:"AppId,omitempty" json:"AppId,omitempty"`
	AppName         string `iss:"AppName,omitempty" json:"AppName,omitempty"`
	AppPublisher    string `iss:"AppPublisher,omitempty" json:"AppPublisher,omitempty"`
	AppPublisherURL string `iss:"AppPublisherURL,omitempty" json:"AppPublisherURL,omitempty"`
	AppSupportURL   string `iss:"AppSupportURL,omitempty" json:"AppSupportURL,omitempty"`
	AppUpdatesURL   string `iss:"AppUpdatesURL,omitempty" json:"AppUpdatesURL,omitempty"`
	AppVersion      string `iss:"AppVersion,omitempty" json:"AppVersion,omitempty"`

	ArchitecturesAllowed            string `iss:"ArchitecturesAllowed,omitempty" json:"ArchitecturesAllowed,omitempty"`
	ArchitecturesInstallIn64BitMode string `iss:"ArchitecturesInstallIn64BitMode,omitempty" json:"ArchitecturesInstallIn64BitMode,omitempty"`

	ChangesAssociations     bool   `iss:"ChangesAssociations,omitempty" json:"ChangesAssociations,omitempty"`
	Compression             string `iss:"Compression,omitempty" json:"Compression,omitempty"`
	DefaultDirName          string `iss:"DefaultDirName,omitempty" json:"DefaultDirName,omitempty"`
	DefaultGroupName        string `iss:"DefaultGroupName,omitempty" json:"DefaultGroupName,omitempty"`
	DisableProgramGroupPage bool   `iss:"DisableProgramGroupPage,omitempty" json:"DisableProgramGroupPage,omitempty"`

	LicenseFile string `iss:"LicenseFile,omitempty" json:"LicenseFile,omitempty"`

	InfoAfterFile  string `iss:"InfoAfterFile,omitempty" json:"InfoAfterFile,omitempty"`
	InfoBeforeFile string `iss:"InfoBeforeFile,omitempty" json:"InfoBeforeFile,omitempty"`

	OutputDir                          string `iss:"OutputDir,omitempty" json:"OutputDir,omitempty"`
	OutputBaseFilename                 string `iss:"OutputBaseFilename,omitempty" json:"OutputBaseFilename,omitempty"`
	PrivilegesRequiredOverridesAllowed bool   `iss:"PrivilegesRequiredOverridesAllowed,omitempty" json:"PrivilegesRequiredOverridesAllowed,omitempty"`

	SolidCompression bool `iss:"SolidCompression,omitempty" json:"SolidCompression,omitempty"`
	SetupLogging     bool `iss:"SetupLogging,omitempty" json:"SetupLogging,omitempty"`

	UninstallDisplayIcon     string `iss:"UninstallDisplayIcon,omitempty" json:"UninstallDisplayIcon,omitempty"`
	UninstallFilesDir        string `iss:"UninstallFilesDir,omitempty" json:"UninstallFilesDir,omitempty"`
	UninstallRestartComputer bool   `iss:"UninstallRestartComputer,omitempty" json:"UninstallRestartComputer,omitempty"`

	UserInfoPage bool `iss:"UserInfoPage,omitempty" json:"UserInfoPage,omitempty"`

	SetupIconFile        string `iss:"SetupIconFile,omitempty" json:"SetupIconFile,omitempty"`
	WizardImageFile      string `iss:"WizardImageFile,omitempty" json:"WizardImageFile,omitempty"`
	WizardSmallImageFile string `iss:"WizardSmallImageFile,omitempty" json:"WizardSmallImageFile,omitempty"`
	WizardResizable      bool   `iss:"WizardResizable,omitempty" json:"WizardResizable,omitempty"`
	WizardStyle          string `iss:"WizardStyle,omitempty" json:"WizardStyle,omitempty"`
}

Setup represents the Setup section of an iss file. https://jrsoftware.org/ishelp/index.php?topic=setupsection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL