Skip to content

Commit aa53627

Browse files
committed
Use MicaSetup to create .exe-type installer
Check out how it works here: https://github.com/lemutec/MicaSetup
1 parent dc67ab0 commit aa53627

6 files changed

+61
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,4 @@ __pycache__/
293293
!/Build/AppxManifest.*
294294
!/Build/assetslayout.resfiles
295295
!/Build/priconfig.xml
296+
!/Build/micasetup.json
Loading
Loading

Build/micasetup.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"Template": "${MicaDir}/template/default.7z",
3+
"Package": "./QuickLook.7z",
4+
"Output": "./${AppName}.exe",
5+
"AppName": "QuickLook",
6+
"KeyName": "QuickLook",
7+
"ExeName": "QuickLook.exe",
8+
"Publisher": "QL-Win",
9+
"Version": "${Package}./${ExeName}|4",
10+
"TargetFramework": "net472",
11+
"Guid": "8B4A9CE5-67B5-4A94-81CB-3771F688FDEB",
12+
"Favicon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.png",
13+
"Icon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.setup.png",
14+
"UnIcon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.uninst.png",
15+
"LicenseFile": "../LICENSE-GPL.txt",
16+
"License": null,
17+
"LicenseType": null,
18+
"RequestExecutionLevel": "admin",
19+
"SingleInstanceMutex": null,
20+
"IsCreateDesktopShortcut": true,
21+
"IsCreateUninst": true,
22+
"IsCreateStartMenu": true,
23+
"IsPinToStartMenu": false,
24+
"IsCreateQuickLaunch": true,
25+
"IsCreateRegistryKeys": true,
26+
"IsCreateAsAutoRun": false,
27+
"IsCustomizeVisiableAutoRun": false,
28+
"AutoRunLaunchCommand": "/autostart",
29+
"IsUseFolderPickerPreferClassic": false,
30+
"IsUseInstallPathPreferX86": false,
31+
"IsUseRegistryPreferX86": null,
32+
"IsAllowFullFolderSecurity": true,
33+
"IsAllowFirewall": true,
34+
"IsRefreshExplorer": true,
35+
"IsInstallCertificate": false,
36+
"IsEnableUninstallDelayUntilReboot": true,
37+
"IsEnvironmentVariable": false,
38+
"OverlayInstallRemoveExt": "exe,dll,pdb,config,winmd,txt,bat,ax,manifest,xshd",
39+
"UnpackingPassword": null,
40+
"MessageOfPage1": null,
41+
"MessageOfPage2": null,
42+
"MessageOfPage3": null
43+
}

QuickLook.Installer/Product.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
44
<Product Id="*" Name="QuickLook" Language="1033"
5-
Version="!(bind.FileVersion.fil22F7B7F07E63622AD2451459086A3CF2)" Manufacturer="Paddy Xu"
5+
Version="!(bind.FileVersion.fil22F7B7F07E63622AD2451459086A3CF2)" Manufacturer="QL-Win"
66
UpgradeCode="c83b9c02-87d6-494e-9f5f-cf4c3900a54d">
77
<Package InstallerVersion="500" Compressed="yes" Platform="x86" InstallScope="perUser" />
88

Scripts/pack-setup.ps1

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Set-Location ../Build
2+
3+
Remove-Item .\QuickLook.7z -ErrorAction SilentlyContinue
4+
7z a QuickLook.7z .\Package\* -t7z -mx=5 -mf=BCJ2 -r -y
5+
makemica micasetup.json
6+
7+
Write-Output "This file makes QuickLook portable." >> .\Package\portable.lock
8+
7z a QuickLook.7z .\Package\portable.lock -t7z -mx=5 -mf=BCJ2 -r -y
9+
10+
$version = git describe --always --tags --exclude latest
11+
Remove-Item .\QuickLook-$version.7z -ErrorAction SilentlyContinue
12+
Rename-Item .\QuickLook.7z QuickLook-$version.7z
13+
Remove-Item .\QuickLook-$version.exe -ErrorAction SilentlyContinue
14+
Rename-Item .\QuickLook.exe QuickLook-$version.exe
15+
16+
pause

0 commit comments

Comments
 (0)