Frequently Asked Questions:

General:
  1. Is it allowed to add your programs to our computer-magazine CD?
  2. Do you publish your source-codes?
  3. Do you sell your source-codes?
  4. How do I add the directory of program xyz to the PATH of my system?

GPGshell:
  1. Do I have to change my PATH variable to run GnuPG (or GPGshell)?
  2. GPGshell flashes a DOS-box when I try to encrypt/sign something, but there is no result.
  3. GPGshell's GUI-output window hides parts of the decrypt/verify/import output, when I add "verbose" to my "options" file.
  4. GPGshell tells me something about "GnuPG not found.", but gpg.exe is in my PATH. With the command "set" in a DOS-box I get "PATH=%SystemRoot%\System32;%SystemRoot%". (WinNT only)
  5. Reloading keys seems to take forever.
  6. What about auto-mounting a crypt-disk (E4M, ScramDisk, TrueCrypt, etc.), which contains my keys?
  7. Is there a way to set %GNUPGHOME% from within GPGshell?
  8. Is there a way to specify a GPGshell-HomeDir without a drive letter?
  9. What about a Wipe-function?
  10. What about a Decode-function?
  11. Is it possible to run GnuPG/GPGshell from a removable media (e.g. USB-stick)?
  12. I get a "Too many parameters"-message in a DOS-box when running GPGshell v3.5x. (Win9x only)
  13. I get a runtime-error when I try to reorder the ListView-columns in GPGkeys on WinXP.
  14. I cannot open the GPGshell-documentation. GPGshell is installed on a networked drive. (WinNT only)


GIF General: Is it allowed to add your programs to our computer-magazine CD?

Yes (you don't have to ask each time, but please send me a copy of the magazine) / No, if you sell just a CD.


GIF General: Do you publish your source-codes?

No! But when you've got the source-code for Windows, you can ask me again.


GIF General: Do you sell your source-codes?

Yes! It's just a matter of price. Send me an offer. :-)


GIF General: How do I add the directory of program xyz to the PATH of my system?

Win9x:
Open the file autoexec.bat in your root-directory with Notepad, search for an entry like "set PATH=..." and add the directory of program xyz (e.g. ...;C:\Progra~1\xyz).
If you don't have a "set PATH=..."-entry, add the line "set PATH=%PATH%;C:\Progra~1\xyz" (without quotation marks).
Reboot and check your new PATH by executing "echo %PATH%" (without quotation marks) in a DOS-box.

WinNT:
Open "Control Panel - System - Advanced - Environment Variables", select the "PATH"-line in the first list, press the "Edit..."-button and add the directory of program xyz (e.g. ...;C:\Program Files\xyz).
If you don't have a "PATH"-line, press the "New..."-button and create it.
Log-off and log-in and check your new PATH by executing "echo %PATH%" (without quotation marks) in a DOS-box.



GIF GPGshell: Do I have to change my PATH variable to run GnuPG (or GPGshell)?

No, it's enough to place the gpg*.exe files in e.g. C:\Windows\Command\ resp. C:\WinNT\ or in the GPGshell install-directory (>= GPGshell v3.50).


GIF GPGshell: GPGshell flashes a DOS-box when I try to encrypt/sign something, but there is no result.

That's usually because of an invalid path to an external module or an invalid option in your "options" file. Try to execute "gpg.exe --version" in a DOS-box and look if GnuPG shows you an error.

If you get a message about "program (gpg.exe) not found", make sure that you've placed gpg.exe in your PATH.


GIF GPGshell: GPGshell's GUI-output window hides parts of the decrypt/verify/import output, when I add "verbose" to my "options" file.

This can be duplicated on the command-line: In other words: I don't think that I can change this behavior from within GPGshell. So, either remove "verbose" from your "options" file or disable the GUI-output window.


GIF GPGshell: GPGshell tells me something about "GnuPG not found.", but gpg.exe is in my PATH. With the command "set" in a DOS-box I get "PATH=%SystemRoot%\System32;%SystemRoot%". (WinNT only)

You already found the error: Your system does not replace %SystemRoot% with the path of your Windows directory anymore.
This is caused by one of the GnuPG installers, which tries to add gpg.exe to your system's PATH by placing an autoexec.bat with a line like "set path=C:\\Winnt\\GnuPG\\gpg.exe" in your system.
Simply search for this autoexec.bat and remove the line or delete the whole file if it does not contain more, then add your gpg.exe-directory to the PATH via "Control Panel - System - Advanced - Environment Variables".


GIF GPGshell: Reloading keys seems to take forever.

There are three possible reasons/solutions:
  1. Your Trust DB is too large, because it contains a lot of old and/or unused stuff. Run "gpg --fix-trustdb" in a DOS-box or use the "Fix Trust DB" menu-item from GPGkeys' "Trust" menu and follow the instructions.

    Pressing SHIFT while clicking the "Fix Trust DB" menu-item will do the same (export, delete, import), but automatically. In this case a backup of your old Trust DB will be created (trustdb.bak), which should be restored immediately if anything goes wrong. Don't use SHIFT+"Fix Trust DB" again after an error without restoring the backup, because you may lose the good backup.

    BTW: The size of your Trust DB is displayed in the seventh column of GPGkeys' status-bar. It shows ~13 KB for ~100 keys here.

  2. (Win9x only) Try it without having "Hide when reloading keys" in "Preferences - GPGshell... - Interface" checked, because a hidden/minimized DOS-box is extremely slow on Win9x.

    You can also solve the problem with Win95Cmd.exe, which is available from here. Place it in your Windows directory, add e.g. "AutoRun" = "set COMSPEC=C:\Windows\Win95Cmd.exe" to "HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor" and select Win95Cmd.exe as the "Command Interpreter" in "Preferences - GPGshell... - General". This will also fix all other speed problems with GPGshell's hidden DOS-windows on Win9x.

  3. It has been reported that running "gpg --rebuild-keydb-caches" also might fix the slow key-loading.

GIF GPGshell: What about auto-mounting a crypt-disk (E4M, ScramDisk, TrueCrypt, etc.), which contains my keys? - Modified for GPGshell v3.50

This is possible since GPGshell v3.40 with some additional settings in the [Advanced] section of "HKCU\Software\VB and VBA Program Settings\GPGshell" resp. GPGshell.ini (the [Advanced] section is not available per default).

Example:

Ext_StartCommand
Ext_StartCommandArg
Ext_StartCommandWait

Ext_StopCommand
Ext_StopCommandArg
Ext_StopCommandWait
C:\Program Files\TrueCrypt\truecrypt.exe
/v c:\abc\xyz.tc /l X /m rm /a /q
1

C:\Program Files\TrueCrypt\truecrypt.exe
/d X /q
1 or 0
REG_SZ
REG_SZ
REG_SZ (0=False, 1=True)

REG_SZ
REG_SZ
REG_SZ (0=False, 1=True)

"Ext_Start*" will be executed by the first started instance of GPGkeys, GPGtools or GPGtray.
"Ext_Stop*" will be executed by the last closed instance of GPGkeys, GPGtools or GPGtray.

The difficult part is the "Ext_StartCommandWait" setting. It should be set to "1" to make sure, that the disk is mounted before GPGshell looks for the GnuPG-HomeDir, but it is possible that GPGshell waits forever, because the started process never ends. This depends on the design of the crypt-disk tool (I can confirm that TrueCrypt v4.3a on Win2000 works as needed).
If you're not successful with your tool, execute it from a batch-file via "Ext_StartCommandWait" and include an additional "Pause" command. "Ext_StartCommandWait" should be set to "1" also in this case, so that GPGshell waits until the batch-file is closed.
I could not test all crypt-disk tools, so there is no support from my side for the whole thing. Sorry.


GIF GPGshell: Is there a way to set %GNUPGHOME% from within GPGshell?

This is possible since GPGshell v3.50 and requires GnuPG >= v1.4.1.
Set e.g. "GNUPGHOME=C:\Program Files\GnuPG" in the [Advanced] section of "HKCU\Software\VB and VBA Program Settings\GPGshell" resp. GPGshell.ini (the [Advanced] section is not available per default).
Relative paths below the GPGshell install-directory (like e.g. ".\GnuPG-Home") are allowed.


GIF GPGshell: Is there a way to specify a GPGshell-HomeDir without a drive letter?

This is possible since GPGshell v3.50. Set it to a relative path below the GPGshell install-directory (like e.g. ".\GPGshell-Home").


GIF GPGshell: What about a Wipe-function?

Use e.g. Eraser. It will do what you need.


GIF GPGshell: What about a Decode-function?

Use a mail-application which is able to decode your incoming mail.


GIF GPGshell: Is it possible to run GnuPG/GPGshell from a removable media (e.g. USB-stick)?

This is possible since GPGshell v3.50. Please read the GPGshell-documentation (Usage).


GIF GPGshell: I get a "Too many parameters"-message in a DOS-box when running GPGshell v3.5x. (Win9x only)

Check your PATH-variable for "long" paths and fix this (e.g. change "C:\Program Files\SomeNewApp" to "C:\Progra~1\SomeNe~1").


GIF GPGshell: I get a runtime-error when I try to reorder the ListView-columns in GPGkeys on WinXP.

This is because of a bug in mscomctl.ocx (versions 6.1.97.64 - 85). Please read KB896559 and update your system if necessary. GPGshell automatically disables column-reordering for mscomctl.ocx v6.1.97.82 on WinXP.


GIF GPGshell: I cannot open the GPGshell-documentation. GPGshell is installed on a networked drive. (WinNT only)

Opening *.chm-files over the network has been disabled by Microsoft because of possible security risks. Install GPGshell on a local drive or (when you think that your local network is safe) locate the key "HKLM\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions", create a "DWORD" value called "MaxAllowedZone" and give it a value of "1".