Accedi per seguire   
Seguaci 0
ZipGenius

New Zipgenius Build In 3/4 Days

1 messaggio in questa discussione

One of the ZipGenius features that has always caused us to work on it to remove bugs, it's the "IniPath registry setting".

It is a value in ZipGenius registry key that tells the program where to store custom settings.

While we were using Windows 95, 98 and ME, this path was the ZipGenius program folder: Windows allowed ZipGenius to write in its own folder so there was no trouble at all.

Then Windows 200 and XP came and we had to struggle with multiuser systems setup and ZipGenius had to change that path to the user's "application data" folder and the same story continued when Windows Vista and 7 arrived with their User Access Control (UAC) implementation.

Current ZIpGenius build sometimes shows an error message stating that it is not possible to write in "%appdata%/ZipGenius/zipgenius.ini" and the program freezes or crashes randomly.

We are working to fix this issue.

In fact, ZipGenius is not getting a valid path for custom files and settings, like skin files or zipgenius.ini and this happens when ZipGenius is running in an user account that is different from the one that firstly installed it.

Example:

"User #1" installs ZipGenius in WIndows 7 -> The program runs as designed

"User #2" runs ZipGenius -> the program crashes because it refers to User 1's application data folder - and this is not accepted.

If you go to check WIndows Registry just after ZipGenius setup, you will find that the setup has correctly written some default settings under HKEY_LOCAL_MACHINE\Software\M.Dev Software\ZG5 but no setting has been written to HKEY_CURRENT_USER\Software\M.Dev Software\ZG5, which is the registry key where ZipGenius saves the settings after you click "OK" in the Options panel.

A bug in our current build looks up for the "IniPath" value in the second registry key (under the HKEY_CURRENT_USER root): if that value or the whole key don't exist, the program goes up to HKEY_LOCAL_MACHINE root and reads the default "IniPath" value; unfortunately, the "IniPath" value contains the environmental variable "%appdata%" which should be translated by ZipGenius in the current user's application data folder.

For unknown reasons, the program is failing to translate that variable and we are providing a bug fix.

Now ZipGenius checks on startup if it can read the "IniPath" value from HKEY_CURRENT_USER\Software\M.Dev Software\ZG5; if not, the programs quickly fixes the issue and writes the "IniPath" value in that key and goes on using that setting.

By doing this, ZipGenius can be installed by system admins and safely used by other users as well.

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti
Accedi per seguire   
Seguaci 0