You are here

[Fixed] IrfanView registration info lost on upgrade

4 posts / 0 new
Last post
dragoworld235
Offline
Last seen: 12 years 1 month ago
Joined: 2012-02-11 07:19
[Fixed] IrfanView registration info lost on upgrade

Hi,

When registering IrfanView, registration is only detected when in /App/IrfanView/i_view32.ini and not when in /Data/IrfanView/i_view32.ini

Registration is like this (false reg) :
[Registration]
Name=xxxx
Code=000000000

The problem is that /app/IrfanView/i_view32.ini is overwroten when updating.

Maybe adding
[FilesToPreserve]
PreserveFile1=App\IrfanView\i_view32.ini

in /App/AppInfo/installer.ini would do the trick.

I'm waiting for next upgrade to check if it's working.

Dw

John T. Haller
John T. Haller's picture
Online
Last seen: 11 min 55 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Possible Fix

It's a bit more complicated than just preserving the file as it needs to be maintained. Plus in that location it wouldn't be backed up.

I've put together what I think is a comprehensive fix. It now keeps the license key in a file called license.ini within Data\IrfanView. This information is made accessible to IrfanView when running without moving files around and without keeping it permanently in App. I also added some code to the installer that will check and see if you've already added it to App\IrfanView\i_view32.ini and moves it to Data\IrfanView\license.ini for you as you upgrade to this version.

Download IrfanView Portable 4.32 Rev 2 (Release Candidate)

Try upgrading your current version to this and ensure your license information is moved to license.ini as expected and that IrfanView is using it while running. Then please try re-installing this Rev 2 over itself to ensure your license information is maintained.

As soon as you report back that this works for you, I'll push this out for everyone.

Sometimes, the impossible can become possible, if you're awesome!

dragoworld235
Offline
Last seen: 12 years 1 month ago
Joined: 2012-02-11 07:19
It works for me

When updating, the content of App\IrfanView\i_view32.ini was moved to Data\IrfanView\license.ini
I say content because these lines where also moved :
[Others]
INI_Folder=[PATH_TO]\Data\IrfanView

When using IrfanView, registration is used.

Il reinstalled it (like I updated it) and registration is still here and working.

Thanks,

Dw

John T. Haller
John T. Haller's picture
Online
Last seen: 11 min 55 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 4.32 Rev 2

This is fixed in 4.32 Rev 2. New entries can be made in the license.ini within the Data\IrfanView directory. Existing entries within the App IrfanView INI will be preserved. The Others section will not be carried over as it was in the test Rev 2 release.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments