Versions in this module Expand all Collapse all v1 v1.0.0 Dec 11, 2020 Changes in this version + const InstallAndUninstall + const InstallOnly + const InstallUninstallUnspecified + const No + const UninstallOnly + const XMLNamespace + const Yes + const YesNoUnspecified + var ErrInvalidInstallUninstall = errors.New("invalid InstallUninstallType value") + var ErrInvalidYesNoValue = errors.New("invalid InstallUninstallType value") + func CheckFileHasContent(fn string, buf []byte) bool + func WriteFileIfChanged(fn string, buf []byte) error + type Builder struct + CandleArgs []string + LightArgs []string + WixBinaryPath string + WixobjFile string + WorkDir string + WsxFile string + func NewBuilder(workdir string, fnbase string) *Builder + func (b *Builder) AddCandleArgs(args ...string) + func (b *Builder) AddLightArgs(args ...string) + func (b *Builder) Run(w *Wix) error + type Component struct + Environments []*Environment + Files []*File + GUID uuid.UUID + ID string + ServiceControls []*ServiceControl + ServiceInstalls []*ServiceInstall + Win64 YesNoType + func (c *Component) AddFile(id string, source string) *File + func (c *Component) AddServiceControl(id string, svcname string) *ServiceControl + func (c *Component) AddServiceInstall(id string, svcname string) *ServiceInstall + type ComponentRef struct + ID string + Primary YesNoType + type Directory struct + Components []*Component + ID string + Name string + Subdirs []*Directory + func (d *Directory) AddComponent(id string, guid uuid.UUID, win64 bool) *Component + func (d *Directory) AddProgramFilesSubdir(win64 bool) *Directory + func (d *Directory) AddSubdir(id string, name string) *Directory + type Environment struct + Action string + ID string + Name string + Part string + Permanent YesNoType + System YesNoType + Value string + type Feature struct + ComponentRefs []*ComponentRef + ConfigurableDirectory string + Description string + Display string + ID string + Level string + Subfeatures []*Feature + Title string + func (f *Feature) AddComponentRefs(refnames ...string) + func (f *Feature) AddSubfeature(id string, level string, title string, description string) *Feature + type File struct + Checksum YesNoType + ID string + KeyPath YesNoType + Source string + Vital YesNoType + type InstallExecuteSequence struct + ExistingProductRemovals []*RemoveExistingProducts + type InstallUninstallType int + func (v *InstallUninstallType) MarshalJSON() ([]byte, error) + func (v *InstallUninstallType) MarshalText() ([]byte, error) + type MajorUpgrade struct + AllowDowngrades YesNoType + AllowSameVersionUpgrades YesNoType + Disallow YesNoType + DowngradeErrorMessage string + IgnoreRemoveFailure YesNoType + MigrateFeatures YesNoType + RemoveFeatures string + Schedule string + type MediaTemplate struct + EmbedCab YesNoType + type Package struct + Comments string + Compressed YesNoType + Description string + ID string + InstallPrivileges string + InstallScope string + InstallerVersion uint32 + Keywords string + Languages uint16 + Manufacturer string + Platform string + SummaryCodepage uint16 + type Product struct + Codepage uint16 + Directories []*Directory + Features []*Feature + ID string + InstallExecuteSequence *InstallExecuteSequence + Language uint16 + MajorUpgrades []*MajorUpgrade + Manufacturer string + MediaTemplate []*MediaTemplate + Name string + Package *Package + Properties []*Property + UIRefs []*UIRef + UpgradeCode uuid.UUID + Upgrades []*Upgrade + Version string + WixVariables []*WixVariable + func (p *Product) AddFeature(id string, level string, title string, description string) *Feature + func (p *Product) AddMajorUpgrade(v *MajorUpgrade) + func (p *Product) AddMediaTemplate() + func (p *Product) AddProperty(id string, value string) *Property + func (p *Product) AddTargetDirectory() *Directory + func (p *Product) AddUIRef(id string) *UIRef + func (p *Product) AddUpgrade(id uuid.UUID) *Upgrade + func (p *Product) AddWixVariable(id string, value string) + type Property struct + ID string + Secure YesNoType + Value string + type RemoveExistingProducts struct + After string + Before string + Overridable YesNoType + Sequence int + Suppress YesNoType + type ServiceControl struct + ID string + Name string + Remove InstallUninstallType + Start InstallUninstallType + Stop InstallUninstallType + Wait YesNoType + type ServiceInstall struct + Arguments string + Description string + DisplayName string + ErrorControl string + ID string + Interactive YesNoType + Name string + Start string + Type string + Vital YesNoType + type Shortcut struct + Advertise YesNoType + Directory string + ID string + Icon string + IconIndex int + Name string + WorkingDirectory string + type UIRef struct + ID string + type Upgrade struct + ID uuid.UUID + Versions []*UpgradeVersion + func (u *Upgrade) AddVersion(v *UpgradeVersion) + type UpgradeVersion struct + IgnoreRemoveFailure YesNoType + IncludeMaximum YesNoType + IncludeMinimum YesNoType + Maximum string + MigrateFeatures string + Minimum string + OnlyDetect YesNoType + Property string + RemoveFeatures string + type Wix struct + Product *Product + XMLNs string + type WixVariable struct + ID string + Overridable YesNoType + Value string + type YesNoType int + func ToYesNo(v bool) YesNoType + func (v *YesNoType) MarshalJSON() ([]byte, error) + func (v *YesNoType) MarshalText() ([]byte, error)