Total7zip Plugin Installer

Discussion, questions and support.
Post Reply
Message
Author
User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Total7zip Plugin Installer

#1 Post by danpeig » 16.10.2020, 21:11

Hi,

To contribute with this community I created an automated installer for the Total7zip plugin based on the latest version of the 7Zip libraries.
The installer should detect 7Zip installation folders automatically, download the plugin, and perform all required configurations.

This plugin is compatible with 32-bit and 64-bit versions of FreeCommander XE.

Download from GitHub: https://github.com/danpeig/freecommande ... _installer
Download from my personal website: https://www.brookepeig.com/p/en/node/151
Keywords: danpeig, total7zip, installer

Best Regards,
Daniel
Last edited by danpeig on 21.10.2020, 14:14, edited 1 time in total.

Marek
Author
Author
Posts: 2865
Joined: 10.04.2006, 07:48
Location: Germany
Contact:

Re: Total7zip Plugin Installer

#2 Post by Marek » 18.10.2020, 09:40

Hi Daniel,

thanks for your installer. I have tested with the portable version - works fine.
My suggestions:
- for some users it maybe important to add the info how to start the script total7zipinstaller.ps1 (from context menu)
- you could try to find suggested value for "32" or "64" - e.g. existing of the 64 bit dlls (for the future I could write such info in freecommander.ini)
- suggested value for freecommander.ini path could be "installPath\settings"

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#3 Post by cm630 » 19.10.2020, 13:25

This did not work for me.
I pressed yes, yes, yes.. then the console window got closes without a message success/fail or whatever. There was nothing in the freeComander/plugins/wcx folder, actually, there was no wcx folder at all.

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#4 Post by danpeig » 19.10.2020, 17:35

Marek wrote:
18.10.2020, 09:40
Hi Daniel,

thanks for your installer. I have tested with the portable version - works fine.
My suggestions:
- for some users it maybe important to add the info how to start the script total7zipinstaller.ps1 (from context menu)
- you could try to find suggested value for "32" or "64" - e.g. existing of the 64 bit dlls (for the future I could write such info in freecommander.ini)
- suggested value for freecommander.ini path could be "installPath\settings"
Thank you for the tips. I really overlooked the libraries, it would be much easier to check them.
I will update the script as soon as my friend Igor Pavlov releases the 2020 version of 7-Zip .

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#5 Post by danpeig » 19.10.2020, 17:40

cm630 wrote:
19.10.2020, 13:25
This did not work for me.
I pressed yes, yes, yes.. then the console window got closes without a message success/fail or whatever. There was nothing in the freeComander/plugins/wcx folder, actually, there was no wcx folder at all.
Hi,

I can help you. But I need more information.
- What version of FreeCommander are you using? 32, 64, portable?
- Did you see the first screen asking to press any key to continue?
- When you ran the installer, did you got the prompt for administrative rights?
- Were you running any instance of FreeCommander when you ran the script?

Regards,

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#6 Post by danpeig » 19.10.2020, 22:00

Updated version with Marek insights plus some improvements...
- Automatic detection of the settings folder for portable installations
- Automatic detection of 32-bit and 64-bit FC versions
- Using %FCSrcPath% relative paths instead of hard-linked plugin locations ensuring full portability
- Improved user interface with some colors[/list]

https://github.com/danpeig/freecommande ... _installer

or

https://www.danbp.org/p/en/node/151

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#7 Post by cm630 » 20.10.2020, 19:03

I have tried the new script.
I unpacked the installer folder, then I "run it with PowerShell", I was asked for some requirements (Yes, No, Yes to All...., I cannot tell more, because I run it for a second time and they are not required anymore) and I pressed Y.
I closed FreeCommander and I pressed Enter, according to the instructions.
I entered the full path to FreeCommander (C:\Users\username\Apps\freeCommander) and on the next question I pressed Enter for default.
Some progress bar was in progress, after that some text was printed, I cannot tell what, because the power shell closed itself.
Now FreeCommander cannot start, an error "Can not create/read config file:...." is shown.
I have admin rights, Win 10 64 bit, FreeCommanderXE-32-donor_831.
7ZipFreeCmd.png
7ZipFreeCmd.png (3.84 KiB) Viewed 223 times
But now there is a WCX folder created in the /Plugins subfolder and it seems to contain what it should.

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#8 Post by danpeig » 20.10.2020, 21:11

Hello CM630,

- The PowerShell script should not close automatically.
- Inside the script there are no Yes/No questions. The only dialog box should be the Windows User Access Control.

I will try to figure out what happened....

Meanwhile let's fix you actual problem:

1. Go to you FreeCommander Settings Folder. It could be inside the app folder or inside C:\Users\Username\AppData\Local\FreeCommanderXE\Settings. You know this is the correct folder because it has a FreeCommander.ini file.
2. Rename the actual FreeCommander.ini file to something else like FreeCommanderOLD.ini.
3. Look for the backup file inside the folder, something like: FreeCommander_BKP0.ini or FreeCommander_BKP1.ini
4. Rename the backup file to FreeCommander.ini.
5. Now your FreeCommander application should be operational again.
6. Backup all your settings.
7. To manually enable the plugin go to the settings menu -> archiver plugins
8. Click the Add Plugin Button
9. Fill the form with the following data:
  • Title: Total7zip
  • File extensions: 7z.xz.bzip2.gzip.tar.zip.arj.cab.chm.cpio.cramfs.deb.dmg.fat.hfs.iso.lzh.lzma.mbr.msi.nsis.ntfs.rar.rpm.squashfs.udf.vhd.wim.xar.z.gz
  • Plugin file (if you are using 64-bits FreeCommander): %FCSrcPath%\Plugins\wcx\Total7zip\Total7zip.wcx64
  • Plugin file (if you are using 32-bits FreeCommander): %FCSrcPath%\Plugins\wcx\Total7zip\Total7zip.wcx
  • Self extracting SFX: %FCSrcPath%\FCSFXStub.exe

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#9 Post by cm630 » 21.10.2020, 05:31

Thanks,
I think there should be a

Code: Select all

pause
at the end of the script otherwise, there is nothing to prevent the console from closing.

I knew how to fix the FreeCommander, I have plenty of backed up settings ;)
I have renamed the power shell file and "Run with PowerShell" again, here is the message, probably from the OS:
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All Suspend [?] Help (default is "N"):


(I have no idea why the last items are stroke trough, sth, with the forum.)
Last edited by cm630 on 21.10.2020, 05:44, edited 1 time in total.

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#10 Post by cm630 » 21.10.2020, 05:43

Okay, I have figured it out.
Your script is removing the BOM from the INI file. I have opened and saved freecommnder.ini with BOM and now everything is fine.

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#11 Post by danpeig » 21.10.2020, 14:10

cm630 wrote:
21.10.2020, 05:43
Okay, I have figured it out.
Your script is removing the BOM from the INI file. I have opened and saved freecommnder.ini with BOM and now everything is fine.
Thank you for the tip! I released an updated version of the script to fix the BOM problem. Now it generates the new configuration file with the same encoding as the original file (UTF-8+BOM).

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#12 Post by cm630 » 21.10.2020, 15:10

It is better now, nothing got damaged, the console did not close itself, but it seems that my 32 bit FC was detected as 64, as Total7zip.wcx64 was set for the plugin to be used, instead of Total7zip.wcx.

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#13 Post by danpeig » 21.10.2020, 15:52

The script detects the 32-bit or 64-bit versions based on presence of the files

Code: Select all

FCIcons.dll
and

Code: Select all

FCIcons64.dll
. Do you have a copy of the 64-bit library in your 32-bit installation directory? This could happen if the 32-bits version was installed over a previous 64-bit version or vice-versa. In such cases it will assume 64-bits.

cm630
Posts: 17
Joined: 14.08.2012, 20:15

Re: Total7zip Plugin Installer

#14 Post by cm630 » 22.10.2020, 05:19

Yes, I have both.
:idea: Maybe for cases like this, there should be a question „Cannot detect FreeCommander version, please select 32 bit or 64 bit“?

User avatar
danpeig
Posts: 8
Joined: 12.10.2020, 21:55
Contact:

Re: Total7zip Plugin Installer

#15 Post by danpeig » 22.10.2020, 15:31

I was not expecting someone would have both versions in the same folder but I can add a couple of lines in the next version to account for this scenario :P .

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests