Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:27

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: lpatch unattended (with no user input)
PostPosted: 28 Oct 2010 10:24 

Joined: 28 Oct 2010 10:09
Posts: 4
thanks for this nice tool.

I would like to run it fully unattended from a batch script but lpatch always ask me to answer y/n/c.

1/ creation of lpatch.dat
original dll and binary modified dll put all together in r:\temp folder

Code:
mlpatch original.dll patched.dll "anti-msopa"


2/ script to patch the dll
Code:
pushd "pathname"
lpatch_nogui -y lpatch.dat original.dll
popd


also tried
Code:
pushd "some_path"
lpatch_nogui lpatch.dat original.dll yes
popd


in both cases, lpatch always ask me to confirm choice (y/n/c):

what's wrong with syntax used in my command?
-y or yes should give answer and run lpatch unattended?


Top
 Profile  
 
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 28 Oct 2010 11:12 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
eh eh eh you are correct, the error is mine :)

in the meantime of a new version you can use:
echo y|lpatch_nogui -y lpatch.dat original.dll


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 28 Oct 2010 13:21 

Joined: 18 Oct 2010 21:31
Posts: 13
Aluigi you ignoreing my post of the ventrcon ;s
Please, I need help.


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 31 Oct 2010 22:38 

Joined: 28 Oct 2010 10:09
Posts: 4
aluigi wrote:
eh eh eh you are correct, the error is mine :)

in the meantime of a new version you can use:
echo y|lpatch_nogui -y lpatch.dat original.dll


Using output of echo y command and pipe to lpatch_nogui.exe is OK on the 1st computer and 2nd i checked
but on a 3rd high-end computer with plenty of memory and SSD, it fails.
I'm guessing the echo command does not expel its output before the system has a chance to build the pipe to lpatch_nogui.

Tried different way to work around this.

created a dummy file with just a "y" in it and use the syntax:

lpatch_nogui -y lpatch.dat original.dll < yes.txt

same issue with 3rd computer

I hope you'll release Lame Patcher 0.4.5 soon with -y switch fixed.


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 01 Nov 2010 12:26 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ok fixed:
http://aluigi.org/mytoolz.htm#lpatch

thanx for having reported the problem


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 01 Nov 2010 14:53 

Joined: 28 Oct 2010 10:09
Posts: 4
I will have to wait a few minutes or hours.
Downloaded again http://aluigi.org/mytoolz/lpatch.zip at 14:30(UTC+1).

checked with command:
mlpatch lpatch_nogui.exe lpatch_nogui201011011430.exe
and found no differences.

I assume i should give you more time to upload the new lpatch.zip to your website. I don't want to put pressure on you.

Finding your toolz website (Google search for a binary patcher i could run from command line and that can be scripted), i'm getting very excited to discover lpatch could do that and started to rewrite my batch scripts to use it.
In the meantime, i also tried mydown and is multithread feature. Really a better alternative to wget or Curl for my scripts.


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 01 Nov 2010 17:39 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
shame on me, I made the post and the forgot to upload it ah ah ah :)
now it's online, sorry again.


Top
 Profile  
 
 Post subject: Re: lpatch unattended (with no user input)
PostPosted: 02 Nov 2010 17:26 

Joined: 28 Oct 2010 10:09
Posts: 4
Oh, never mind.

0.4.4a working as expected.
can be used in command batch scripts.
Perhaps not M$ approved but at the end who care? |-D


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron