I have a DLL that adds my application menu item to Windows explorer contextmenu.
It has has served me well for many years. A year ago I compiled 64 bit and that worked well. Now I made an upgrade of my software and needs to compile it again, after making just 2 changes: the Registry path and the app name to be displayed.
The context menu looks for the file extensions for which to show the menu item, the exe path name and the icon file address in the registry. It is fairly clear.
In Inno setupo, I have the following lines to impliment it:
Source: "D:\ResizerPro-Dist5\[login to view URL]"; DestDir: "{app}" ; Check: not IsWin64; Flags: regserver ignoreversion
Source: "D:\ResizerPro-Dist5\[login to view URL]"; DestDir: "{app}"; Check: IsWin64; Flags: regserver ignoreversion
and
Root: HKCU; Subkey: "Software\SYP\PhotoResizerPro5"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\SYP\PhotoResizerPro5";ValueType: string; ValueName: "FormatList"; ValueData: "*.jpg,*.tif,*.pcx,*.png,*.bmp,*.tga,*.pxm,*.ppm,*. pgm,*.pbm,*.jp2,*.j2k,*.j2c,*.gif,*.wmf,*.ico,*.ps ,*psd,*.emf,*.jpeg,*,jpe,*.pdf,*.jif,*.iev,*.eps,* lyr"
and
Root: HKCR; Subkey: "*\shellex\ContextMenuHandlers\PhotoResizerPro";ValueType: string; ValueName: ""; ValueData: "{{8F8F00E5-0E24-4FA4-A3DD-2B816A16136C}";Flags: uninsdeletekey
Root: HKCR; Subkey: "Folder\shellex\ContextMenuHandlers\PhotoResizerPro";ValueType: string; ValueName: ""; ValueData: "{{8F8F00E5-0E24-4FA4-A3DD-2B816A16136C}";Flags: uninsdeletekey
The DLL that worked before compiled to 2Mb, Now it compiles 1.3Mb.
Also, if I compile it now it does not work.
When I select Windows 64bit platform, nearly halve the project becomes underlined with errors, starting at the uses clause.
This project is to fix the DLL so it compiles in Delphi XE2 and so that I can compile it on my PC.
I attach my project. I use Delphi XE2. You can make a registry entry similar to what you will find in the .PAS file with the key it needs and make any exe file the target in order to test it.
Thanks
Piet