Monday, October 28, 2013

Canon Digital Photo Professional 3.13 for Ubuntu 13.10 (64 bit) and Wine 1.7

After going through the procedure on this forum link on how to install Canon Digital Photo Professional (DPP) on Ubuntu, I decided to post a detailed and latest set of instructions. You'll need some patience during the installation procedure because it is not straight forward.

I am on the latest 64-bit version of Ubuntu (13.10 Saucy Salamander). Before you start a fresh install of DPP you'll need the following:

  1. Wine (I have the latest version 1.7) installed - to do so open a Terminal (Ctrl + Alt + T) and type the following commands
    • sudo add-apt-repository ppa:ubuntu-wine/ppa
    • sudo apt-get update
    • sudo apt-get install wine1.7 winetricks
  2. Download the latest updater package of DPP (edit: I used the 32-bit version). I downloaded DPP 3.13.45 from Canon India
  3. Now, the updater installation works only when an earlier version of DPP is installed. Since this is a fresh install we'll need to create registry keys in Wine to fool the installer. This is the procedure
    • Open Winetricks
    • Ensure Select the default wineprefix is selected and click OK
    • Select Run regedit and click OK
    • Expand HKEY_LOCAL_MACHINE and select Software
    • In the toolbar click Edit--> New --> Key
    • Type Canon
    • Select Canon
    • In the toolbar click Edit--> New --> Key
    • Type DPP
  4. The next steps are very important, follow carefully
    • Run the Canon DPP installer package using Wine
    • Select the region click Next
    • Select the country click Next
    • The Legal disclaimer page will be displayed. When you click Next the installation will crash. Dismiss the error message but do not close the installer.
  5. Confirm the following two folders exist by using any file manager then proceed to step 6
    • ~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/
    • ~/.wine/drive_c/users/<userid>/Temp/CanonOFI_TEMP/Data/SOFTWARE
  6. If you have closed the earlier terminal open a new one and enter the following commands
    • cabextract -d "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/" "~/.wine/drive_c/users/<userid>/Temp/CanonOFI_TEMP/Data/SOFTWARE/DPP/en/resdata.CAB"
    • cabextract -d "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/" "~/.wine/drive_c/users/<userid>/Temp/CanonOFI_TEMP/Data/SOFTWARE/DPP/COMMON/program.CAB"
    • cabextract -d "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/"/icc "~/.wine/drive_c/users/<userid>/Temp/CanonOFI_TEMP/Data/SOFTWARE/DPPLib/COMMON/DATA.CAB"
    • mv "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/"/icc/*.dll "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/"
    • cabextract -d "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/" "~/.wine/drive_c/users/<userid>/Temp/CanonOFI_TEMP/Data/SOFTWARE/Image%20Handling%20Library%20Core%20Common/COMMON/IHLCC.CAB"
  7. Close the DPP installer. There should be a desktop icon of DPP or find DPP in the Application Scope and open the application
  8. If the application does not open type the following command in the terminal and try step 7 again.
    •  regsvr32 "~/.wine/drive_c/Program Files (x86)/Canon/Digital Photo Professional/"/*.dll