Page 1 of 1
Install a new version from Within XY?
Posted: 30 Apr 2012 18:01
by n2tpa
All,
I could absolutely replace WE with XY except one situation: when I update XY. I prefer the no-install version of XY; it allows me to keep the data files in the same directory. Updating the program is for me just a matter of unzipping the files into temp directory, then overwriting the active program files with the new ones. Accessing the root files must be done in WE since I can't replace an executable from within the very same executable I'm trying to replace.
Thus the question: Is there another way to update the no-install version without using WE?
Bill
N2TPA
Re: Install a new version from Within XY?
Posted: 30 Apr 2012 18:08
by PeterH
1) terminate XY, run a copy from Windows command box.
2) load program to unzip from inside XY, then terminate XY, then start unzip direct to XY-directory.
(I prefer version 2)
Re: Install a new version from Within XY?
Posted: 30 Apr 2012 18:09
by Filehero
n2tpa wrote:Thus the question: Is there another way to update the no-install version without using WE?
Keeping one
XYplorer.exe for just that purpose somewhere in a temp folder? I have a 2nd XY "installation" on my temp drive.
Cheers,
Filehero
Re: Install a new version from Within XY?
Posted: 30 Apr 2012 20:09
by TheQwerty
I use WinRAR to view the contents of the no-install archive.
Close XY.
Extract & overwrite all from WinRAR to <xypath>.
Open XY.
*shrugs*
Re: Install a new version from Within XY?
Posted: 30 Apr 2012 21:40
by Stefan
n2tpa wrote: Thus the question: Is there another way to update the no-install version without using WE?
Maybe test this batch.
* save this code to an XYUpdater.CMD file inside the XYplorer folder
* put an command line zipper inside this folder too (i had "7za920_7-Zip 9.20_(2010-11-18)" at hand, but any zip or rar exe will do)
* put the recent non-install archive into that folder too
* execute the batch (maybe have an user command inside XYplorer to do this)
Code: Select all
@ECHO OFF
CD %~dp0
ECHO.
ECHO XYplorer archive unpacker
ECHO *************************
ECHO.
ECHO.
ECHO CWD: %CD%
REM NEEDS AN XYplorer xx yy.zip in this folder too! The LAST found is taken!
for /f "tokens=*" %%X in ('dir /b *.zip') DO set XY="%%X"
ECHO.
ECHO Archive: %XY%
ECHO.
ECHO (Press Ctrl+C to break this script now)
ECHO.
ECHO.
ECHO.
ECHO Unpack the archive now:
ECHO Please close your current XYplorer instance.
REM or use (not recommented) taskkill xyplorer
ECHO Then press "any key" to unpack the archive.
ECHO.
PAUSE
REM NEEDS AN UN-ZIPPER TOO in this folder!
7za e %XY%
ECHO Next we launch the new XYplorer version:
PAUSE
START XYplorer
Tell us how it works. I have tested it only on XP right now.
Re: Install a new version from Within XY?
Posted: 01 May 2012 11:36
by Marco