Skip to content

Commit

Permalink
Associate .crystalopen with Windows .exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Sep 28, 2023
1 parent 5abd69e commit de3462a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added reshacker_setup.exe
Binary file not shown.
17 changes: 17 additions & 0 deletions setup/win-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ SolidCompression=yes
OutputBaseFilename=crystal-win-1.6.0b
OutputDir=dist-win
DisableProgramGroupPage=yes
; Tell Explorer to refresh file extension information after (un)install
ChangesAssociations=yes

[Registry]
; Register .crystalopen file extension, its icon, and its associated .exe
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen"; ValueType: string; ValueName: "Content Type"; ValueData: "application/vnd.crystal-opener"
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen"; ValueType: string; ValueName: "PerceivedType"; ValueData: "application"
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\DefaultIcon"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\DefaultIcon"; ValueType: expandsz; ValueName: ""; ValueData: "{app}\Crystal Web Archiver.exe,1"
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\shell"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\shell\open"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\shell\open"; ValueType: string; ValueName: ""; ValueData: "Open with Crystal"
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\shell\open\command"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Classes\.crystalopen\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\Crystal Web Archiver.exe"" ""%1"""

; NOTE: To regenerate file list: poetry run python make_win_installer.py
[Files]
Expand Down Expand Up @@ -97,9 +112,11 @@ Source: "dist\wxmsw32u_html_vc140.dll"; DestDir: "{app}"
Source: "dist\wxmsw32u_richtext_vc140.dll"; DestDir: "{app}"
Source: "dist\lib\crystal\resources\__init__.py"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\appicon.ico"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\appicon.png"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\badge_new.png"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\badge_stale.png"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\badge_warning.png"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\crystal.desktop"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\testdata_bongo.cat.crystalproj.zip"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\testdata_xkcd-v2.crystalproj.zip"; DestDir: "{app}\lib\crystal\resources"
Source: "dist\lib\crystal\resources\testdata_xkcd.crystalproj.zip"; DestDir: "{app}\lib\crystal\resources"
Expand Down

0 comments on commit de3462a

Please sign in to comment.