Windows 7 games

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

When our company migrated to Windows 10, many users ask me about games from Windows 7, that they likes. I'm found, that guys from winaero.com solved this task.

You may need to reinstall games after major Windows 10 update (like 1909, 1903 etc). I am just copy and rename installer.

<package
	id="microsoftgames"
	name="Microsoft Games"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="0">
	
	<variable name="PKG_VERSION"		value="2.0" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Microsoft\Games" />
	<variable name="PKG_NAME"		value="Windows7Games%PKG_VERSION%.exe" />
	<variable name="PKG_INSTALL_SWITCH"	value="/S" />
	<variable name="PKG_REMOVE_SWITCH"	value="/S" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Microsoft Games" />

	<check type="uninstall" condition="versionequalto" path="Windows 7 Games for Windows 10 and 8" value="%PKG_VERSION%" />
	
	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />

	<upgrade include="remove" />		
	<upgrade include="install" />

	<remove cmd='"%PKG_DESTINATION%\unwin7games.exe" %PKG_REMOVE_SWITCH%'>	
		<exit code='any' />
	</remove>
</package>