Difference between revisions of "Picasa"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Command-line Switches)
 
(36 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Google Picasa is a handy picture album tool. Download it at [http://picasa.google.com/ Picasa homepage].
+
Google Picasa is a photo album and editing tool. Download it from [http://picasa.google.com/ http://picasa.google.com/]. When new versions are released they're available from picasa.google.com (where the filename is picasa<version>-setup.exe) before they are from the likes of picasa.google.co.uk (where the filename is picasaweb-current-setup.exe).
 +
 
 +
Readme: [http://picasa-readme.blogspot.com/ picasa-readme.blogspot.com/]
 +
 
 +
Picasa is not that easy to silently install. Mainly because it forks processes after installation which have to be terminated. Therefore you need the Microsoft Taskkill command installed for it to work.
 +
 
 +
 
 +
== Picasa 3.x ==
 +
 
 +
Picasa 3 installs by default into %PROGRAMFILES%\Google\Picasa3 (on 32-bit versions of Windows), or %PROGRAMFILES(X86)% (on 64-bit versions of Windows).
 +
 
 +
Silently installing Picasa 3 when Picasa 2 is installed will automatically remove Picasa 2.
 +
 
 +
Picasa 3 doesn't include the Picasa Media Detector included with earlier versions.
 +
 
 +
The Picasa uninstaller will open a web browser to ask for feedback.
 +
 
 +
Beginning with version 3.9 Build 137.76 Picasa installs the 'Google+ Auto Backup' program.
 +
 
 +
===Command-line Switches===
 +
 
 +
* /S - silent install and uninstall
 +
* /L - don't launch Picasa after install
 +
* /L1 - add a desktop icon
 +
* /L2 - don't add a desktop shortcut
 +
 
 +
===WPKG Package===
  
Use the following XML file to perform a silent installation:
 
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="utf-8" ?>
 
<?xml version="1.0" encoding="utf-8" ?>
 
<packages>
 
<packages>
  
<package id='Picasa' name='Picasa' revision='27' priority='50' reboot='false' >
+
<package id='Picasa' name='Picasa' revision='3' priority='3' reboot='false' >
  <!-- Picasa album program -->
+
 
   <check type='uninstall' condition='exists' path='Picasa 2' />
+
   <check type='uninstall' condition='exists' path='Picasa 3' />
   <install cmd='"%SOFTWARE%\Picasa v.2.7 (Build 36.60, 0)\setup.exe" /S' />
+
 
  <install cmd='cmd /C taskkill /F /IM Picasa2.exe' >
+
   <install cmd='"%SOFTWARE%\Picasa\picasa39-setup.exe" /S /L' >
 
     <exit code='1' />
 
     <exit code='1' />
 
     <exit code='128' />
 
     <exit code='128' />
 
   </install>
 
   </install>
  <install cmd='cmd /C taskkill /F /IM PicasaMediaDetector.exe' >
+
 
    <exit code='1' />
+
   <upgrade cmd='"%SOFTWARE%\Picasa\picasa39-setup.exe" /S /L' >
    <exit code='128' />
+
  </install>
+
  <install cmd='cmd /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Picasa Media Detector" /f' />
+
   <upgrade cmd='"%SOFTWARE%\Picasa v.2.7 (Build 36.60, 0)\setup.exe" /S' />
+
  <upgrade cmd='cmd /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Picasa Media Detector" /f' />
+
  <upgrade cmd='cmd /C taskkill /F /IM Picasa2.exe' >
+
 
     <exit code='1' />
 
     <exit code='1' />
 
     <exit code='128' />
 
     <exit code='128' />
 
   </upgrade>
 
   </upgrade>
   <upgrade cmd='cmd /C taskkill /F /IM PicasaMediaDetector.exe' >
+
 
    <exit code='1' />
+
   <remove cmd="%PROGRAMFILES%\Google\Picasa3\Uninstall.exe /S"/>
     <exit code='128' />
+
 
   </upgrade>
+
  <!-- The uninstaller terminates before the files have actually been deleted and the registry updated, so WPKG thinks
  <upgrade cmd='cmd /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Picasa Media Detector" /f' />
+
the app is still installed despite the uninstaller seeming to finish successfully. WPKG will then reinstall the app on
 +
the next run, then uninstall it. If we wait before allowing WPKG to run its 'check' on 'uninstall' then everything will
 +
be OK. See http://comments.gmane.org/gmane.comp.package-management.wpkg.user/8411 -->
 +
  <remove cmd='%COMSPEC% /C ping -n 30 127.0.0.1 1>NUL 2>NUL' >
 +
     <exit code="any" />
 +
   </remove>
 +
 
 
</package>
 
</package>
  
Line 35: Line 60:
 
</source>
 
</source>
  
 +
=== Auto Update ===
 +
 +
Picasa's auto update feature defaults to 'update automatically'. For administrators or Power Users, when they first run Picasa it auto updates without prompting, even before you've managed to run it for the first time.
 +
For Limited user accounts, this setting causes it to prompt the user, asking if they want to update.
 +
 +
The automatic update feature can be turned off in various ways:
 +
 +
====GUI (Per-user)====
 +
Tools → Options → General → Automatic Updates → Don't check for updates
 +
 +
====Registry (Per-user)====
 +
HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences\AutoUpgradeCheck=dword:00000000
 +
HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences\AutoUpgradeAsk=dword:00000000
 +
(Note that even Picasa 3 creates / uses this Picasa 2 registry key, rather than creating a new Picasa 3 key)
 +
 +
====Google Updater Service (system-wide)====
 +
Note that you might require the Google Updater Service for updating other Google software, such as Google Chrome.
 +
 +
You can disable the Google Updater Service using either:
 +
 +
Change the Startup Mode of the Google Updater service:
 +
sc config gusvc start= disabled
  
Please note that this package is not that easy to silently install. Mainly because it forks processes after installation which have to be terminated. Therefore you need the Microsoft Taskkill command installed for it to work.
+
Uninstall the Google Updater service:
 +
"%PROGRAMFILES%\Google\Common\Google Updater\GoogleUpdaterService" /UnregServer
 +
"%PROGRAMFILES(X86)%\Google\Common\Google Updater\GoogleUpdaterService" /UnregServer
  
An uninstall string is not yet provided. As far as I recall I did not manage to get a fully unattended installation from Picasa :-(.
+
References:
 +
* http://www.internetbestsecrets.com/2008/04/google-updater-service.html
 +
* http://googlesystem.blogspot.com/2006/12/google-updater-service.html
 +
* http://googlesystem.blogspot.com/2008/10/invisible-googleupdateexe.html
  
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Latest revision as of 02:18, 17 September 2014

Google Picasa is a photo album and editing tool. Download it from http://picasa.google.com/. When new versions are released they're available from picasa.google.com (where the filename is picasa<version>-setup.exe) before they are from the likes of picasa.google.co.uk (where the filename is picasaweb-current-setup.exe).

Readme: picasa-readme.blogspot.com/

Picasa is not that easy to silently install. Mainly because it forks processes after installation which have to be terminated. Therefore you need the Microsoft Taskkill command installed for it to work.


Picasa 3.x

Picasa 3 installs by default into %PROGRAMFILES%\Google\Picasa3 (on 32-bit versions of Windows), or %PROGRAMFILES(X86)% (on 64-bit versions of Windows).

Silently installing Picasa 3 when Picasa 2 is installed will automatically remove Picasa 2.

Picasa 3 doesn't include the Picasa Media Detector included with earlier versions.

The Picasa uninstaller will open a web browser to ask for feedback.

Beginning with version 3.9 Build 137.76 Picasa installs the 'Google+ Auto Backup' program.

Command-line Switches

  • /S - silent install and uninstall
  • /L - don't launch Picasa after install
  • /L1 - add a desktop icon
  • /L2 - don't add a desktop shortcut

WPKG Package

<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='Picasa' name='Picasa' revision='3' priority='3' reboot='false' >

  <check type='uninstall' condition='exists' path='Picasa 3' />

  <install cmd='"%SOFTWARE%\Picasa\picasa39-setup.exe" /S /L' >
    <exit code='1' />
    <exit code='128' />
  </install>

  <upgrade cmd='"%SOFTWARE%\Picasa\picasa39-setup.exe" /S /L' >
    <exit code='1' />
    <exit code='128' />
  </upgrade>

  <remove cmd="%PROGRAMFILES%\Google\Picasa3\Uninstall.exe /S"/>

  <!-- The uninstaller terminates before the files have actually been deleted and the registry updated, so WPKG thinks
the app is still installed despite the uninstaller seeming to finish successfully. WPKG will then reinstall the app on 
the next run, then uninstall it. If we wait before allowing WPKG to run its 'check' on 'uninstall' then everything will 
be OK. See http://comments.gmane.org/gmane.comp.package-management.wpkg.user/8411 -->
  <remove cmd='%COMSPEC% /C ping -n 30 127.0.0.1 1>NUL 2>NUL' >
    <exit code="any" />
  </remove>

</package>

</packages>

Auto Update

Picasa's auto update feature defaults to 'update automatically'. For administrators or Power Users, when they first run Picasa it auto updates without prompting, even before you've managed to run it for the first time. For Limited user accounts, this setting causes it to prompt the user, asking if they want to update.

The automatic update feature can be turned off in various ways:

GUI (Per-user)

Tools → Options → General → Automatic Updates → Don't check for updates

Registry (Per-user)

HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences\AutoUpgradeCheck=dword:00000000
HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences\AutoUpgradeAsk=dword:00000000

(Note that even Picasa 3 creates / uses this Picasa 2 registry key, rather than creating a new Picasa 3 key)

Google Updater Service (system-wide)

Note that you might require the Google Updater Service for updating other Google software, such as Google Chrome.

You can disable the Google Updater Service using either:

Change the Startup Mode of the Google Updater service:

sc config gusvc start= disabled

Uninstall the Google Updater service:

"%PROGRAMFILES%\Google\Common\Google Updater\GoogleUpdaterService" /UnregServer
"%PROGRAMFILES(X86)%\Google\Common\Google Updater\GoogleUpdaterService" /UnregServer

References: