Gictorbit/photoshopCClinux

winetricks is not needed

LanThrusteR opened this issue · 0 comments

Some comments to simplify the install script.

There is no need in winetricks at all as the re-packed PS comes with almost all the libraries you need. Add to the re-pack from Win7 64: atmlib.dll + gdiplus.dll + d3d10_1.dll + d3d10_1core.dll + d3d10level9.dll + d3d10warp.dll + d3d11.dll + d3d9.dll + dxgi.dll

and then register (if Photoshop.exe is the name of executable, but I suggest to renaming it to something like PhotoshopSE.exe to avoid collisions with the other PS versions that might be installed):

ps.reg

REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\AppDefaults\Photoshop.exe]

[HKEY_CURRENT_USER\Software\Wine\AppDefaults\PhotoshopSE.exe\DllOverrides]
"api-ms-win-core-console-l1-1-0"="native,builtin"
"api-ms-win-core-datetime-l1-1-0"="native,builtin"
"api-ms-win-core-debug-l1-1-0"="native,builtin"
"api-ms-win-core-errorhandling-l1-1-0"="native,builtin"
"api-ms-win-core-file-l1-1-0"="native,builtin"
"api-ms-win-core-file-l1-2-0"="native,builtin"
"api-ms-win-core-file-l2-1-0"="native,builtin"
"api-ms-win-core-handle-l1-1-0"="native,builtin"
"api-ms-win-core-heap-l1-1-0"="native,builtin"
"api-ms-win-core-interlocked-l1-1-0"="native,builtin"
"api-ms-win-core-libraryloader-l1-1-0"="native,builtin"
"api-ms-win-core-localization-l1-2-0"="native,builtin"
"api-ms-win-core-memory-l1-1-0"="native,builtin"
"api-ms-win-core-namedpipe-l1-1-0"="native,builtin"
"api-ms-win-core-processenvironment-"="native,builtin"
"api-ms-win-core-processthreads-l1-1-"="native,builtin"
"api-ms-win-core-profile-l1-1-0"="native,builtin"
"api-ms-win-core-string-l1-1-0"="native,builtin"
"api-ms-win-core-synch-l1-1-0"="native,builtin"
"api-ms-win-core-synch-l1-2-0"="native,builtin"
"api-ms-win-core-sysinfo-l1-1-0"="native,builtin"
"api-ms-win-core-timezone-l1-1-0"="native,builtin"
"api-ms-win-core-util-l1-1-0"="native,builtin"
"api-ms-win-crt-conio-l1-1-0"="native,builtin"
"api-ms-win-crt-convert-l1-1-0"="native,builtin"
"api-ms-win-crt-environment-l1-1-0"="native,builtin"
"api-ms-win-crt-filesystem-l1-1-0"="native,builtin"
"api-ms-win-crt-heap-l1-1-0"="native,builtin"
"api-ms-win-crt-locale-l1-1-0"="native,builtin"
"api-ms-win-crt-math-l1-1-0"="native,builtin"
"api-ms-win-crt-multibyte-l1-1-0"="native,builtin"
"api-ms-win-crt-runtime-l1-1-0"="native,builtin"
"api-ms-win-crt-stdio-l1-1-0"="native,builtin"
"api-ms-win-crt-string-l1-1-0"="native,builtin"
"api-ms-win-crt-time-l1-1-0"="native,builtin"
"api-ms-win-crt-utility-l1-1-0"="native,builtin"
"atmlib"="native,builtin"
"d3d10_1"="native,builtin"
"d3d10_1core"="native,builtin"
"d3d10level9"="native,builtin"
"d3d10warp"="native,builtin"
"d3d11"="native,builtin"
"d3d9"="native,builtin"
"dxgi"="native,builtin"
"gdiplus"="native,builtin"
"msvcp120"="native,builtin"
"msvcp140"="native,builtin"
"msvcp90"="native,builtin"
"msvcr120"="native,builtin"
"ucrtbase"="native,builtin"
"vcruntime140"="native,builtin"

Remember - windows always looks for the libraries where exe file is located first, and wine does the same. Therefore copy (most of the libraries are already there) atmlib + gdiplus + d3d10_1 + d3d10_1core + d3d10level9 + d3d10warp + d3d11 + d3d9 + dxgi to the same folder where Photoshop.exe started to the re-pack and then register the file above with regedit.exe ps.reg and you won't need winetricks at all, and you won't have to make wine-wide overrides, they will only exist for the Photoshop.exe. Then all dependencies on winetricks could be safely removed. fontsmooth=rgb is a bad idea, I recommend to turn it off especially when used with native gdiplus.dll

msxml3 msxml6 are NOT USED by CC18 there are no pulls on these dll's from Wine you don't seem to need them (I do without them). But OpenGL acceleration is more likely to work with the native d3d10 (which CS18 uses) and which are omitted by winetricks from the original installer. Anyway you don't need winetricks at all.

If you noticed the re-pack comes with most of the required libraries which you overload with winetricks. That is absolutely unnecessary all you have to do is to make wine to use them. And you do it by registering overrides using ps.reg