Page 1 of 3
Total7zip Plugin Installer
Posted: 16.10.2020, 23:11
by danpeig
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
Re: Total7zip Plugin Installer
Posted: 18.10.2020, 11:40
by Marek
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"
Re: Total7zip Plugin Installer
Posted: 19.10.2020, 15:25
by cm630
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.
Re: Total7zip Plugin Installer
Posted: 19.10.2020, 19:35
by danpeig
Marek wrote: ↑18.10.2020, 11: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 .
Re: Total7zip Plugin Installer
Posted: 19.10.2020, 19:40
by danpeig
cm630 wrote: ↑19.10.2020, 15: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,
Re: Total7zip Plugin Installer
Posted: 20.10.2020, 00:00
by danpeig
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
Re: Total7zip Plugin Installer
Posted: 20.10.2020, 21:03
by cm630
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 (3.84 KiB) Viewed 93976 times
But now there is a WCX folder created in the /Plugins subfolder and it seems to contain what it should.
Re: Total7zip Plugin Installer
Posted: 20.10.2020, 23:11
by danpeig
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:
- 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
Re: Total7zip Plugin Installer
Posted: 21.10.2020, 07:31
by cm630
Thanks,
I think there should be a
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.)
Re: Total7zip Plugin Installer
Posted: 21.10.2020, 07:43
by cm630
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.
Re: Total7zip Plugin Installer
Posted: 21.10.2020, 16:10
by danpeig
cm630 wrote: ↑21.10.2020, 07: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).
Re: Total7zip Plugin Installer
Posted: 21.10.2020, 17:10
by cm630
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.
Re: Total7zip Plugin Installer
Posted: 21.10.2020, 17:52
by danpeig
The script detects the 32-bit or 64-bit versions based on presence of the files
and
. 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.
Re: Total7zip Plugin Installer
Posted: 22.10.2020, 07:19
by cm630
Yes, I have both.
Maybe for cases like this, there should be a question „Cannot detect FreeCommander version, please select 32 bit or 64 bit“?
Re: Total7zip Plugin Installer
Posted: 22.10.2020, 17:31
by danpeig
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
.