74
edits
Changes
→WPKG Package: Many variables, Add x64 version
<source lang="xml">
<?xml versionpackage id="1.0microsoftoffice2010" encoding name="UTF-8Microsoft Office 2010 Standard"?><packages revision="%PKG_VERSION%" reboot="false" priority="0">
<package idvariable name="microsoft-office-2010PKG_VERSION" value="1" /> <variable name="PKG_SOURCE" value="%SOFTWARE%\Microsoft \Office2010\x86" architecture="x86" /> <variable name="PKG_SOURCE" value="%SOFTWARE%\Microsoft\Office2010\x64" architecture="x64" /> <variable name="PKG_NAME" value="setup.exe" /> <variable name="PKG_MSP_NAME" value="customisation.MSP" /> <variable name="PKG_INSTALL_SWITCH" value="/adminfile %PKG_SOURCE%\%PKG_MSP_NAME%" /> <variable name="PKG_REMOVE_SWITCH" value="/uninstall Standard /config %PKG_SOURCE%\silent-uninstall.xml" /> <variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Common Files\microsoft shared\OFFICE14\Office 2010Setup Controller" revision/> <check type="1uninstall" rebootcondition="falseexists" prioritypath="72Microsoft Office .+ 2010"/>
<exit code="1641" />
<exit code="3010" />
</install>
<upgrade cmd='"%comspecPKG_SOURCE% /C start "" /WAIT "\%SOFTWAREPKG_NAME%\microsoft-office-2010\setup.exe" /adminfile "%SOFTWAREPKG_INSTALL_SWITCH%\microsoft-office-2010\customisation.msp"' >
<exit code="1641" />
<exit code="3010" />
</upgrade>
<remove cmd='"%comspecPKG_DESTINATION% /C start "" /WAIT "\%SOFTWAREPKG_NAME%\microsoft-office-2010\setup.exe" /uninstall ProPlus /config "%SOFTWAREPKG_REMOVE_SWITCH%\microsoft-office-2010\silent-uninstall.xml"' >
<exit code="3010" />
</remove>
</package>
</source>
Previously, the install, update, remove commands looked like::<source lang="xml"> <install cmd='%comspec% /C start "" /WAIT "%SOFTWARE%\microsoft-office-2010\setup.exe" /packagesadminfile "%SOFTWARE%\microsoft-office-2010\customisation.msp"' >
</source>
I'm tested on Win7 and Win10, that without "%comspec% /C start "" /WAIT" all work fine.
===silent-uninstall.xml===