Hamster PDF Reader Portable 2.0.0.40

Description

Hamster PDF Reader Portable is a utility designed to open, view, and print PDF files. With this tool, you will be able to read books, magazines, comics, newspapers, and all kinds of documents in PDF, XPS, and DjVu formats.
Hamster PDF Reader is designed to make the reading of PDFs convenient and fast; thus, it includes simple controls and a reduced number of features that are easily accessible via its toolbar. The application has a clean, attractive interface in the Metro style that allows you to navigate through your books contents in a very straightforward manner. Using the navigation panel, you can browse documents and easily jump to any pages and bookmarks. It is possible to choose among different page views, zoom in/out, and read your documents in full screen. Another interesting feature is the search function, which can help you quickly find any words of phrases within your document.

With just the basic features, Hamster PDF Reader is an excellent alternative for users who need a simple, to-the-point application for quick and easy PDF viewing. It is free, lightweight, and uses very few system resources.

PortableApps.com Launcher

Founded changes in Total Uninstall program.

Settings INI file for PortableApps.com Launcher.

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
32
[Launch]
; Specify the program to be launched by the PortableApps.com Launcher here, relative to the App directory of the portable application.
ProgramExecutable="Hamster PDF Reader\HamsterPDFReader.exe"
; For changing drive letters.
DirectoryMoveOK=yes
; If the application requires a certain operating system to run.
MinOS=XP
; Time to show splash screen.
SplashTime=1500
; Run the application after the splash screen.
LaunchAppAfterSplash=true
 
[FilesMove]
; These are files for which to manage portability. They come in the form [file name]=[target directory].
; The file name is the location of the place where it is saved, relative to the portable data directory (AppNamePortableData).
; The target directory is the full path to the directory the file is copied to during the program execution. Do not include the file name. Environment variable substitions (http://portableapps.com/manuals/PortableApps.comLauncher/ref/envsub.html#ref-envsub) apply.
; If the target directory already exists at the start of the process, it will be backed up (to target directoryfile name-BackupByAppID) and restored at the end.
settings\HamsterPDFReader-settings.txt="%PAL:AppDir%\Hamster PDF Reader"
 
[Activate]
; If the base application uses the registry, set this to true.
Registry=true
 
[RegistryKeys]
; Saves the registry keys in the "* .reg" file. The file name is specified without the "reg".
HamsterPDF-registry="HKCU\Software\HamsterSoft\Hamster PDF Reader"
 
[RegistryCleanupForce]
; Removes registry keys after you close the application.
1=HKLM\SOFTWARE\Microsoft\Tracing\HamsterPDFReader_RASAPI32
2=HKLM\SOFTWARE\Microsoft\Tracing\HamsterPDFReader_RASMANCS
3=HKCU\Software\HamsterSoft

The text after the semicolon is seen as a comment and does not affect the application work.

PortableAppZ.blogspot.com tutorial

Founded changes in Total Uninstall program.

The application source code, the NSI file content for NSIS compilation.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
; http://portableappz.blogspot.com
; NSIS with Registry.nsh in Include and Registry.dll, FindProcDLL.dll, KillProcDLL.dll in Plugins
 
; **************************************************************************
; === Define constants ===
; **************************************************************************
!define VER 		"2.0.0.27"	; version of launcher
!define APPNAME 	"Hamster PDF Reader"	; complete name of program
!define APP 		"HamsterPDF"	; short name of program without space and accent  this one is used for the final executable an in the directory structure
!define APPEXE 		"HamsterPDFReader.exe"	; main exe name
!define APPDIR 		"App\Hamster PDF Reader"	; main exe relative path
!define WEBSITE     "pafd.xyz"
!define APPSWITCH 	``	; some default Parameters
 
;--- Define RegKeys ---
!define REGISTRY
	!define REGKEY1 "HKEY_CURRENT_USER\Software\HamsterSoft"
	!define REGKEY2 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\HamsterPDFReader_RASAPI32"
	!define REGKEY3 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\HamsterPDFReader_RASMANCS"
 
; ---Define Files---
	!define LOCALFILE1 "$EXEDIR\App\Hamster PDF Reader\HamsterPDFReader-settings.txt"
	!define PORTABLEFILE1 "$EXEDIR\Data\files\HamsterPDFReader-settings.txt"
	!define DEFAULTPORTABLEFILE1 "$EXEDIR\App\DefaultData\files\HamsterPDFReader-settings.txt"
 
; **************************************************************************
; === Best Compression ===
; **************************************************************************
SetCompressor /SOLID lzma
SetCompressorDictSize 32
 
; **************************************************************************
; === Includes ===
; **************************************************************************
!include "PortableApp.nsh" 
 
; **************************************************************************
; === Set basic information ===
; **************************************************************************
Name "${APPNAME} Portable"
OutFile "..\..\${APP}Portable.exe"
Icon "..\..\App\AppInfo\appicon.ico"
 
; **************************************************************************
; === MultiLang ===
; **************************************************************************
Var LNG
Function MultiLang
StrCpy $LNG "English"
System::Call 'kernel32::GetUserDefaultLangID() i .r0'
StrCmp $0 "1033" 0 +2
StrCpy $LNG "English"
StrCmp $0 "1149" 0 +2
StrCpy $LNG "Russian"
ReadINIStr $0 "$EXEDIR\Data\settings\${APP}Portable.ini" "${APP}Portable" "UserDefaultLang"
StrCmp $0 "false" +3
WriteINIStr "$EXEDIR\Data\settings\${APP}Portable.ini" "${APP}Portable" "UserDefaultLang" "true"
FunctionEnd
 
; **************************************************************************
; === Other Actions ===
; **************************************************************************
Function Init
 
FunctionEnd
 
Function Close
 
FunctionEnd
 
 
; **************************************************************************
; ==== Running ====
; **************************************************************************
 
Section "Main"
 
	Call CheckStart
 
	Call BackupLocalKeys
	Call RestorePortableKeys
 
	Call BackupLocalFiles
	Call RestorePortableFiles
 
	Call Init
	Call MultiLang
 
		Call SplashLogo
		Call Launch
 
	Call Restore
 
SectionEnd
 
Function Restore
 
	Call Close
 
	Call BackupPortableFiles
	Call RestoreLocalFiles
 
	Call BackupPortableKeys
	Call RestoreLocalKeys
 
FunctionEnd
 
; **************************************************************************
; === Run Application ===
; **************************************************************************
Function Launch
SetOutPath "$EXEDIR\${APPDIR}"
${GetParameters} $0
ExecWait `"$EXEDIR\${APPDIR}\${APPEXE}"${APPSWITCH} $0`
WriteINIStr "$EXEDIR\Data\settings\${APP}Portable.ini" "${APP}Portable" "GoodExit" "true"
FunctionEnd
 
; **************************************************************************
; ==== Actions on Registry Keys =====
; **************************************************************************
Function BackupLocalKeys
	${registry::DeleteKey} "${REGKEY1}-BackupBy${APP}Portable" $R0
	${registry::MoveKey} "${REGKEY1}" "${REGKEY1}-BackupBy${APP}Portable" $R0
Sleep 50
FunctionEnd
 
Function RestorePortableKeys
IfFileExists "$EXEDIR\Data\registry\${APP}.reg" +4
IfFileExists "$EXEDIR\App\DefaultData\registry\${APP}.reg" 0 +5
CreateDirectory "$EXEDIR\Data\registry"
CopyFiles  /SILENT "$EXEDIR\App\DefaultData\registry\${APP}.reg" "$EXEDIR\Data\registry"
${registry::RestoreKey} "$EXEDIR\Data\registry\${APP}.reg" $R0
Sleep 200
FunctionEnd
 
Function BackupPortableKeys
Delete "$EXEDIR\Data\registry\${APP}.reg"
CreateDirectory "$EXEDIR\Data\registry\"
	${registry::DeleteKey} "${REGKEY2}" $R0
	${registry::DeleteKey} "${REGKEY3}" $R0
	${registry::SaveKey} "${REGKEY1}" "$EXEDIR\Data\registry\${APP}.reg" "/A=1" $R0
 
Sleep 100
FunctionEnd
 
Function RestoreLocalKeys
	${registry::DeleteKey} "${REGKEY1}" $R0
	${registry::MoveKey} "${REGKEY1}-BackupBy${APP}Portable" "${REGKEY1}" $R0
Sleep 50
${registry::Unload}
FunctionEnd
 
; **************************************************************************
; ==== Actions on Files =====
; **************************************************************************
Function BackupLocalFiles
	Delete "${LOCALFILE1}.BackupBy${APP}Portable"
	Rename "${LOCALFILE1}" "${LOCALFILE1}.BackupBy${APP}Portable"
FunctionEnd
 
Function RestorePortableFiles
	IfFileExists "${PORTABLEFILE1}" +4
	IfFileExists "${DEFAULTPORTABLEFILE1}" 0 +4
	CreateDirectory "$EXEDIR\Data"
	CopyFiles /SILENT "${DEFAULTPORTABLEFILE1}" "${PORTABLEFILE1}"
	Rename  "${PORTABLEFILE1}" "${LOCALFILE1}"
FunctionEnd
 
Function BackupPortableFiles
	CreateDirectory "$EXEDIR\Data"
	Rename "${LOCALFILE1}" "${PORTABLEFILE1}"
FunctionEnd
 
Function RestoreLocalFiles
	Delete "${LOCALFILE1}"
	Rename "${LOCALFILE1}.BackupBy${APP}Portable" "${LOCALFILE1}"
FunctionEnd

The text after the semicolon is seen as a comment and does not affect the application work.

Downloads

DISCUSS IT

No comments yet.

Leave a Reply

Spelling error report

The following text will be sent to our editors: