diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2013-01-25 03:48:06 +0200 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2013-02-07 15:40:30 +0200 |
commit | f4835ceebefe7476797d08d3d7d114f923a9241f (patch) | |
tree | d426795cc1475c7c047ecfae9ecaed82201bd310 | |
parent | bfa7e6e0be8a0fd935ba4c52d92a95724ee43aae (diff) |
winxp,installer: Don't assume script disk is specified
Declare that script optionally uses script disk if specified and hardcode
a fallback for the case when its not specified.
-rw-r--r-- | data/install-scripts/windows-sif.xml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/data/install-scripts/windows-sif.xml b/data/install-scripts/windows-sif.xml index 2947efa..c072f4b 100644 --- a/data/install-scripts/windows-sif.xml +++ b/data/install-scripts/windows-sif.xml @@ -77,6 +77,7 @@ <param name="reg-product-key" policy="required"/> <param name="user-realname" policy="required"/> <param name="hostname" policy="required"/> + <param name="script-disk" policy="optional"/> </config> <template> <xsl:stylesheet @@ -85,6 +86,17 @@ <xsl:output method="text"/> + <xsl:template name="script-disk"> + <xsl:choose> + <xsl:when test="config/script-disk != ''"> + <xsl:value-of select="config/script-disk"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>A</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + <xsl:template name="password"> <xsl:choose> <xsl:when test="os/version = 5.1"> @@ -182,7 +194,7 @@ <xsl:if test="os/version > 5.0"> [SetupParams] - UserExecute = "<xsl:value-of select="config/script-disk"/>:\windows.cmd" + UserExecute = "<xsl:call-template name="script-disk"/>:\windows.cmd" [WindowsFirewall] Profiles = WindowsFirewall.TurnOffFirewall |