This registry entry may be needed to enable SAM Pro to override certain Windows registries regarding file associations. For example, if you attempt to view a scanned document from within SAM Pro, the message ‘Application not found’ might be displayed, indicate a need for this registry.
By default, SAMPro consults the Windows registry for the correct program to use when opening application files. However if the sys-openapp-commmands exists, it overrides the Windows registry.
Support: Windows Registry Associations
Setting Values are Uppercase-Lowercase Sensitive:
The Setting Value is case-sensitive: be sure that you enter the value exactly as specified in the documentation. If the documentation specifies a value of true, do NOT enter True or TRUE.
Id:
sys-openapp-commands-branchid-userid
sys-openapp-commands--userid
sys-openapp-commands-securityid
sys-openapp-commands
The first format lets you specify associations by branch id and (optionally) user. If this entry is specific to a user, the branch must be specified if a user belongs to a branch. If branches are not implemented, two dashes (not separated by a space) must precede the user id (the second format).
The third format enables you to specify association overrides by security id.
The fourth format would apply to all users unless another registry entry was created for their security or branch/user id.
The contents will vary depending upon what association you're attempting to override.
Setting Key: fileextension Setting Value: pathtoexecutable
In versions before 8.2.545.044, if the path to the executable includes a blank space (for example, C:\Program Files ....) the entire path to the executable must be double-quoted:
Setting Key: fileextension Setting Value: "pathtoexecutable"
Example: Open .jpg files with Photopaint
Setting Key: jpg
Setting Value: "C:\Program Files (x86)\Corel\Corel Graphics 11\Programs\CorelPP.exe"
In Version 8.2.545.044 and above, either of the following Setting would work (assuming the executable is available).
Setting Value: "C:\Program Files (x86)\Corel\Corel Graphics 11\Programs\CorelPP.exe"
Setting Value: C:\Program Files (x86)\Corel\Corel Graphics 11\Programs\CorelPP.exe
When attempting to view a picture file in certain operating systems, SAMPro is sometimes not able to make a call to the proper application, thus resulting in an "Application not found for file named ...". This problem may be rectified by specifying the following options. If your users are running different versions of Windows (Vista, XP, etc.), the sys-openapp-commands registry entry must be by user.
Id: sys-openapp-commands
Setting Key: jpg
Setting Value:
"rundll32.exe" "c:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1
Setting Key: jpeg
Setting Value:
"rundll32.exe" "c:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1
Setting Key: jpg
Setting Value: "rundll32.exe" "c:\Program Files\Windows Photo Gallery\PhotoViewer.dll", ImageView_Fullscreen %1
Setting Key: jpg
Setting Value: rundll32.exe c:\windows\system32\shimgvw.dll,ImageView_Fullscreen %1