This file contains hidden or 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
rem Extension = .app1 | |
rem Pass icon position to parameter | |
rem ex) ChangeFileIcon.bat "C:\App\Icon.ico" | |
@echo off | |
reg add "HKEY_CLASSES_ROOT\.app1" /f /ve /t REG_SZ /d APP1 | |
reg add "HKEY_CLASSES_ROOT\APP1\DefaultIcon" /f /ve /t REG_EXPAND_SZ /d %1 | |
rem Windows 10 |
This file contains hidden or 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
Unicode true | |
!define PRODUCT_NAME "APP" | |
!define PRODUCT_ENGLISH_NAME "APP" | |
!define PRODUCT_VERSION ${VERSION} | |
!define PRODUCT_PUBLISHER "COMPANY" | |
!define PRODUCT_WEB_SITE "https://www.company.co.kr/" | |
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ENGLISH_NAME}" | |
!define PRODUCT_UNINST_ROOT_KEY "HKLM" | |
!define PRODUCT_INFO_ROOT_KEY "HKCR" |
This file contains hidden or 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
set current_dir=%~dp0 | |
FOR /F "USEBACKQ" %%F IN (`powershell -NoLogo -NoProfile -Command ^(Get-Item "%current_dir%\input\application.exe"^).VersionInfo.FileVersion`) DO (SET fileVersion=%%F) | |
"%ProgramFiles(x86)%\NSIS\makensis.exe" /DVERSION=%fileVersion% %current_dir%\InstallScript.nsi | |
rem pause |
This file contains hidden or 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
if $(ConfigurationName) == Release ( | |
rmdir /s /q $(SolutionDir)\..\install\input | |
mkdir $(SolutionDir)\..\install\input | |
if not exist $(SolutionDir)\..\install\output mkdir $(SolutionDir)\..\install\output | |
copy $(TargetDir)*.config $(SolutionDir)\..\install\input | |
copy $(TargetDir)*.exe $(SolutionDir)\..\install\input |
This file contains hidden or 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
$serviceUserAccount = "ServiceUserName" | |
$serviceName = "ServiceName" | |
$displayName = "DisplayName" | |
$exeFilePath = "$(Get-Location)\Service.exe" | |
$description = "Testing services..." | |
# Create a service (local)user account | |
# another: | |
# > powershell -Command "New-LocalUser -Name $serviceUserAccount" | |
New-LocalUser -Name $serviceUserAccount |