CS.RIN.RU - Steam Underground Community
http://cs.rin.ru/forum/

[Release] Greenluma Updater - BATCH & EXE Releases
http://cs.rin.ru/forum/viewtopic.php?f=10&t=62726
Page 2 of 4

Author:  Royalgamer06 [ Monday, 04 Mar 2013, 02:52 ]
Post subject:  Re: Greenluma Updater V2

LiL_Stenly wrote:
You want feedback, I see people mentioning you using batch script. If its just a batch script theres no point of using executables and installers, you can also use syswow64 folder to define if OS is 32 or 64bit so no need of different executables for different architectures too.

SET OST=32
IF EXIST "%SYSTEMROOT%\SYSWOW64" SET OST=64

I'm using batch and bash for everything, because it is comfortable and you can just change the script whenever you like it.

Thanks for the code! Appreciate your feedback. I will add this to V3 :)

Author:  jbruneau [ Monday, 04 Mar 2013, 18:53 ]
Post subject:  Re: Greenluma Updater V2

Royalgamer06 wrote:
Thanks for the code! Appreciate your feedback. I will add this to V3 :)


That works, you can use the %PROCESSOR_ARCHITECTURE% variable as well..

IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
@echo 64-Bit
cmd /c proj64.bat
start "Project 64-Bit" /min /wait ".\logger64.bat" -nocommandlines
@echo Done
) else (
@echo 32-Bit
cmd /c proj32.bat
start "Project 32-Bit" /min /wait ".\logger32.bat" -nocommandlines
@echo Done
)

You can also use WMI ;). But that one is a bit trickier unless you get into PowerShell or VBScript...

Nice work, Royal :D!

Author:  Royalgamer06 [ Monday, 04 Mar 2013, 20:15 ]
Post subject:  Re: Greenluma Updater V2

jbruneau wrote:
Royalgamer06 wrote:
Thanks for the code! Appreciate your feedback. I will add this to V3 :)


That works, you can use the %PROCESSOR_ARCHITECTURE% variable as well..

IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
@echo 64-Bit
cmd /c proj64.bat
start "Project 64-Bit" /min /wait ".\logger64.bat" -nocommandlines
@echo Done
) else (
@echo 32-Bit
cmd /c proj32.bat
start "Project 32-Bit" /min /wait ".\logger32.bat" -nocommandlines
@echo Done
)

You can also use WMI ;). But that one is a bit trickier unless you get into PowerShell or VBScript...

Nice work, Royal :D!

Wow, that is some advanced code you got there :)
Thanks, I'll look into it when I have time :D

Author:  ShadowDuke [ Monday, 04 Mar 2013, 22:49 ]
Post subject:  Re: Greenluma Updater V2

This you calling advanced code? ;)

Author:  Royalgamer06 [ Tuesday, 05 Mar 2013, 00:10 ]
Post subject:  Re: Greenluma Updater V2

ShadowDuke wrote:
This you calling advanced code? ;)

understandable, but it's advanced for me. I still learning.

Author:  jbruneau [ Tuesday, 05 Mar 2013, 00:47 ]
Post subject:  Re: Greenluma Updater V2

Royalgamer06 wrote:
ShadowDuke wrote:
This you calling advanced code? ;)

understandable, but it's advanced for me. I still learning.


Hahaha! It's advanced enough when it comes to cmd/bash scripting ;).

It's nice to be able to call subroutines, or other batch scripts from the main script (clean or cleaner .. :P). Great thing about the start command is that, as opposed to call <script> or cmd /c <script>, it can be used to run programs minimized / normal / maximized / background cpu / and most important wait for execution to complete. You can use the /d switch to tell it to run from a different folder as a root as well.

And for logging, you can use something like:
start "Program" /d "%windir%" /min /wait "runme.bat" -optional -switches > %temp%\royal_log.txt

If you want lines ammended:
> %temp%\royal_log.txt @echo This is line one
>> %temp%\royal_log.txt @echo This is line two
>> %temp%\royal_log.txt @echo This is line three
>> %temp%\royal_log.txt @echo Etc Etc Etc

I think I spend too much time in shell/bash, being in IT. I do a lot of scripting. Custom programs & code, program installs, updates, bla bla bla. It's fun tho! Great for backups ;)!

Author:  rasik [ Tuesday, 05 Mar 2013, 15:21 ]
Post subject:  Re: Greenluma Updater V2

cs 1.6 not working with the new green luma update..

and why that topic was locked ???

Author:  Royalgamer06 [ Tuesday, 05 Mar 2013, 16:49 ]
Post subject:  Re: Greenluma Updater V2

rasik wrote:
cs 1.6 not working with the new green luma update..

and why that topic was locked ???

Migrated to new topic @ viewtopic.php?f=29&t=62700

Author:  Royalgamer06 [ Sunday, 17 Mar 2013, 21:31 ]
Post subject:  Re: Greenluma Updater V2

Video tutorial by MultiFreeShit:

Author:  shoalraft63409-78 [ Sunday, 17 Mar 2013, 22:18 ]
Post subject:  Re: Greenluma Updater V2

epic , team up with steam006 , add a neat gui frontend to the little batch app , and some extra features :8=)

Author:  Royalgamer06 [ Sunday, 17 Mar 2013, 23:45 ]
Post subject:  Re: Greenluma Updater V2

breakdown234 wrote:
epic , team up with steam006 , add a neat gui frontend to the little batch app , and some extra features :8=)

I don't know any C++ coding yet :)

Author:  shoalraft63409-78 [ Monday, 18 Mar 2013, 17:50 ]
Post subject:  Re: Greenluma Updater V2

damn , well heres to hoping youll get there soon :8=) and keep up the great work i love this little batch app , been waitin for this ever since the last 500 GL updates :roll:

Author:  Royalgamer06 [ Monday, 18 Mar 2013, 19:53 ]
Post subject:  Re: Greenluma Updater V2

breakdown234 wrote:
damn , well heres to hoping youll get there soon :8=) and keep up the great work i love this little batch app , been waitin for this ever since the last 500 GL updates :roll:

That's exactly why I made it :D

Author:  Royalgamer06 [ Wednesday, 20 Mar 2013, 22:20 ]
Post subject:  Re: Greenluma Updater V2

Greenluma v2.6.3 successfully added :D

Author:  Johnny Rook [ Thursday, 21 Mar 2013, 22:49 ]
Post subject:  Re: Greenluma Updater V2

just AWESOME!

Going to try it. I'll post my feedback asap.

Thank you for this.

*EDIT*
Downloaded, installed, ran, update just fine! Great!

Thanx again! ;)

Page 2 of 4 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/