I did launch a command prompt as an administrator.
Forums
I cant install cobra
7 posts
• Page 1 of 1
Re: I cant install cobra
I haven't seen this before. The contents of the install batch file are:
Only the line starting with "@Snapshot\cobra.exe ..." is truly essential.
Can you show us the output of "dir" and also "dir Snapshot"?
If you install on C: drive, does the problem go away?
Can you pass "-v:2" to the command? Like:
Also, instead of a graphic screenshot, please copy the text instead and paste it in your message. Instructions for how to do this are at http://www.howtogeek.com/howto/windows- ... nd-prompt/
- Code: Select all
@cls
@echo.
@echo Compiling installation program...
@Snapshot\cobra.exe -debug -ert:yes InstallFromWorkspace.cobra SubversionUtils.cobra -- %*
@cd ..\..
Only the line starting with "@Snapshot\cobra.exe ..." is truly essential.
Can you show us the output of "dir" and also "dir Snapshot"?
If you install on C: drive, does the problem go away?
Can you pass "-v:2" to the command? Like:
- Code: Select all
bin\install-from-workspace -v:2
Also, instead of a graphic screenshot, please copy the text instead and paste it in your message. Instructions for how to do this are at http://www.howtogeek.com/howto/windows- ... nd-prompt/
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: I cant install cobra
I had this problem as well. It seems that there is "cd .." command missing before the main statement. Inserting it in a batch file fixes the problem. Should look like this:
On the other hand, I am a bit puzzled with the last statement - "@cd ..\..". What is it intended to do? Simply get to the root folder when the setup finishes?
- Code: Select all
@cls
@echo.
@echo Compiling installation program...
@cd ..
@Snapshot\cobra.exe -debug -ert:yes InstallFromWorkspace.cobra SubversionUtils.cobra -- %*
@cd ..\..
On the other hand, I am a bit puzzled with the last statement - "@cd ..\..". What is it intended to do? Simply get to the root folder when the setup finishes?
- vazub
- Posts: 2
Re: I cant install cobra
-- The ReadMe.text says to enter:
So the "cd .." would not work. However, if anyone wants to submit .bat/.cmd code that would detect when the person cd's into the bin directory and adjusts accordingly, I'd be happy to incorporate it.
-- Yes the "cd ..\.." gets you out of the installation directory. Without this, some people got confused thinking that they were supposed to be in there and doing something with the package files.
- Code: Select all
cd CobraWorkspace\Source
bin\install-from-workspace
So the "cd .." would not work. However, if anyone wants to submit .bat/.cmd code that would detect when the person cd's into the bin directory and adjusts accordingly, I'd be happy to incorporate it.
-- Yes the "cd ..\.." gets you out of the installation directory. Without this, some people got confused thinking that they were supposed to be in there and doing something with the package files.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: I cant install cobra
Charles wrote:-- The ReadMe.text says to enter:
- Code: Select all
cd CobraWorkspace\Source
bin\install-from-workspace
So the "cd .." would not work.
Perhaps, those instructions were a bit misleading for some CLI-savvy people in the first place At least for me, it would seem more logical to traverse the folder tree to the final destination and then execute a command from within there, like this:
- Code: Select all
cd CobraWorkspace\Source\bin
install-from-workspace
And that's exactly how I did it (prior to checking the readme.txt), resulting in an aforementioned installation fail. And I was not alone, as we can see.
Perhaps it would make things less confusing to simply modify the instructions in the readme and add "@cd .." line, instead of thinking out some complex checking logic in a .bat file to cover all the possible innacurate use cases? Just my five cents.
- vazub
- Posts: 2
Re: I cant install cobra
I understand where you are coming from, but the script should be robust such that it doesn't matter where you start. We already have that for the bash scripts. Turns out it's this easy for Windows batch files:
Now fixed.
Thanks for the feedback.
- Code: Select all
@cd %~dp0
Now fixed.
Thanks for the feedback.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 41 guests