Решил перепаковать Paint.Net в Inno Setup но не импортируются параметры реестра, не добавляется пункт в “Открыть с помощью”, если импортировать вручную то в “Открыть с помощью” всё появляется.
Скрипт :
читать дальше »
[Setup]
AppName=Paint.NET
AppVerName=Paint.NET 3.36
AppPublisherURL=http://www.getpaint.net/
AppSupportURL=http://www.getpaint.net/
AppUpdatesURL=http://www.getpaint.net/
DefaultDirName={pf}\Paint.NET
DefaultGroupName=Paint.NET
LicenseFile=.\Files\License.txt
OutputDir=.\
OutputBaseFilename=Setup
Compression=lzma/ultra
SolidCompression=true
InternalCompressLevel=ultra
CompressionThreads=2
VersionInfoVersion=3.36.0.0
VersionInfoTextVersion=3.36.0.0
AppVersion=3.36
UsePreviousAppDir=false
UsePreviousGroup=false
UninstallDisplayName=Paint.NET 3.36
VersionInfoDescription=Image and photo editing software written in C#.
VersionInfoCompany=dotPDN LLC
AppPublisher=dotPDN LLC
VersionInfoCopyright=Copyright © 2008 dotPDN LLC, Rick Brewster, Tom Jackson, and past contributors. Portions Copyright © Microsoft Corporation. All Rights Reserved.
AppCopyright=Copyright © 2008 dotPDN LLC, Rick Brewster, Tom Jackson, and past contributors. Portions Copyright © Microsoft Corporation. All Rights Reserved.
[Languages]
Name: russian; MessagesFile: compiler:Default.isl
Name: english; MessagesFile: compiler:Languages\English.isl
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
[Files]
Source: .\Files\PaintDotNet.exe; DestDir: {app}; Flags: ignoreversion
Source: .\Files\ICSharpCode.SharpZipLib.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\Interop.WIA.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\License.txt; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Base.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Core.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Data.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Effects.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.exe.config; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Resources.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.DE.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.ES.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.FR.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.it.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.JA.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.KO.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.PT-BR.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.RU.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.Strings.3.ZH-CN.resources; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.StylusReader.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PaintDotNet.SystemLayer.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PdnRepair.exe; DestDir: {app}; Flags: ignoreversion
Source: .\Files\PdnRepair.exe.config; DestDir: {app}; Flags: ignoreversion
Source: .\Files\SetupNgen.exe; DestDir: {app}; Flags: ignoreversion
Source: .\Files\SetupNgen.exe.config; DestDir: {app}; Flags: ignoreversion
Source: .\Files\ShellExtension_x64.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\ShellExtension_x86.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\Squish_x64.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\Squish_x86.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\Squish_x86_SSE2.dll; DestDir: {app}; Flags: ignoreversion
Source: .\Files\UpdateMonitor.exe; DestDir: {app}; Flags: ignoreversion
Source: .\Files\UpdateMonitor.exe.config; DestDir: {app}; Flags: ignoreversion
Source: .\Files\WiaProxy32.exe; DestDir: {app}; Flags: ignoreversion
Source: .\Files\WiaProxy32.exe.config; DestDir: {app}; Flags: ignoreversion
Source: .\Files\FileTypes\*; DestDir: {app}\FileTypes; Flags: ignoreversion recursesubdirs createallsubdirs
Source: .\Files\Resources\*; DestDir: {app}\Resources; Flags: ignoreversion recursesubdirs createallsubdirs
Source: .\System32\wiaaut.dll; DestDir: {sys}; Flags: ignoreversion
[Dirs]
Name: {app}\Effects
[Icons]
Name: {group}\Paint.NET; Filename: {app}\PaintDotNet.exe; WorkingDir: {app}; IconFilename: {app}\PaintDotNet.exe; IconIndex: 0
Name: {group}\{cm:UninstallProgram,Paint.NET}; Filename: {uninstallexe}; WorkingDir: {app}
Name: {commondesktop}\Paint.NET; Filename: {app}\PaintDotNet.exe; Tasks: desktopicon; WorkingDir: {app}; IconFilename: {app}\PaintDotNet.exe; IconIndex: 0
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Paint.NET; Filename: {app}\PaintDotNet.exe; Tasks: quicklaunchicon; WorkingDir: {app}; IconFilename: {app}\PaintDotNet.exe; IconIndex: 0
[Run]
Filename: {app}\PaintDotNet.exe; Description: {cm:LaunchProgram,Paint.NET}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[Registry]
Root: HKLM; SubKey: SOFTWARE\Classes\.bmp\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.jpe\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.jpeg\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.jpg\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.png\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKCR; SubKey: CLSID\{{D292F82A-50BE-4351-96CC-E86F3F8049DA}; ValueType: string; ValueData: Paint.NET Shell Extension; Flags: uninsdeletekey
Root: HKCR; SubKey: CLSID\{{D292F82A-50BE-4351-96CC-E86F3F8049DA}\InProcServer32; ValueType: string; ValueName: ThreadingModel; ValueData: Apartment; Flags: uninsdeletekey
Root: HKCR; SubKey: CLSID\{{D292F82A-50BE-4351-96CC-E86F3F8049DA}\InProcServer32; ValueType: string; ValueData: {app}\ShellExtension_x86.dll; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\jpegfile\shell\edit\command; ValueType: string; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.Picture\shell\edit\command; ValueType: string; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\pngfile\shell\edit\command; ValueType: string; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.pdn; ValueType: string; ValueData: Paint.NET.1; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\.pdn; ValueType: string; ValueName: PerceivedType; ValueData: Image; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\.pdn\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\.pdn\ShellEx\{{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}; ValueType: string; ValueData: {{D292F82A-50BE-4351-96CC-E86F3F8049DA}; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\.tga; ValueType: string; ValueName: Content Type; ValueData: image/targa; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.tga; ValueType: string; ValueName: PerceivedType; ValueData: Image; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.tga; ValueType: string; ValueData: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\.tga\OpenWithProgids; ValueType: string; ValueName: Paint.NET.1; Flags: uninsdeletevalue
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.1; ValueType: string; ValueData: Paint.NET Image; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.1\shell\edit\command; ValueType: string; ValueName: ; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.1\shell\open\command; ValueType: string; ValueName: ; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.1\shell\print\command; ValueType: string; ValueName: ; ValueData: "\""{app}\PaintDotNet.exe\"" \""print:%1\"""; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.ThumbExtract\CLSID; ValueType: string; ValueName: ; ValueData: {{D292F82A-50BE-4351-96CC-E86F3F8049DA}; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.ThumbExtract\CurVer; ValueType: string; ValueName: ; ValueData: Paint.NET.ThumbExtract.1; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\Paint.NET.ThumbExtract.1\CLSID; ValueType: string; ValueName: ; ValueData: {{D292F82A-50BE-4351-96CC-E86F3F8049DA}; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls; ValueType: dword; ValueName: {sys}\wiaaut.dll; ValueData: $00000002; Flags: uninsdeletevalue
Root: HKCR; SubKey: Applications\PaintDotNet.exe\shell\open\command; ValueType: string; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletevalue
Root: HKCU; SubKey: Software\Classes\Applications\PaintDotNet.exe\shell\open\command; ValueType: string; ValueData: "\""{app}\PaintDotNet.exe\"" \""%1\"""; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PaintDotNet.exe; ValueType: string; ValueData: {app}\PaintDotNet.exe; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PaintDotNet.exe; ValueType: string; ValueName: Path; ValueData: {app}; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}; ValueType: string; ValueData: VideoPreview Class; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\InprocServer32; ValueType: string; ValueName: ; ValueData: {sys}\wiaaut.dll; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\InprocServer32; ValueType: string; ValueName: ThreadingModel; ValueData: Apartment; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\MiscStatus; ValueType: string; ValueName: ; ValueData: 0; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\MiscStatus\1; ValueType: string; ValueName: ; ValueData: 131473; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\ProgID; ValueType: string; ValueName: ; ValueData: WIA.VideoPreview.1; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\ToolboxBitmap32; ValueType: string; ValueName: ; ValueData: {sys}\wiaaut.dll, 101; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\TypeLib; ValueType: string; ValueName: ; ValueData: {{94A0E92D-43C0-494E-AC29-FD45948A5221}; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\Version; ValueType: string; ValueName: ; ValueData: 1.0; Flags: uninsdeletekey
Root: HKLM; SubKey: SOFTWARE\Classes\CLSID\{{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\VersionIndependentProgID; ValueType: string; ValueName: ; ValueData: WIA.VideoPreview; Flags: uninsdeletekey
Рег Файл:
читать дальше »
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bmp\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jpe\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jpeg\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jpg\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.png\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_CLASSES_ROOT\CLSID\{D292F82A-50BE-4351-96CC-E86F3F8049DA}]
@="Paint.NET Shell Extension"
[HKEY_CLASSES_ROOT\CLSID\{D292F82A-50BE-4351-96CC-E86F3F8049DA}\InProcServer32]
"ThreadingModel"="Apartment"
@="C:\\Program Files\\Paint.NET\\ShellExtension_x86.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jpegfile\shell\edit\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.Picture\shell\edit\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\pngfile\shell\edit\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdn]
@="Paint.NET.1"
"PerceivedType"="Image"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdn\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdn\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{D292F82A-50BE-4351-96CC-E86F3F8049DA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tga]
"Content Type"="image/targa"
"PerceivedType"="Image"
@="Paint.NET.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tga\OpenWithProgids]
"Paint.NET.1"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.1]
@="Paint.NET Image"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.1\shell\edit\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.1\shell\open\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.1\shell\print\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"print:%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.ThumbExtract\CLSID]
@="{D292F82A-50BE-4351-96CC-E86F3F8049DA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.ThumbExtract\CurVer]
@="Paint.NET.ThumbExtract.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Paint.NET.ThumbExtract.1\CLSID]
@="{D292F82A-50BE-4351-96CC-E86F3F8049DA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls]
"C:\\WINDOWS\\system32\\wiaaut.dll"=dword:00000002
[HKEY_CLASSES_ROOT\Applications\PaintDotNet.exe\shell\open\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\Applications\PaintDotNet.exe\shell\open\command]
@="\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PaintDotNet.exe]
@="C:\\Program Files\\Paint.NET\\PaintDotNet.exe"
"Path"="C:\\Program Files\\Paint.NET"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}]
@="VideoPreview Class"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\Control]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\InprocServer32]
@="C:\\WINDOWS\\system32\\wiaaut.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\Insertable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\MiscStatus]
@="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\MiscStatus\1]
@="131473"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\ProgID]
@="WIA.VideoPreview.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\Programmable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\ToolboxBitmap32]
@="C:\\WINDOWS\\system32\\wiaaut.dll, 101"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\TypeLib]
@="{94A0E92D-43C0-494E-AC29-FD45948A5221}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\Version]
@="1.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0B5F2CC8-5E1E-44F9-899B-3B789705AFCA}\VersionIndependentProgID]
@="WIA.VideoPreview"