Imagine

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Freeware Image & Animation Viewer for Windows

Main Program package

For use this package, you need download zip package from 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.

<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>

Imagine.reg:

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"

Plugins

You can download plugins from Official site.

Digital Camera Raw Image

<package 
	id="imagine_dcraw" 
	name="Imagine DCRaw plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.6" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\DCRaw"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\DCRaw"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="DCRaw.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="DCRaw.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\DCRawVersion" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\DCRaw.reg"' /> 	
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v DCRawVersion /f' />	
</package>

Microsoft HD Photo

<package 
	id="imagine_hdphoto" 
	name="Imagine HDPhoto plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.6" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\HDPhoto"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\HDPhoto"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="HDPhoto.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="HDPhoto.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\HDPhotoVersion" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\HDPhoto.reg"' /> 	
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v HDPhotoVersion /f' />	
</package>

HoneyView3 Archive

<package 
	id="imagine_hv3" 
	name="Imagine HV3 plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.3" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\HV3"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\HV3"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="HV3.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="HV3.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\HV3Version" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\HV3.reg"' /> 	
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v HV3Version /f' />	
</package>

JBIG

<package 
	id="imagine_jbig" 
	name="Imagine JBIG plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.3" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\JBIG"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\JBIG"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="JBIG.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="JBIG.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\JBIGVersion" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\JBIG.reg"' />
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v JBIGVersion /f' />	
</package>

JPEG 2000

<package 
	id="imagine_jpeg2000" 
	name="Imagine JPEG2000 plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.7" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\JPEG2000"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\JPEG2000"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="JPEG2000.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="JPEG2000.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\JPEG2000Version" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\JPEG2000.reg"' />
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v JPEG2000Version /f' />	
</package>

OpenEXR Image

<package 
	id="imagine_openexr" 
	name="Imagine OpenEXR plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.1" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\OpenEXR"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\OpenEXR"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="OpenEXR.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="OpenEXR.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\OpenEXRVersion" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\OpenEXR.reg"' />
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v OpenEXRVersion /f' />	
</package>

Google WebP

<package 
	id="imagine_webp" 
	name="Imagine WebP plugin" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="imagine" />

	<variable name="PKG_VERSION"		value="0.0.8" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x64\plugins\WebP"  architecture="x64" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\Imagine\x86\plugins\WebP"  architecture="x86" />
	<variable name="PKG_FILES"		value="%PKG_SOURCE%\%PKG_VERSION%" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\Imagine\Plugin" />
	<variable name="PKG_FILENAME"		value="WebP.plg64" architecture="x64" />
	<variable name="PKG_FILENAME"		value="WebP.plg" architecture="x86" />

	<check type="logical" condition="and">	
		<check type="file" 	condition="exists" path="%PKG_DESTINATION%\%PKG_FILENAME%" />	
		<check type="registry" 	condition="equals" path="HKLM\SOFTWARE\Imagine\WebPVersion" value="%PKG_VERSION%" />
	</check>
	
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_FILES%\*" "%PKG_DESTINATION%\"' />
	<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\WebP.reg"' />
	<install cmd='%COMSPEC% /C "%PROGRAMFILES%\Imagine\Imagine64.exe" /assocext /regcontextmenu' /> 	 	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='%COMSPEC% /C del /Q "%PKG_DESTINATION%\%PKG_FILENAME%"' />
	<remove cmd='%COMSPEC% /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Imagine" /v WebPVersion /f' />	
</package>