SOLVED

[MSIX] - Packaging GIMP

%3CLINGO-SUB%20id%3D%22lingo-sub-859797%22%20slang%3D%22en-US%22%3E%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-859797%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20an%20MSIX%20from%20GIMP.%20When%20running%20the%20application%20I%20get%20approximately%20100%20error%20messages%20that%20various%20.dll%20files%20cannot%20be%20found.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20happens%3A%3C%2FP%3E%3COL%3E%3CLI%3EVFS%5CProgramFilesX64%5CGIMP%202%5Cbin%5Cgimp-2.10.exe%20is%20started.%3C%2FLI%3E%3CLI%3EAfter%20a%20while%20the%20application%26nbsp%3BVFS%5CProgramFilesX64%5CGIMP%202%5Clib%5Cgimp%5C2.0%5Cplug-ins%5Cweb-page%5Cweb-page.exe%20is%20started.%3C%2FLI%3E%3CLI%3EDuring%20the%20startup%20process%2C%20I%20get%20an%20error%20that%20the%20file%26nbsp%3Blibgimpui-2.0-0.dll%20cannot%20be%20found.%20That%20file%20is%20located%20in%26nbsp%3BVFS%5CProgramFilesX64%5CGIMP%202%5Cbin%3C%2FLI%3E%3C%2FOL%3E%3CP%3ETo%20workaround%20I%20created%20a%20PSF%3A%3C%2FP%3E%3CUL%3E%3CLI%3EModified%26nbsp%3BAppxManifest.xml%3A%3CBR%20%2F%3E%3CAPPLICATION%20id%3D%22%26quot%3BGIMPTwoOneZero%26quot%3B%22%20executable%3D%22%26quot%3BPsfLauncher64.exe%26quot%3B%22%20entrypoint%3D%22%26quot%3BWindows.FullTrustApplication%26quot%3B%22%3E%3C%2FAPPLICATION%3E%3C%2FLI%3E%3CLI%3ECreated%20config.json%3A%3CBR%20%2F%3E%3CP%3E%7B%3C%2FP%3E%3CP%3E%22applications%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%20%22GIMPTwoOneZero%22%2C%3CBR%20%2F%3E%22executable%22%3A%20%22VFS%5C%5CProgramFilesX64%5C%5CGIMP%202%5C%5Cbin%5C%5Cgimp-2.10.exe%22%2C%3CBR%20%2F%3E%22workingDirectory%22%3A%20%22VFS%5C%5CProgramFilesX64%5C%5CGIMP%202%5C%5Cbin%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3C%2FP%3E%3CP%3E%22processes%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22executable%22%3A%20%22.*%22%2C%3CBR%20%2F%3E%22fixups%22%3A%20%5B%20%7B%20%22dll%22%3A%20%22PsfRuntime64.dll%22%20%7D%20%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3C%2FP%3E%3CP%3E%7D%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%20created%20a%20new%20MSIX%20package%20and%20signed%20it.%20When%20running%20the%20application%20the%20'main'%20gimp-2.10.exe%20is%20started%20and%20is%20closed%20immediately.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20question%20is%20what%20I%20should%20do%20to%20get%20this%20package%20working.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20feedback%20is%20appreciated%20and%20with%20kind%20regards%2C%3C%2FP%3E%3CP%3EWillem-Jan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-860958%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-860958%22%20slang%3D%22en-US%22%3E%3CP%3EBest%20solution%20is%20to%20remove%20Plugin%20folder%20from%20the%20VFS.%3C%2FP%3E%3CP%3EIssue%20is%20with%20loading%20bin%20folder%20DLL's.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-861341%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-861341%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411024%22%20target%3D%22_blank%22%3E%40pandaysumitroy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20for%20your%20reply.%20Removing%20the%20plugins%20folder%20is%20an%20idea%2C%20but%20not%20a%20very%20good%20one.%20Then%20I%20will%20end%20up%20with%20a%20version%20without%20the%20plugins.%20And%20that%20is%20not%20what%20I%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20kind%20regards%2C%3C%2FP%3E%3CP%3EWillem%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-863052%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-863052%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410556%22%20target%3D%22_blank%22%3E%40TheStingPilot%3C%2FA%3E%26nbsp%3BFor%20workaround%20you%20can%20follow%20below%20steps%20.%3C%2FP%3E%3CP%3EYou%20can%20rename%20or%20delete%20plugin%20folder%20from%20VFS%20%5BVFS%5CUserProgramFiles%5CGIMP%202%5Clib%5Cgimp%5C2.0%5Cplug-ins%5D.%3C%2FP%3E%3CP%3EGIMP%20will%20load%20successfully%20after%20disabling%20plug-ins%20folder.%3C%2FP%3E%3CP%3EOn%20launch%20-%20go%20to%20EDIT%20-%26gt%3B%20Preference%20and%20specify%20the%20plugin%20folder.you%20can%20copy%20the%20plugin%20folder%20from%20working%20machine%20and%20it%20can%20be%20used%20to%20load%20GIMP%20plugin.%3C%2FP%3E%3CP%3ENo%20idea%20why%20its%20unable%20to%20load%20plugin%20from%20VFS%20directory.%3C%2FP%3E%3CP%3Ei%20am%20also%20stuck%20with%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-863816%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-863816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410556%22%20target%3D%22_blank%22%3E%40TheStingPilot%3C%2FA%3EFound%20a%20workarround.%20If%20you%20check%20what%20is%20happening%20with%20Procmon%2C%20apparently%20all%20the%20plugins%20are%20searching%20in%20the%20base%20directory%2C%20for%20example%20C%3A%5CProgram%20Files%5CWindowsApps%5CTheGIMPTeam.GIMP_2.10.12.0_x64__r21n0w1rc5s2y%5C.%20The%20file%20redirection%20that%20you%20tried%20in%20theory%20works%2C%20and%20the%20plugins%20are%20looking%20in%20the%20BIN%20folder%20for%20de%20DLLs.%20However%2C%20for%20whatever%20reason%2C%20that%20breaks%20the%20gimp-2.10.exe%20because%20its%20somehow%20loading%20the%20same%20dll%20twice%3F%20At%20least%20thats%20what%20i'm%20seeing%20from%20procmon.%20I%20don't%20want%20to%20say%20anything%20wront%20why%20gimp%20is%20not%20starting%2C%20but%20when%20you%20create%20a%20redirection%2C%20i%20see%20only%20buffer%20overflow%20for%20all%20dlls.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20if%20you%20look%20closely%20in%20procmon%2C%20each%20and%20every%20plugin%20will%20always%20search%20for%20the%20required%20DLL%20in%203%20places%3A%3C%2FP%3E%3CP%3E1.%20In%20the%20bin%20folder%20where%20gimp.exe%20exists%3C%2FP%3E%3CP%3E2.%20In%20the%20lib%20folder%20where%20the%20plugin%20is%3C%2FP%3E%3CP%3E3.%20In%20the%20System32%20folder%20(C%3A%5CWindows%5CSystem32)%20-%2064bit%20plugins%3C%2FP%3E%3CP%3E4.%20In%20the%20Syswow64%20folder%20(C%3A%5CWindos%5CSyswow64)%20-%2032bit%20plugins%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20with%20Advanced%20Installer%2C%20i've%20made%20a%20capture%20and%20copied%20all%20the%20dlls%20from%20the%20BIN%20folder%20to%20System64%20(C%3A%5CWindows%5CSystem32).%20And%2099%25%20works%2C%20only%20twain.exe%20doesn't%20start%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20fix%20twain.exe%20to%20start%20correctly%20we%20also%20need%20to%20copy%20the%20dlls%20from%2032%5Cbin%20to%20System32%20(C%3A%5CWindows%5CSyswow64).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20everything%20works%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKeep%20in%20mind%20that%2C%20if%20you%20look%20it%20up%2C%20gimp%20has%20issues%20with%20managing%20plugins%20in%20general.%20There%20are%20plugins%20that%20as%20a%20normal%20installation%20require%20copying%20some%20base%20DLLs%20in%20their%20own%20separate%20plugin%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20the%20copying%20of%20the%20dll%20files%20in%20System32%20and%20Syswow64%20solves%20the%20problems%2C%20without%20any%20other%20file%20redirections%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-864020%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-864020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410556%22%20target%3D%22_blank%22%3E%40TheStingPilot%3C%2FA%3E%26nbsp%3B%20Found%20a%20solution%20for%20it%20to%20work.%20If%20we%20look%20on%20what%20is%20happening%20with%20the%20gimp%20with%20procmon%2C%20we%20can%20see%20that%20plugins%20are%20looking%20in%20the%20root%20directory%20for%20the%20DLLs%2C%20for%20example%20C%3A%5CProgram%20Files%5CWindowsApps%5CTheGIMPTeam.GIMP_2.10.12.0_x64__r21n0w1rc5s2y%5C.%20Altough%20a%20file%20redirection%20makes%20the%20plugins%20to%20search%20in%20the%20correct%20subfolder%20(bin)%2C%20this%20breaks%20the%20gimp.exe%20functionality.%20For%20whatever%20reason%20all%20dll%20reads%20now%20show%20buffer%20overflow%2C%20i%20am%20not%20sure%20why.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20if%20you%20look%20closely%20with%20procmon%2C%20you%20will%20see%20that%20each%20and%20every%20plugin%20searches%20for%20the%20dlls%20in%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20BIN%20folder%3C%2FP%3E%3CP%3E2.%20Inside%20the%20plugin%20folder%20of%20each%20plugin%3C%2FP%3E%3CP%3E3.%20System64%20(C%3A%5CWindows%5CSystem32)%20-%20For%2064bit%20plugins%3C%2FP%3E%3CP%3E4.%20System32%20(C%3A%5CWindows%5CSyswow64)%20-%20For%2032bit%20plugins%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20made%20a%20capture%20of%20gimp%20with%20Advanced%20Installer%20and%20copied%20all%20the%20DLLs%20from%20BIN%20to%20System64.%20After%20a%20compile%20and%20installation%20almost%20everyting%20works%2C%2099%25%2C%20with%20an%20exception%2C%20twain.exe%2C%20this%20crashes%20but%20gimp.exe%20is%20loaded.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20fix%20the%20twain.exe%20and%20everything%20to%20work%2C%20you%20must%20copy%20the%20plugins%20from%2032%5CBIN%20to%20System32.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20everything%20works.%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-864030%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-864030%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410556%22%20target%3D%22_blank%22%3E%40TheStingPilot%3C%2FA%3EFound%20a%20workarround%20for%20this.%20If%20we%20check%20with%20procmon%20what%20is%20happening%2C%20after%20gimp%20is%20loaded%2C%20the%20plugins%20are%20searching%20for%20some%20DLLS%20in%20BIN.%20While%20the%20psf%20redirection%20works%20and%20the%20plugins%20then%20search%20in%20the%20correct%20directory%2C%20for%20whatever%20reason%20gimp.exe%20fails%20to%20start.%20When%20it%20calls%20to%20dlls%20it%20returns%20only%20buffer%20overflows.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20if%20we%20look%20closely%20in%20procmon%2C%20we%20can%20see%20that%20each%20and%20every%20plugin%20is%20searching%20for%20the%20DLL%20files%20in%203%20directories%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20The%20BIN%20folder%3C%2FP%3E%3CP%3E2.%20The%20plugin%20directory%20(each%20plugin%20searches%20in%20its%20own%20directory)%3C%2FP%3E%3CP%3E3.%20System64%20(C%3A%5CWindows%5CSystem32)%20-%20For%2064bit%20plugins%3C%2FP%3E%3CP%3E4.%20System32%20(C%3A%5CWindows%5CSyswow64)%20-%20For%2032bit%20plugins%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20made%20a%20capture%20of%20Gimp%20with%20Advanced%20Installer%2C%20and%2C%20without%20any%20redirections%2C%20i%20copied%20all%20the%20DLLs%20from%20the%20BIN%20folder%20in%20System64.%20After%20the%20installation%20almost%20everything%20seems%20to%20work%20(99%25)%2C%20except%20twain.exe.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20fix%20twain.exe%20to%20throw%20an%20error%2C%20you%20must%20also%20copy%20all%20the%20DLL%20files%20from%2032%5CBIN%20to%20System32.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20everything%20works%20correctly%20and%20applications%20starts%2Floads%20plugins.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%3CP%3EKind%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-867139%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-867139%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F287679%22%20target%3D%22_blank%22%3E%40alexmarin89%3C%2FA%3E%20Thank%20you%20for%20the%20workaround%2C%20above%20workaround%20resolves%20the%20startup%20error%20however%20%22Plug-In%20Broswer%22%20is%20not%20working.%3C%2FP%3E%3CP%3EYou%20can%20access%20Plugin%20Browser%20from%20Help%20%26gt%3B%20Plugin%20Browser%2C%20it%20details%20list%20of%20plugin%20installed.%3C%2FP%3E%3CP%3Ei%20doubt%20whether%20plugin%20are%20being%20loaded%20correctly.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132765i6C8A424DED1E4C98%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Erro3.jpg%22%20title%3D%22Erro3.jpg%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPLUGIN%20BROWSER%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20720px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132766i0385C9269EE02EDE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Erro2.JPG%22%20title%3D%22Erro2.JPG%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EERROR%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-868297%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-868297%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411024%22%20target%3D%22_blank%22%3E%40pandaysumitroy%3C%2FA%3E%26nbsp%3B%20Indeed%2C%20just%20tried%20it%20now%20and%20it%20doesn't%20work.%20Apparently%20this%20only%20suppresses%20the%20load%20failure%20of%20the%20plugins.%3C%2FP%3E%3CP%3EApparently%20the%20GIMP%20community%20is%20also%20%3CA%20href%3D%22https%3A%2F%2Fgitlab.gnome.org%2FGNOME%2Fgimp%2Fissues%2F1145%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Estruggling%20with%20these%20issues%3C%2FA%3E%20(also%20somebody%20else%20already%20tried%20to%20put%20the%20plugins%20in%20System32%20and%20System64%20with%20the%20same%20exact%20results).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20i%20did%20notice%20something%2C%20which%20i%20am%20not%20sure%20why%20is%20happening%20like%20this%20for%20the%20moment.%20While%20you%20capture%20GIMP%2C%20if%20you%20install%20it%20in%20other%20folder%20than%20the%20default%20one%20(C%3A%5CTest%20or%20C%3A%5CGimp%20or%20any%20other%20folder)%2C%20when%20you%20install%20the%20MSIX%20you%20won't%20receive%20the%20plugin%20failures%20anymore%20(so%20no%20need%20to%20copy%20the%20dlls%20in%20System32%20and%20System64).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20my%20opinion%20this%20has%20something%20to%20do%20with%20how%20GIMP%20gets%20the%20paths%20and%20the%20whole%20logic%20of%20finding%2Floading%20plugins.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%20searching%20for%20a%20work%20around%20to%20make%20it%20work%2C%20will%20let%20you%20know%20if%20i%20have%20any%20further%20progress%20with%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-868852%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-868852%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F287679%22%20target%3D%22_blank%22%3E%40alexmarin89%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20installed%20GIMP%20in%20C%3A%5CAPPS64%5CGimp%202%20but%20I%20still%20get%20the%20error%20messages%20that%20various%20.dll%20files%20cannot%20be%20found.%20(libgimp-2.0-0.dll%20for%20example).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20do%20some%20troubleshooting.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20kind%20regards%2C%3C%2FP%3E%3CP%3EWillem%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1129850%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1129850%22%20slang%3D%22en-US%22%3EHi%20Alex%2C%20and%20how%20did%20you%20figure%20out%20which%20DLLs%20are%2064%20bit%20and%20which%20are%2032%20bit%2C%20or%20you%20did%20a%20try-and-error%20scenario%3F%20I.e.%20Is%20there%20any%20trick%20in%20procmon%20or%20logic%20that%20if%20the%20app%20first%20searches%20in%20System32%20we%20are%20talking%20about%2064bit%20plugins%3F%20Thanks%20for%20your%20feedback.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-869167%22%20slang%3D%22en-US%22%3ERe%3A%20%5BMSIX%5D%20-%20Packaging%20GIMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-869167%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410556%22%20target%3D%22_blank%22%3E%40TheStingPilot%3C%2FA%3EI%20tested%202.10.12%20by%20creating%20the%20folder%20structure%20specified%20in%20their%20git%20board%20(C%3A%5COutput%5CGimp)%20and%20installed%20it%20there%20(the%20path%20should%20be%20after%20installation%20C%3A%5COutput%5CGimp%5CGimp%202).%3C%2FP%3E%3CP%3EAfter%20that%20in%20the%20capture%20with%20Advanced%20Installer%20i%20specified%20the%20application%20folder%20to%20be%20GIMP%202%2C%20that%20solved%20for%20me%20the%20problem%20of%20copying%20the%20dlls%20to%20system32%20and%20system64.%20But%20that%20doesn't%20work%20either.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20i've%20done%20more%20tests%20and%20i%20was%20thinking%20maybe%20something%20has%20changed%20since%20the%202.10%20release%20of%20GIMP...and%20indeed%20something%20has%20changed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20made%20a%20capture%20for%20GIMP%202.8.22.%20When%20you%20try%20to%20build%20it%20the%20first%20time%20you%20will%20receive%20some%20errors%20that%20GIMP%202%5C32%5Clib%5Cgimp%5C2.0%5Cpython%5Cgimp.pyd.debug'%20is%20not%20a%20valid%20Portable%20Executable%20for%20'Build_MSIX_APPX-%26gt%3Bx64'%20build%20and%20other%204%20or%205%20.debug%20files.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20deleted%20the%20files%2C%20doesn't%20seem%20to%20affect%20how%20it%20works.%20But%20of%20course%20i%20ran%20into%20the%20issues%20with%20the%20dlls%20that%20are%20not%20loading.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20again%20i've%20copied%20the%20dlls%20in%20System32%20and%20System64.%20I%20also%20changed%20the%20Application%20Folder%20to%20be%20in%20GIMP%202.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20after%20that%2C%20everything%20works!%20GIMP%202.8.22.0%20works%20with%20MSIX!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20now%20curious%20what%20are%20the%20differences%2C%20i%20will%20try%20to%20do%20some%20more%20digging%20to%20see%20if%20maybe%20it's%20something%20that%20can%20be%20solved%20for%20the%20latest%202.10%20releases%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20maybe%20it's%20some%20hardcoding%20in%20some%20files%2C%20the%20only%20thing%20i%20found%20it%20in%20pygimp.interp%20located%20in%20lib%5Cgimp%5C2.0%5Cinterpreters%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Epython%3DC%3A%5COutput%5CGimp%5CGIMP%202%5Cbin%5Cpythonw.exe%3CBR%20%2F%3Epython2%3DC%3A%5COutput%5CGimp%5CGIMP%202%5Cbin%5Cpythonw.exe%3CBR%20%2F%3E%2Fusr%2Fbin%2Fpython%3DC%3A%5COutput%5CGimp%5CGIMP%202%5Cbin%5Cpythonw.exe%3CBR%20%2F%3E%3APython%3AE%3A%3Apy%3A%3Apython%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20trying%20to%20dehardcode%20that%20file%20doesn't%20solve%20much.%20And%20with%20a%20normal%20installation%20if%20you%20delete%20that%20file%20it%20doesn't%20seem%20to%20affect%20the%20functionality%20of%20GIMP%2C%20so%20that's%20a%20no%20go%20there%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20get%20the%20MSIX%20for%202.8.22.0%20%3CA%20href%3D%22https%3A%2F%2F1drv.ms%2Fu%2Fs!Aur7_pRUgEnsiLljrcV30jjD_eWdpg%3Fe%3DXHDVWV%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F133001i169355CA139AA483%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.8.jpg%22%20title%3D%222.8.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I have created an MSIX from GIMP. When running the application I get approximately 100 error messages that various .dll files cannot be found.

 

What happens:

  1. VFS\ProgramFilesX64\GIMP 2\bin\gimp-2.10.exe is started.
  2. After a while the application VFS\ProgramFilesX64\GIMP 2\lib\gimp\2.0\plug-ins\web-page\web-page.exe is started.
  3. During the startup process, I get an error that the file libgimpui-2.0-0.dll cannot be found. That file is located in VFS\ProgramFilesX64\GIMP 2\bin

To workaround I created a PSF:

  • Modified AppxManifest.xml:
    <Application Id="GIMPTwoOneZero" Executable="PsfLauncher64.exe" EntryPoint="Windows.FullTrustApplication">
  • Created config.json:

    {

    "applications": [
    {
    "id": "GIMPTwoOneZero",
    "executable": "VFS\\ProgramFilesX64\\GIMP 2\\bin\\gimp-2.10.exe",
    "workingDirectory": "VFS\\ProgramFilesX64\\GIMP 2\\bin"
    }
    ],

    "processes": [
    {
    "executable": ".*",
    "fixups": [ { "dll": "PsfRuntime64.dll" } ]
    }
    ]

    }

I created a new MSIX package and signed it. When running the application the 'main' gimp-2.10.exe is started and is closed immediately.

 

My question is what I should do to get this package working.

 

Any feedback is appreciated and with kind regards,

Willem-Jan

11 Replies
Highlighted

Best solution is to remove Plugin folder from the VFS.

Issue is with loading bin folder DLL's.

 

 

Highlighted

@pandaysumitroy 

 

Hello,

 

Many thanks for your reply. Removing the plugins folder is an idea, but not a very good one. Then I will end up with a version without the plugins. And that is not what I want.

 

With kind regards,

Willem

Highlighted

@TheStingPilot For workaround you can follow below steps .

You can rename or delete plugin folder from VFS [VFS\UserProgramFiles\GIMP 2\lib\gimp\2.0\plug-ins].

GIMP will load successfully after disabling plug-ins folder.

On launch - go to EDIT -> Preference and specify the plugin folder.you can copy the plugin folder from working machine and it can be used to load GIMP plugin.

No idea why its unable to load plugin from VFS directory.

i am also stuck with the issue.

 

 

 

 

 

Highlighted

@TheStingPilotFound a workarround for this. If we check with procmon what is happening, after gimp is loaded, the plugins are searching for some DLLS in BIN. While the psf redirection works and the plugins then search in the correct directory, for whatever reason gimp.exe fails to start. When it calls to dlls it returns only buffer overflows.

 

However, if we look closely in procmon, we can see that each and every plugin is searching for the DLL files in 3 directories:

 

1. The BIN folder

2. The plugin directory (each plugin searches in its own directory)

3. System64 (C:\Windows\System32) - For 64bit plugins

4. System32 (C:\Windows\Syswow64) - For 32bit plugins

 

I have made a capture of Gimp with Advanced Installer, and, without any redirections, i copied all the DLLs from the BIN folder in System64. After the installation almost everything seems to work (99%), except twain.exe.

 

To fix twain.exe to throw an error, you must also copy all the DLL files from 32\BIN to System32.

 

After that everything works correctly and applications starts/loads plugins.

 

Hope this helps,

Kind regards.

Highlighted

@alexmarin89 Thank you for the workaround, above workaround resolves the startup error however "Plug-In Broswer" is not working.

You can access Plugin Browser from Help > Plugin Browser, it details list of plugin installed.

i doubt whether plugin are being loaded correctly.

PLUGIN BROWSERPLUGIN BROWSERERRORERROR

 

Highlighted
Best Response confirmed by TheStingPilot (New Contributor)
Solution

@pandaysumitroy  Indeed, just tried it now and it doesn't work. Apparently this only suppresses the load failure of the plugins.

Apparently the GIMP community is also struggling with these issues (also somebody else already tried to put the plugins in System32 and System64 with the same exact results).

 

However, i did notice something, which i am not sure why is happening like this for the moment. While you capture GIMP, if you install it in other folder than the default one (C:\Test or C:\Gimp or any other folder), when you install the MSIX you won't receive the plugin failures anymore (so no need to copy the dlls in System32 and System64).

 

From my opinion this has something to do with how GIMP gets the paths and the whole logic of finding/loading plugins.

 

Still searching for a work around to make it work, will let you know if i have any further progress with this.

Highlighted

@alexmarin89 

 

Hello,

 

I have installed GIMP in C:\APPS64\Gimp 2 but I still get the error messages that various .dll files cannot be found. (libgimp-2.0-0.dll for example).

 

I will do some troubleshooting. 

 

With kind regards,

Willem  

Highlighted

@TheStingPilotI tested 2.10.12 by creating the folder structure specified in their git board (C:\Output\Gimp) and installed it there (the path should be after installation C:\Output\Gimp\Gimp 2).

After that in the capture with Advanced Installer i specified the application folder to be GIMP 2, that solved for me the problem of copying the dlls to system32 and system64. But that doesn't work either.

 

However, i've done more tests and i was thinking maybe something has changed since the 2.10 release of GIMP...and indeed something has changed.

 

I made a capture for GIMP 2.8.22. When you try to build it the first time you will receive some errors that GIMP 2\32\lib\gimp\2.0\python\gimp.pyd.debug' is not a valid Portable Executable for 'Build_MSIX_APPX->x64' build and other 4 or 5 .debug files.

 

I've deleted the files, doesn't seem to affect how it works. But of course i ran into the issues with the dlls that are not loading.

 

So again i've copied the dlls in System32 and System64. I also changed the Application Folder to be in GIMP 2.

 

And after that, everything works! GIMP 2.8.22.0 works with MSIX!

 

I am now curious what are the differences, i will try to do some more digging to see if maybe it's something that can be solved for the latest 2.10 releases also.

 

I thought maybe it's some hardcoding in some files, the only thing i found it in pygimp.interp located in lib\gimp\2.0\interpreters:

 

python=C:\Output\Gimp\GIMP 2\bin\pythonw.exe
python2=C:\Output\Gimp\GIMP 2\bin\pythonw.exe
/usr/bin/python=C:\Output\Gimp\GIMP 2\bin\pythonw.exe
:Python:E::py::python:

 

However, trying to dehardcode that file doesn't solve much. And with a normal installation if you delete that file it doesn't seem to affect the functionality of GIMP, so that's a no go there also.

 

You can get the MSIX for 2.8.22.0 here.

 

2.8.jpg

Highlighted
Hi Alex, and how did you figure out which DLLs are 64 bit and which are 32 bit, or you did a try-and-error scenario? I.e. Is there any trick in procmon or logic that if the app first searches in System32 we are talking about 64bit plugins? Thanks for your feedback.
Highlighted

@WesleeJKN0487 There is a "simpler" way getting this done. You may want to add the following code to your manifest (under the package element):

 

  <Extensions>
      <uap6:Extension Category="windows.loaderSearchPathOverride">
        <uap6:LoaderSearchPathOverride>
          <uap6:LoaderSearchPathEntry FolderPath="bin"/>
        </uap6:LoaderSearchPathOverride>
      </uap6:Extension>
    </Extensions>

 

 This way GIMP is also checking the bin directory to load dlls and other binaries.

 

@alexmarin89 @At this point thank you for your great blog and the free Advanced Installer Express version... you guys may want to add the loaderSearchPartOverride to your feature list :)

Highlighted

@TheStingPilot 

  1. You need to include the FileRedirectionFixup for this application. 
  2. You do not need to include the reference to PsfRuntime as that is assumed (although it must be included in the package).
  3. The config for the FRF would need to include relevant VFS paths.  If you use PsfTooling to perform the injection, then you only need to ask for the FRF and keep all defaults.  This also fixes up the icon for you so you don't get a blue square for the icon.