Changes
Update package to use a %shortversion% variable, so that most of the time you only need to change the "version" and "shortversion" variables
<variable name="version" value="10.2.152.32" />
<variable name="shortversion" value="10n" />
<check type="uninstall" condition="exists" path="Adobe Flash Player 10 ActiveX" />
<check type="logical" condition="or">
<check type="file" condition="versionequalto" path="%SYSTEMROOT%\system32\Macromed\Flash\Flash10nFlash%shortversion%.ocx" value="%version%"/> <check type="file" condition="versionequalto" path="%SYSTEMROOT%\SysWOW64\Macromed\Flash\Flash10nFlash%shortversion%.ocx" value="%version%"/>
</check>
<upgrade cmd='%SOFTWARE%\flash\install_flash_player_ax.exe /install' />
<remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\system32\Macromed\Flash\FlashUtil10n_ActiveXFlashUtil%shortversion%_ActiveX.exe" "%SYSTEMROOT%\system32\Macromed\Flash\FlashUtil10n_ActiveXFlashUtil%shortversion%_ActiveX.exe" /uninstall'/> <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\SysWOW64\Macromed\Flash\FlashUtil10n_ActiveXFlashUtil%shortversion%_ActiveX.exe" "%SYSTEMROOT%\SysWOW64\Macromed\Flash\FlashUtil10n_ActiveXFlashUtil%shortversion%_ActiveX.exe" /uninstall'/>
</package>
</source>
<variable name="version" value="10.2.152.32" />
<variable name="shortversion" value="10n" />
<check type="uninstall" condition="exists" path="Adobe Flash Player 10 Plugin" />
<upgrade cmd='%SOFTWARE%\flash\install_flash_player.exe /install' />
<remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\system32\Macromed\Flash\FlashUtil10n_PluginFlashUtil%shortversion%_Plugin.exe" "%SYSTEMROOT%\system32\Macromed\Flash\FlashUtil10n_PluginFlashUtil%shortversion%_Plugin.exe" /uninstall'/> <remove cmd='%COMSPEC% /C if exist "%SYSTEMROOT%\SysWOW64\Macromed\Flash\FlashUtil10n_PluginFlashUtil%shortversion%_Plugin.exe" "%SYSTEMROOT%\SysWOW64\Macromed\Flash\FlashUtil10n_PluginFlashUtil%shortversion%_Plugin.exe" /uninstall'/>
</package>
</source>