ActiveMQ install issue - installation

I am running win7 professional 64-bit. I have already installed java, and am trying to install ActiveMQ. The install worked perfectly on a Windows Server 2003 machine but now it is giving me issues on my win7 machine. I download ActiveMQ 5.3.2 extract the files and then try to run the installservice.bat file as administrator and it gives me the following error in command prompt: '"wrapper.exe"' is not recognized as an internal or external command, operable program or batch file.

I had the same issue when using Windows Explorer and right clicking on the InstallService.bat file and selecting "Run As Administrator".
However, this worked for me (without having to change my user control settings):
1) Open a command prompt (right clicking first with "run as administrator").
2) Then navigate to the folder where your batch file is and simply type InstallService.bat.

Ok I feel a little stupid answering my own question but here it goes. Turn off the user control settings in the control panel

I had the same issue with apache-activemq-5.6.0 and solved it this way:
Open cmd.exe as admin (click on Start, type in cmd, right click on the "cmd" program, and choose Run as administrator)
In the cmd.exe window, navigate to your apache-activemq-5.X.X root dir (which contains bin, conf, data, docs, ...)
From there, navigate to bin\win64
Your commmand prompt should show something like:
...\apache-activemq-5.6.0\bin\win64>
Still in the cmd.exe, run InstellService.bat
It does not work if you run something like win64\InstellService.bat while being in bin. You have to actually navigate to bin\win64 first.

The in case you are installing in win 64 bit 2012 Server too, run InstallService.bat under sys32.
Its little confusing but it works.

Related

"sudo su" equivalent in windows

I've seen multiple questions on this topic and some answers about runas but none of them was sufficient...
I need a Windows command to upgrade privileges of a terminal after it has already been opened with permissions of an average user. ie. To upgrade permissions for the whole terminal session and not just to run one command as administrator! Something just like sudo su in Linux.
If anyone knows any trick to do this that would be much appreciated.
Edit:
Why I need this? I use the terminal in Visual Studio Code; it wouldn't let me run commands that require administrative permissions. It sucks to have to open an external terminal to do this... And currently, the only way I'm aware of to run a terminal in VS code in elevated permissions would be by editing the Code.exe's compatibility settings to run as administrator. But that adds more trouble because now it shows the user account control prompt every time I run an instance of VS Code.
Also creating a special shortcut to run VS Code in administrative mode wouldn't help because I run it from the context menu (Open With Code) so I don't have to manually navigate to the project folder.
There is no such an equivalent in Windows.
What you might do is to open your desired process from cmd with:
runas /user:administrator processname.
or open any application with right-click and run as..

How to access Anaconda in PowerShell after reinstallation?

Anaconda was installed by Systems Team on my work computer.
For reasons beyond this topic, they installed in Program Files, which I think is non-optimal.
So I ask permission to remove the installation and reinstall it via standard procedures.
When I open Anaconda PowerShell prompt it is still pointing to the Program Files installation which I have removed.
I have also checked the Path environmental variable, and there is nothing looking like Anaconda is still there.
How can I get Anaconda PowerShell prompt to work again?
It should be noted that conda command does work in regular command prompt.
Thanks.
Initialize conda for use with Powershell via
conda init powershell
This command should be run in Anaconda Prompt.
Before following #Peter's solution, I was able to track the problem via a more rustic procedure.
Right click on Start Menu's Anaconda PowerShell Prompt, and select Open File Location.
Right click on the icon's Properties, select Shortcut tab > Target field.
Copy the command to a text editor, and noticed it was still using an old location.
Changing the command to point to the right location did fix the problem.
... but that is only the command from the Start Menu, the rest is done by what was suggested before.
Thanks for the help.

Difference between File Explorer (Windows EXplorer) and Run Command

Is there any difference between File Explorer and Run command in Windows system while accessing the remote location path.
For EG: \\hostIP\folder1
I haven't used Windows for a long time (I'm just using Linux for everything) but from what I remember "Run" just opens File Explorer, so there shouldn't be any difference. But I may be wrong.

Msysgit for windows - Cheetah plugin not showing?

I recently installed git 1.8 for windows and chose to install the cheetah plugin for windows explorer shell integration. However, I don't see any options pop-up in the right click menu. Is there something I have to do to get it to appear in the right-click menu?
I am using Windows 7 Enterprise 64bit.
In:
C:\Program Files (x86)\Git\git-cheetah
Do:
regsvr32 git_shell_ext64.dll
This at least gets you 3 context menus (don't know if cheetah plugin cause I never saw it :-)
Is this a bug or what? I thought installer should be doing this (things like registering DLLs).
P.S. of course you have to run this command as Administrator.
P.P.S. Start | Run, type cmd.exe, then RIGHT CLICK cmd.exe and select "run as administrator". Apparently you also have to restart Windows Explorer to see the context menu.
Cheetah plugin seems to be broken in Git-1.8.3-preview20130601 on some systems (including mine). Re-registering .dll file as suggested didn't helped. The way I fixed it is:
Install older version - Git-1.8.1.2-preview20130201 with Cheetah
plugin.
While updating to Git-1.8.3-preview20130601 deselect context
menu integration (no worries, it won't uninstall a plugin).
The registry entry is separate for when you right click on a folder icon versus right clicking on space inside a folder.
If memory serves "Cheetah" only works with the former.
Example
I have the same problem on Windows 7 with Git-1.8.3-preview20130601 version.
Supposedly when you select the Cheetah plugin on install it also installs the git-gui and gitk tools as well, but these were not showing up in the right click menu either.
After adding the path to the git cmd folder I at least got git-gui and gitk to be available. ie add to your PATH variable:
"path to git directory install"\cmd

installing Cygwin 1.7.15-1 on Win 7

I downloaded and ran setup, and it seemed to completed normally, but after it completed I didn't have cygwin in my startup menu or a shortcut on my desktop, both of which I selected. The C:\cygwin does exist, with subdirectories under it. I execute c:\cygwin\bin\xterm. It flashed on the screen with an error message, but it was too quick to read. I have run cygwin before on XP without problems, but this is the first time with Win 7.
Is there some background process that needs to be running for cygwin to work? I am wondering if the installation is OK, but I am just missing the startup menu entry or desktop icon which starts a background process, or is there some path or registry entry I need to make.
The problem was I didn't install as administrator. When I went back and re-installed as administrator, everything worked fine.

Resources