-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.lua
More file actions
31 lines (23 loc) · 1.7 KB
/
installer.lua
File metadata and controls
31 lines (23 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local version = "0.2.78"
SetMetadata("AppName", "Atelier")
SetMetadata("Version", version)
SetMetadata("Company", "Fezcode")
SetAppIcon("Assets/atelier-icon.ico")
SetTheme("Windows11")
SetInstallDirSuffix("Atelier")
AddStep("Welcome", { title = "Atelier " .. version, description = "This wizard will install Atelier " .. version .. " on your computer.\n\nClick Next to continue." })
AddStep("License", { title = "License Agreement", description = "Please review the license terms.", contentFile = "LICENSE.txt", requireScroll = true })
AddStep("Folder", { title = "Select Folder", description = "Choose where to install Atelier " .. version .. "." })
AddStep("Shortcuts", {title = "Select Optional Tasks", description = "Check the items you would like the installer to perform." })
AddStep("Install", { title = "Installing...", description = "Copying files to your system." })
AddStep("Finish", { title = "Installation Complete", description = "Atelier has been installed successfully.\n\nClick Finish to close.\n" })
MkDir("%INSTALLDIR%")
CopyDir("Publish", "%INSTALLDIR%/")
CopyFiles("LICENSE.txt", "%INSTALLDIR%/LICENSE.txt")
CopyFiles("README.md", "%INSTALLDIR%/README.md")
-- Desktop and Start Menu shortcuts
CreateShortcut("%INSTALLDIR%/Atelier.exe", "%DESKTOP%", "Atelier", { label = "Create Desktop Shortcut", isOptional = true, isSelected = true })
CreateShortcut("%INSTALLDIR%/Atelier.exe", "%STARTMENU%/Fezcode", "Atelier", { label = "Create Start Menu Entry", isOptional = true, isSelected = true })
CheckRegistry("HKCU", "Software\\Fezcode\\Atelier", "InstallDir")
CreateRegistry("HKCU", "Software\\Fezcode\\Atelier", "InstallDir", "%INSTALLDIR%")
CreateRegistry("HKCU", "Software\\Fezcode\\Atelier", "Version", version)