Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added powershell shortcut lnk files with customized font and colors f…
…or hstwb installer. Updated setup and run scripts detection and validation of emulators. Added install script executed part of msi installer. Updated hstwb installer wix to include latest changes
- Loading branch information
1 parent
5836a64
commit 7d762f9
Showing
12 changed files
with
273 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
$currentDir = split-path -parent $MyInvocation.MyCommand.Definition | ||
$hstwbInstallerIconFile = Join-Path $currentDir -ChildPath 'hstwb_installer.ico' | ||
|
||
$objShell = New-Object -ComObject WScript.Shell | ||
|
||
# install launcher.lnk shortcut | ||
$launcherLinkFile = Join-Path $currentDir -ChildPath 'launcher.lnk' | ||
$launcherLink = $objShell.CreateShortcut($launcherLinkFile) | ||
$launcherLink.WorkingDirectory = $currentDir | ||
$launcherLink.IconLocation = "{0},0" -f $hstwbInstallerIconFile | ||
$launcherLink.Save() | ||
|
||
# install setup.lnk shortcut | ||
$setupLinkFile = Join-Path $currentDir -ChildPath 'setup.lnk' | ||
$setupLink = $objShell.CreateShortcut($setupLinkFile) | ||
$setupLink.WorkingDirectory = $currentDir | ||
$setupLink.IconLocation = "{0},0" -f $hstwbInstallerIconFile | ||
$setupLink.Save() | ||
|
||
# install run.lnk shortcut | ||
$runLinkFile = Join-Path $currentDir -ChildPath 'run.lnk' | ||
$runLink = $objShell.CreateShortcut($runLinkFile) | ||
$runLink.WorkingDirectory = $currentDir | ||
$runLink.IconLocation = "{0},0" -f $hstwbInstallerIconFile | ||
$runLink.Save() | ||
|
||
# install fonts | ||
$fonts = 0x14 | ||
$objShell = New-Object -ComObject Shell.Application | ||
$objFolder = $objShell.Namespace($fonts) | ||
$systemFontsDir = $objFolder.Self.Path | ||
$fontsDir = Join-Path $currentDir -ChildPath 'fonts' | ||
|
||
Get-ChildItem -Path $fontsDir *.ttf | Where-Object { !(Test-Path (Join-Path $systemFontsDir -ChildPath $_.Name)) } | ForEach-Object { $objFolder.CopyHere($_.FullName) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
powershell -ExecutionPolicy Bypass -nologo -Noninteractive -WindowStyle Hidden -File launcher.ps1 | ||
::powershell -ExecutionPolicy Bypass -nologo -Noninteractive -WindowStyle Hidden -File launcher.ps1 | ||
start launcher.lnk |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.