-
Notifications
You must be signed in to change notification settings - Fork 5
Preparing to create a WPKG report
Andrey Klimov edited this page Dec 17, 2019
·
1 revision
-
Create a XML package file:
<?xml version="1.0" encoding="UTF-8"?> <packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages"> <package id="zzWPKG-REPORT" name="WPKG Report" revision="2018.12.05" priority="0" reboot="false" execute="changed"> <!-- Notes: Create WPKG Report --> <variable name="Revision" value="2018.12.05"/> <variable name="RevI1" value="2018"/> <variable name="RevI2" value="12"/> <variable name="RevI3" value="05"/> <variable name="ProgramDir" value="%ProgramFiles%\Wpkg" architecture="x86"/> <variable name="ProgramDir" value="%ProgramW6432%\Wpkg" architecture="x64"/> <variable name="ReportPathLocal" value="%TEMP%\wpkg-report.log"/> <variable name="ReportPathNet" value="\\fabrikam.com\system\wpkg\base\reports\%COMPUTERNAME%.log"/> <variable name="WpkgScript" value="wpkg.js"/> <commands> <command type="install" include="cleanup"/> <command type="install" cmd="%ComSpec% /C cscript.exe "%ProgramDir%\%WpkgScript%" //NoLogo /query:iml /queryMode:local /quiet:false > %ReportPathLocal%" timeout="60"> <condition> <check type="file" condition="exists" path="%ProgramDir%\%WpkgScript%"/> </condition> </command> <command type="install" cmd="%ComSpec% /C copy /Y "%ReportPathLocal%" "%ReportPathNet%"" timeout="30"> <condition> <check type="file" condition="exists" path="%ReportPathLocal%"/> </condition> </command> <command type="cleanup" cmd="%ComSpec% /C del /F /Q "%ReportPathLocal%"" timeout="30"> <condition> <check type="file" condition="exists" path="%ReportPathLocal%"/> </condition> </command> </commands> </package> </packages:packages>
-
Update package revision;
-
Update the variables
Revision
,RevI1
,RevI2
andRevI3
.
-
Create a XML profile file:
<?xml version="1.0" encoding="UTF-8"?> <profiles:profiles xmlns:profiles="http://www.wpkg.org/profiles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/profiles"> <profile id="WPKG_Common"> <!-- Notes: WPKG common profile. --> <package package-id="zzWPKG-REPORT"/> </profile> </profiles:profiles>
-
Create a XML host file:
<?xml version="1.0" encoding="UTF-8"?> <hosts:wpkg xmlns:hosts="http://www.wpkg.org/hosts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/hosts"> <host name=".+" profile-id="WPKG_Common"> <!-- Notes: WPKG common host. --> </host> </hosts:wpkg>
- Open WPKG Express 2 in web browser and navigate to menu
Application settings
->Uploading XML
; - Upload created XML file or simply navigate to menu
Application settings
->Creating XML
, paste this XML into the editor and click theCreate
button.