<div dir="ltr">Here's mine.  I have a bunch of idiosyncrasies and bits and pieces of cleanup commands, but the core of it is pretty straightforward.<div><br></div><div>The biggest part is probably the <check> -- chrome.exe file versioning has been very consistent in matching the build number.</div><div><br></div><div><package<br>                   id="chrome"<br>                 name="Google Chrome"<br>                        revision="%version%"<br>                        reboot="postponed"<br>                  priority="50"><br><br>         <chain package-id="chromepref"/><br><br>            <br>              <!-- <variable name="version" value="84.0.4147.125" /> --><br>            <variable name="version" value="84.0.4147.135" /><br>           <variable name="version" value="84.0.4147.135" groups="testing"/> <br>                <variable name="PKG_DESTINATION" value="%ProgramFiles%\Google\Chrome\Application" architecture="x86"/><br>            <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\Google\Chrome\Application" architecture="x64"/><br><br>             <check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%\chrome.exe" value="%version%" /><br><br>         <install timeout="180" cmd='msiexec /i "%TEMP%\wpkg\googlechromestandaloneenterprise64-%version%.msi" NOGOOGLEUPDATEPING=1 /qn /norestart' ><br>                        <download url="%HTTP%/Chrome/GoogleChromeStandaloneEnterprise64-%version%.msi" target="wpkg\googlechromestandaloneenterprise64-%version%.msi" /><br>            </install><br>              <install cmd='%COMSPEC% /C del /Q "%SYSTEMDRIVE%\Users\Public\Desktop\Google Chrome.lnk" ' ><br>                  <exit code="any" /><br>           </install><br>              <!-- The following services are default to MANUAL.  If they are disabled, then GoogleUpdate.exe prompts via UAC in order to run.  So, this adds another layer before GoogleUpdate can run (with applied policy) --><br>           <install cmd='sc config "gupdate" start= disabled' ><br>                  <exit code='1060' /><br>            </install><br>              <install cmd='sc config "gupdatem" start= disabled' ><br>                 <exit code='1060' /><br>            </install><br>              <br>              <install cmd='gpupdate /force' ><br>                        <condition><br>                             <check type="logical" condition="not" ><br>                                     <check type="registry" condition="exists" path="HKLM\SOFTWARE\Policies\Google\Update\UpdateDefault" /><br>                            </check><br>                        </condition><br>                    <exit code='any' /><br>             </install><br>              <br>              <upgrade cmd='%COMSPEC% /C taskkill /im chrome.exe /F' ><br>                        <exit code="any" /><br>           </upgrade><br>              <upgrade cmd='%COMSPEC% /C taskkill /im GoogleUpdate.exe /F' ><br>                  <exit code="any" /><br>           </upgrade><br>              <upgrade cmd='%COMSPEC% /C forfiles /P "%ProgramFiles(x86)%\Google\Update\Download\{8A69D345-D564-463C-AFF1-A69D9E530F96}" /S /M chrome_installer.exe /C "%COMSPEC% /C @path --system-level"' ><br>                     <exit code="any" /><br>           </upgrade><br><br>            <upgrade include="install" /> <br><br>              <remove cmd='msiexec /qn /x %TEMP%\wpkg\googlechromestandaloneenterprise64-%version%.msi' ><br>                     <download url="%HTTP%/Chrome/GoogleChromeStandaloneEnterprise64-%version%.msi" target="wpkg\googlechromestandaloneenterprise64-%version%.msi" /><br>            </remove></div><div><br></div><div><br><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br>Kris Lou<br><a href="mailto:klou@themusiclink.net" target="_blank">klou@themusiclink.net</a></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 24, 2020 at 7:03 AM Steve Kersley <<a href="mailto:steve.kersley@keble.ox.ac.uk">steve.kersley@keble.ox.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_8395242207989881582WordSection1">
<p class="MsoNormal">Does anyone have a decent way to create a package for Google Chrome that works reliably?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Being a simple MSI, it should be straightforward.  But our finding is that some of the time, in an inconsistent and unpredictable way, the enterprise version of Chrome sometimes installs itself with the MSI version number rather than the
 Chrome version number (from the current version: ’68.12.49287’ vs ’84.0.4147.135’).  Obviously this triggers wpkg to think there’s a new version when there isn’t as the versions don’t match.  The installer itself knows not to update which doesn’t clear the
 problem – the version number showing in Add/Remove remains the MSI version until the next update.  If it was consistently one way or the other, it would be trivial.  But I’d estimate it gets it right about 80% of the time.  There’s been an open issue on the
 Chromium issue tracker about it doing this for 10 years with still no fix, or even acknowledgement that there’s a problem to fix:
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=67348" target="_blank">https://bugs.chromium.org/p/chromium/issues/detail?id=67348</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In normal circumstances, I would (and have done for some time) just leave it, it doesn’t cause any harm to have it try to reinstall Chrome.  But in these strange times, I have a lot of staff remote working via remote desktop, and they are
 reluctant to reboot their PCs remotely at the end of the day.  As a result I’ve been trialling ‘sonicnkt’s fork of wpkg-gp plus the system tray client that notifies of pending updates, and the problem now is that when Chrome has installed itself like this,
 the tray tool pops up an update notification every 30m or so, for an update that simply won’t go away.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Steve.<u></u><u></u></p>
</div>
</div>

---------------------------------<br>
wpkg-users mailing list archives >> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" rel="noreferrer" target="_blank">http://lists.wpkg.org/pipermail/wpkg-users/</a><br>
_______________________________________________<br>
wpkg-users mailing list<br>
<a href="mailto:wpkg-users@lists.wpkg.org" target="_blank">wpkg-users@lists.wpkg.org</a><br>
<a href="https://lists.wpkg.org/mailman/listinfo/wpkg-users" rel="noreferrer" target="_blank">https://lists.wpkg.org/mailman/listinfo/wpkg-users</a><br>
</blockquote></div>