public class Msi extends AbstractSetupTask
| Modifier and Type | Class and Description |
|---|---|
static class |
Msi.InstallScope
Possible values for install scope
|
| Constructor and Description |
|---|
Msi()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
The platform depending build.
|
java.lang.String |
getArch()
Get the architecture of the installer.
|
java.io.File |
getBannerBmp()
Get the file of the banner or null
|
java.io.File |
getDialogBmp()
Get the banner BMP.
|
Msi.InstallScope |
getInstallScope()
Get the install scope.
|
java.util.List<com.inet.gradle.setup.msi.MsiLanguages> |
getLanguages()
Get the languages that the setup should be support.
|
java.util.List<Launch4j> |
getLaunch4js()
Returns the registered services.
|
double |
getMinOS()
Get the minimum OS version.
|
int |
getMultiInstanceCount()
Get the count of possible multiple instances.
|
java.net.URL |
getMultiInstanceScript()
Get the URL to a vbscript that set the instance name.
|
java.util.List<java.lang.String> |
getPreGUI()
Returns the preGUI scripts.
|
com.inet.gradle.setup.msi.SignTool |
getSignTool()
Get the SignTool configuration if set
|
java.net.URL |
getWxsTemplate()
Get a URL to a *.wxs file for the WIX Toolset
|
void |
launch4j(groovy.lang.Closure<Launch4j> closue)
Register a lauch4j configuration.
|
void |
preGUI(java.lang.Object script)
Add a vbscript or jscript that should be executed before the GUI is displayed.
|
protected void |
processFiles(org.gradle.api.internal.file.CopyActionProcessingStreamAction action)
Handle all files of this task.
|
void |
setArch(java.lang.String arch)
Set the architecture of the setup.
|
void |
setBannerBmp(java.lang.Object bannerBmp)
Set a file with a banner BMP.
|
void |
setDialogBmp(java.lang.Object dialogBmp)
Set a file with the dialog BMP.
|
void |
setInstallScope(Msi.InstallScope installScope)
Set the install scope.
|
void |
setLanguages(java.lang.Object languages)
Set a list of languages for the setup GUI.
|
void |
setMinOS(double minVersion)
Set the minimum OS version.
|
void |
setMultiInstanceCount(int instanceCount)
Set the count of possible multiple instances.
|
void |
setMultiInstanceScript(java.lang.Object multiInstanceScript)
Set a vbscript that can change the product name, instance id and other things on a multi instance installation.
|
void |
setPreGUI(java.lang.Object script)
Set a vbscript or jscript that should be executed before the GUI is displayed.
|
void |
setWxsTemplate(java.lang.Object wxsTemplate)
Set an optional *.wxs file as template for building the final file with the settings of the gradle task.
|
void |
signTool(groovy.lang.Closure<com.inet.gradle.setup.msi.SignTool> closue)
Set the needed information for signing the setup.
|
getPostinst, getPostrm, getPreinst, getPrerm, getSetupBuilder, setPostinst, setPostrm, setPreinst, setPrermaction, copyTo, getAbstractSetupBuilder, getClassifier, getDescription, getExtension, getFileLookup, getFileResolver, getFileSystem, getInstantiator, getRootSpec, getSetupFile, getSetupSource, getSource, getVersion, setClassifier, setExtension, setVersionaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getFilteringCharset, getIncludeEmptyDirs, getIncludes, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withpublic void build()
build in class AbstractTaskprotected void processFiles(org.gradle.api.internal.file.CopyActionProcessingStreamAction action)
processFiles in class AbstractTaskaction - the action that should be process for every filepublic java.lang.String getArch()
public void setArch(java.lang.String arch)
arch - the architecturepublic java.io.File getBannerBmp()
public void setBannerBmp(java.lang.Object bannerBmp)
bannerBmp - the filepublic java.io.File getDialogBmp()
public void setDialogBmp(java.lang.Object dialogBmp)
dialogBmp - the filepublic void signTool(groovy.lang.Closure<com.inet.gradle.setup.msi.SignTool> closue)
closue - the data for signingpublic com.inet.gradle.setup.msi.SignTool getSignTool()
public java.net.URL getWxsTemplate()
throws java.net.MalformedURLException
java.net.MalformedURLException - if any error occurpublic void setWxsTemplate(java.lang.Object wxsTemplate)
wxsTemplate - the file locationpublic java.util.List<com.inet.gradle.setup.msi.MsiLanguages> getLanguages()
public void setLanguages(java.lang.Object languages)
languages - the languagespublic double getMinOS()
public void setMinOS(double minVersion)
minVersion - the versionpublic void launch4j(groovy.lang.Closure<Launch4j> closue)
closue - the closure of the launch4j definitionpublic java.util.List<Launch4j> getLaunch4js()
public int getMultiInstanceCount()
public void setMultiInstanceCount(int instanceCount)
instanceCount - the current instance countpublic java.net.URL getMultiInstanceScript()
throws java.net.MalformedURLException
java.net.MalformedURLException - if any error occurpublic void setMultiInstanceScript(java.lang.Object multiInstanceScript)
multiInstanceScript - the scriptpublic Msi.InstallScope getInstallScope()
public void setInstallScope(Msi.InstallScope installScope)
installScope - the new scopepublic java.util.List<java.lang.String> getPreGUI()
public void setPreGUI(java.lang.Object script)
script - list or single scriptpublic void preGUI(java.lang.Object script)
script - the content for the entry