Changes

Imagine

3,027 bytes added, 23:09, 11 May 2020
Init version
Freeware Image & Animation Viewer for Windows

== Main Program package ==
For use this package, you need download zip package from [http://www.nyam.pe.kr/dev/imagine/ Official site]. After extract files to PKG_SOURCE/PKG_VERSION. You need manually create Imagine.reg and put there content. Example below. Also you need get config ini file from workstation, where you launched Imagine and set language settings.

<source lang="xml">
<package
id="imagine"
name="Imagine"
revision="%PKG_VERSION%"
reboot="false"
priority="0">

<variable name="PKG_VERSION" value="1.1.1" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Imagine\x64\main" architecture="x64" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Imagine\x86\main" architecture="x86" />
<variable name="PKG_FILES" value="%PKG_SOURCE%\%PKG_VERSION%" />
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Imagine" />
<variable name="PKG_EXE" value="%PKG_DESTINATION%\Imagine64.exe" architecture="x64" />
<variable name="PKG_EXE" value="%PKG_DESTINATION%\Imagine.exe" architecture="x86" />

<check type="logical" condition="and">
<check type="file" condition="exists" path="%PKG_EXE%"/>
<check type="uninstall" condition="versiongreaterorequal" path="Imagine" value="%PKG_VERSION%" />
</check>

<install cmd='%COMSPEC% /C mkdir "%PKG_DESTINATION%"'/>
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
<install cmd='%COMSPEC% /C mkdir "%PKG_DESTINATION%\Plugin"'/>
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\Plugin\*" "%PKG_DESTINATION%\Plugin\"' />
<install cmd='%COMSPEC% /C mkdir "%PKG_DESTINATION%\Language"'/>
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\Language\*" "%PKG_DESTINATION%\Language\"' />
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\Imagine.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\"' />
<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\Imagine.reg"' />
<install cmd='%COMSPEC% /C "%PKG_EXE%" /assocext /regcontextmenu' />

<upgrade include="remove" />
<upgrade include="install" />

<remove cmd='%COMSPEC% /C "%PKG_EXE%" /dissocext /unregcontextmenu' />
<remove cmd='%COMSPEC% "%PKG_DESTINATION%\uninstall.exe" /S' />
<remove cmd='%COMSPEC% /C rmdir /S /Q "%PKG_DESTINATION%"' />
<remove cmd='%COMSPEC% /C reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Imagine /f' />
</package>
</source>

Imagine.reg:

<source>
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Imagine]
"DisplayName"="Imagine"
"DisplayIcon"="\"C:\\Program files\\Imagine\\Imagine64.exe\""
"Publisher"="Chun Sejin"
"DisplayVersion"="1.1.1"
"EstimatedSize"=dword:000005eb
"HelpLink"="http://www.nyam.pe.kr"
"URLInfoAbout"="http://www.nyam.pe.kr"
"InstallLocation"="\"C:\\Program files\\Imagine\""
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"UninstallString"="\"C:\\Program files\\Imagine\\Uninstall.exe\""
"Comments"="Image & Animation Viewer"
</source>
74
edits