theoretically changing the version number in \install\windows\config.ps1 will work.
the hard way
if solely changing the version number do not work... I feel sorry about that.
I will explain how the scripts works:
cmd's
all the cmd scripts are helper scripts that actually calls powershell scripts(ps1).
install.cmd goes to the temp dir of the user(~\AppData\Local\temp) and then downloads the install.ps1 and then trigger install.ps1
run.cmd this is created by install.ps1 to run lexos. that calls the local script: run.ps1, that should be located at $lexosExecutableLocation = "$lexosLocation\install\windows\", see config.ps1 L5 for more detail.
update.cmd this directly downloads the string of update.cmd and then eval(or invoke-expression in powershell) the string.
Therefore the local version of install.cmd, update.ps1, install.ps1 actually never runs.
ps1's
This is the tricky part, but because of the awesomeness of powershell, it is actually very easy to read.
install.ps1
this file first goes to https://repo.continuum.io/archive/, and then go through the table to find the latest version of anaconda and then check the hash, and install it.(special notice, because the security issue of MD5, continuum resently changes all their verification method from MD5 to SHA256, this archive page still uses outdated MD5, I think some time they will change it sometime, then we need to change our script as well.)
and then this script goes to the lexos release page and downloads the release with the version number you specified.
and then create shortcut, install module, and stuff.
run.ps1
this script opens a cmd running python(but not display the output, the output is redirected to null.)
and then continuously trying to connect to http://localhost:5000 when it success, pop up the default browser.
update.ps1
This script will first check whether the version you specify in config.ps1 is already installed. if not, remove all the other version of lexos(basically C:\Lexos-*) and then install the new version of lexos.
first thing first
powershell rocks.
the easy way
theoretically changing the version number in
\install\windows\config.ps1
will work.the hard way
if solely changing the version number do not work... I feel sorry about that.
I will explain how the scripts works:
cmd's
all the cmd scripts are helper scripts that actually calls powershell scripts(
ps1
).install.cmd
goes to the temp dir of the user(~\AppData\Local\temp
) and then downloads theinstall.ps1
and then triggerinstall.ps1
run.cmd
this is created byinstall.ps1
to run lexos. that calls the local script:run.ps1
, that should be located at$lexosExecutableLocation = "$lexosLocation\install\windows\"
, see config.ps1 L5 for more detail.update.cmd
this directly downloads the string ofupdate.cmd
and then eval(orinvoke-expression
in powershell) the string.Therefore the local version of
install.cmd
,update.ps1
,install.ps1
actually never runs.ps1's
This is the tricky part, but because of the awesomeness of powershell, it is actually very easy to read.
install.ps1
this file first goes to https://repo.continuum.io/archive/, and then go through the table to find the latest version of anaconda and then check the hash, and install it.(special notice, because the security issue of MD5, continuum resently changes all their verification method from MD5 to SHA256, this archive page still uses outdated MD5, I think some time they will change it sometime, then we need to change our script as well.)
and then this script goes to the lexos release page and downloads the release with the version number you specified.
and then create shortcut, install module, and stuff.
run.ps1
this script opens a cmd running python(but not display the output, the output is redirected to null.) and then continuously trying to connect to
http://localhost:5000
when it success, pop up the default browser.update.ps1
This script will first check whether the version you specify in
config.ps1
is already installed. if not, remove all the other version of lexos(basicallyC:\Lexos-*
) and then install the new version of lexos.other cool stuff.
the
lexos_installer.exe
is made with http://bat2exe.net/ andinstall.cmd
. thelexos_installer.exe
(alsoinstall.cmd
andinstall.ps1
) accepts two switch:-noAnaconda
and-noConfirm
(alias:-y
)-noAnaconda
will turn off anaconda installation and download for testing.-y
will disable all the confirmation and prompt. if you want to sign theexe
orps1
file (you should, if you create a new exe or ps1) use the method here: https://github.com/GeeLaw/psguy.me/tree/master/profile#sign-scripts and the code can be found here: https://github.com/GeeLaw/psguy.me/blob/master/profile/profile.ps1#L32Happy scripting.