Topic: R-Studio 5.4  (Read 2523 times)

R-Studio 5.4
« on: May 23, 2012, 04:31:06 AM »

bryanh99

  • Jr. Chef
  • **
  • Date Registered: May 2012
  • Posts: 23
UPDATED : 5/23/2012
Version 003     Download link https://www.box.com/s/0e800ed3b80571605e16
   

  -Updated embedded CMD file to better support the script (for License extraction from the registry)





Yet another script.  This will install R-Studio 5.4.

- The script will download the software from R-Studio
- It will install in both x86 or x64
- You must supply the software license which can be read either by the script from your local machine or via a CMD file you can run where it is installed (for example in a VM)

You can get it here https://www.box.com/s/978197cdfc638f8a558c
« Last Edit: May 23, 2012, 02:36:42 PM by bryanh99 »

Re: R-Studio 5.4
« Reply #1 on: June 05, 2012, 11:44:42 AM »

ordan

  • Apprentice
  • *
  • Date Registered: Jun 2012
  • Posts: 9
Hi,

 i found bugs in GetKeyfromreg.cmd.

 here is fix - count with spaces and with windows XP
Code: [Select]
@echo off
if "%1"=="" goto :MISSING_PATH
set PATH_WHERE=%1
goto :RUN_ME

:MISSING_PATH
set PATH_WHERE=.
goto :RUN_ME

:RUN_ME

set KeyVal=HKCU\Software\R-TT\R-Studio\00000000

:RUN_EXPORT
del "%PATH_WHERE%\Hold.reg" 2>NUL
reg export %KeyVal% "%PATH_WHERE%\Hold.reg" >NUL
echo [LicenseKey] > "%PATH_WHERE%\key.ini"

type "%PATH_WHERE%\hold.reg" | find /v /i "Windows" | find /v /i "HKEY" > "%PATH_WHERE%\KeyOnly.txt"
for /f "TOKENS=1 Delims=\" %%a in (%PATH_WHERE%\KeyOnly.txt) do echo %%a >> "%PATH_WHERE%\key.ini"

del "%PATH_WHERE%\KeyOnly.txt" "%PATH_WHERE%\Hold.reg"
echo Key.ini created
pause

 

Powered by EzPortal