|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<libosinfo version="0.0.1">
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
See http://www.gnu.org/licenses/ for a copy of the license text -->
|
|
Packit Service |
417c34 |
<install-script id="http://microsoft.com/windows/cmd/desktop">
|
|
Packit Service |
417c34 |
<profile>desktop</profile>
|
|
Packit Service |
417c34 |
<path-format>dos</path-format>
|
|
Packit Service |
417c34 |
<expected-filename>windows.cmd</expected-filename>
|
|
Packit Service |
417c34 |
<can-post-install-drivers/>
|
|
Packit Service |
417c34 |
<post-install-drivers-signing-req>strict</post-install-drivers-signing-req>
|
|
Packit Service |
417c34 |
<config>
|
|
Packit Service |
417c34 |
<param name="admin-password" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="user-realname" policy="required"/>
|
|
Packit Service |
417c34 |
<param name="avatar-location" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="avatar-disk" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="target-disk" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="script-disk" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="post-install-drivers-disk" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="post-install-drivers-location" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="driver-signing" policy="optional"/>
|
|
Packit Service |
417c34 |
</config>
|
|
Packit Service |
417c34 |
<injection-method>cdrom</injection-method>
|
|
Packit Service |
417c34 |
<injection-method>floppy</injection-method>
|
|
Packit Service |
417c34 |
<avatar-format>
|
|
Packit Service |
417c34 |
<mime-type>image/bmp</mime-type>
|
|
Packit Service |
417c34 |
<width>48</width>
|
|
Packit Service |
417c34 |
<height>48</height>
|
|
Packit Service |
417c34 |
<alpha>false</alpha>
|
|
Packit Service |
417c34 |
</avatar-format>
|
|
Packit Service |
417c34 |
<template>
|
|
Packit Service |
417c34 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
Packit Service |
417c34 |
<xsl:output method="text"/>
|
|
Packit Service |
417c34 |
<xsl:template name="target-disk">
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="config/target-disk != ''">
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/target-disk"/>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
<xsl:text>C</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template name="script-disk">
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="config/script-disk != ''">
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/script-disk"/>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:when test="script/preferred-injection-method = 'cdrom'">
|
|
Packit Service |
417c34 |
<xsl:text>E</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
<xsl:text>A</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template name="post-install-drivers-disk">
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="config/post-install-drivers-disk != ''">
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/post-install-drivers-disk"/>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:when test="script/preferred-injection-method = 'cdrom'">
|
|
Packit Service |
417c34 |
<xsl:text>E</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
<xsl:text>A</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template name="avatar-destination">
|
|
Packit Service |
417c34 |
<xsl:call-template name="target-disk"/>
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="os/version < 6.0">
|
|
Packit Service |
417c34 |
<xsl:text>:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/user-realname"/>
|
|
Packit Service |
417c34 |
<xsl:text>.bmp</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
<xsl:text>:\ProgramData\Microsoft\User Account Pictures\user.bmp</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template match="/install-script-config"><xsl:if test="os/version < 6.0">
|
|
Packit Service |
417c34 |
sc config TlntSvr start= auto
|
|
Packit Service |
417c34 |
net user <xsl:value-of select="config/user-realname"/> <xsl:text> </xsl:text> <xsl:value-of select="config/admin-password"/> /add /passwordreq:no
|
|
Packit Service |
417c34 |
net localgroup administrators <xsl:value-of select="config/user-realname"/> /add
|
|
Packit Service |
417c34 |
net accounts /maxpwage:unlimited
|
|
Packit Service |
417c34 |
REGEDIT /S <xsl:call-template name="script-disk"/>:\windows.reg
|
|
Packit Service |
417c34 |
</xsl:if>
|
|
Packit Service |
417c34 |
Windows 8+ needs a more than one image, with different sizes, in order to
|
|
Packit Service |
417c34 |
properly set the user's avatar all over the place.
|
|
Packit Service |
417c34 |
Reference: https://gitlab.com/libosinfo/osinfo-db/issues/24 --><xsl:if test="os/version < 6.2">
|
|
Packit Service |
417c34 |
if not "<xsl:value-of select="config/avatar-location"/>"=="" copy "<xsl:value-of select="config/avatar-disk"/>:<xsl:value-of select="config/avatar-location"/>" "<xsl:call-template name="avatar-destination"/>
|
|
Packit Service |
417c34 |
<xsl:text>
|
|
Packit Service |
417c34 |
</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:if><xsl:call-template name="post-install-drivers-disk"/>:
|
|
Packit Service |
417c34 |
<xsl:if test="config/driver-signing = 'false' and os/version > 5.1">
|
|
Packit Service |
417c34 |
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
|
|
Packit Service |
417c34 |
bcdedit.exe -set TESTSIGNING ON
|
|
Packit Service |
417c34 |
</xsl:if>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
for %%i in ("<xsl:call-template name="post-install-drivers-disk"/>:<xsl:value-of select="config/post-install-drivers-location"/>\*.cmd") do if not "%%i" == "<xsl:call-template name="post-install-drivers-disk"/>:\<xsl:value-of select="script/expected-filename"/>" cmd /c %%i
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
EXIT
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
</xsl:stylesheet>
|
|
Packit Service |
417c34 |
</template>
|
|
Packit Service |
417c34 |
</install-script>
|
|
Packit Service |
417c34 |
</libosinfo>
|