Total7zip Plugin Installer
Total7zip Plugin Installer
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
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, 16:14, edited 1 time in total.
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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"
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
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.
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
Thank you for the tips. I really overlooked the libraries, it would be much easier to check them.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"
I will update the script as soon as my friend Igor Pavlov releases the 2020 version of 7-Zip .
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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,
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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
- 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
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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. But now there is a WCX folder created in the /Plugins subfolder and it seems to contain what it should.
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. But now there is a WCX folder created in the /Plugins subfolder and it seems to contain what it should.
Re: Total7zip Plugin Installer
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:
- 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
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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:
(I have no idea why the last items are stroke trough, sth, with the forum.)
I think there should be a
Code: Select all
pause
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, 07:44, edited 1 time in total.
Re: Total7zip Plugin Installer
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.
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
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).
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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
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.
Code: Select all
FCIcons.dll
Code: Select all
FCIcons64.dll
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Re: Total7zip Plugin Installer
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“?
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
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 .
Daniel B.P.
https://www.danbp.org
https://www.danbp.org
Who is online
Users browsing this forum: Google [Bot] and 46 guests