setup-1.7.exe replace on boot. Was it deprecated?

View: New views
4 Messages — Rating Filter:   Alert me  

setup-1.7.exe replace on boot. Was it deprecated?

by Shaddy Baddah-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was wondering if the replace on boot feature in setup was deprecated
with setup-1.7.exe? I am trying to do an install via the following
command-line:

/cygdrive/d/Temp/setup-1.7 -L -r /cygdrive/c/cygwin-1.7 -l
/cygdrive/d/cygwin-1.7-downloads -P rsync -q

as an Administrator user on Windows XP (so no privilege elevation
issues, as far as I am aware). I am getting the following errors:

Installing file cygfile:///usr/bin/cygwin1.dll
io_stream_cygfile: fopen(/usr/bin/cygwin1.dll) failed 13 Permission denied
Failed to open cygfile:///usr/bin/cygwin1.dll for writing.
Not replacing in-use file cygfile:///usr/bin/cygwin1.dll

Now according to the command line options:

-r --no-replaceonreboot                Disable replacing in-use files
on next
                                        reboot.

replace on boot can be turned "off", if I had specified -r, which I
hadn't. That suggests that it is "on" by default. Shouldn't setup be
writing to a .replace, or such, suffixed file for replace on boot?

Regards,
Shaddy



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Re: setup-1.7.exe replace on boot. Was it deprecated?

by Robert Pendell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 8:47 AM, Shaddy Baddah wrote:

> Hi,
>
> I was wondering if the replace on boot feature in setup was deprecated
> with setup-1.7.exe? I am trying to do an install via the following
> command-line:
>
> /cygdrive/d/Temp/setup-1.7 -L -r /cygdrive/c/cygwin-1.7 -l
> /cygdrive/d/cygwin-1.7-downloads -P rsync -q
>
> as an Administrator user on Windows XP (so no privilege elevation
> issues, as far as I am aware). I am getting the following errors:
>
> Installing file cygfile:///usr/bin/cygwin1.dll
> io_stream_cygfile: fopen(/usr/bin/cygwin1.dll) failed 13 Permission denied
> Failed to open cygfile:///usr/bin/cygwin1.dll for writing.
> Not replacing in-use file cygfile:///usr/bin/cygwin1.dll
>
> Now according to the command line options:
>
> -r --no-replaceonreboot                Disable replacing in-use files
> on next
>                                       reboot.
>
> replace on boot can be turned "off", if I had specified -r, which I
> hadn't. That suggests that it is "on" by default. Shouldn't setup be
> writing to a .replace, or such, suffixed file for replace on boot?
>
> Regards,
> Shaddy
>
>

Actually you are if you look at your command line again.

Try this version of it.

/cygdrive/d/Temp/setup-1.7 -L /cygdrive/c/cygwin-1.7 -l
/cygdrive/d/cygwin-1.7-downloads -P rsync -q

Note the lacking -r in this version.
Robert Pendell
shinji@...
CAcert Assurer
"A perfect world is one of chaos."

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Re: setup-1.7.exe replace on boot. Was it deprecated?

by Shaddy Baddah-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Robert Pendell wrote:
> On Sat, Nov 7, 2009 at 8:47 AM, Shaddy Baddah wrote:
>  
>> /cygdrive/d/Temp/setup-1.7 -L -r /cygdrive/c/cygwin-1.7 -l
>> /cygdrive/d/cygwin-1.7-downloads -P rsync -q
>>    
<snip>
>> replace on boot can be turned "off", if I had specified -r, which I
>> hadn't. That suggests that it is "on" by default. Shouldn't setup be
>>    
<snip>
> Actually you are if you look at your command line again.
>  
> Try this version of it.
>
> /cygdrive/d/Temp/setup-1.7 -L /cygdrive/c/cygwin-1.7 -l
> /cygdrive/d/cygwin-1.7-downloads -P rsync -q
>
> Note the lacking -r in this version.
>  
Ouch. How very embarrassing. That's what happens when you CTRL-r to a
command-line and assume things about it (I normally build the
command-line from the ground up, with no superfluous options).

Thanks Robert. Sorry for the carelessness, list.

Regards,
Shaddy


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Re: setup-1.7.exe replace on boot. Was it deprecated?

by Shaddy Baddah-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again,

Shaddy Baddah wrote:

>> Actually you are if you look at your command line again.
>>   Try this version of it.
>>
>> /cygdrive/d/Temp/setup-1.7 -L /cygdrive/c/cygwin-1.7 -l
>> /cygdrive/d/cygwin-1.7-downloads -P rsync -q
>>
>> Note the lacking -r in this version.
>>  
> Ouch. How very embarrassing. That's what happens when you CTRL-r to a
> command-line and assume things about it (I normally build the
> command-line from the ground up, with no superfluous options).
>
> Thanks Robert. Sorry for the carelessness, list.
Ok, now I see what's happened. The command line you have suggested
should work (I haven't tried it owing to not being able to access this
system now, and by working around the issue anyway)... but the
/cygdrive/c/cygwin-1.7-1 will be superfluous to the command line. In
fact, it was the same for my command line, because I actually mean -R to
specify that root, instead of the lower-case -r that I had used. I guess
setup works out (uses the last installed to root, perhaps) the intended
Cygwin installation dir if it is not specified (correctly) on command line.

Thanks again,
Shaddy


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple