NodeJS - Confused about "Paths" - windows

When I installed NodeJS on my machine, I selected the "Add to PATH" option in the setup (Windows 8.1)
Later, when I used node to install .dotLess using the following command ... the path it installed to was...
C:\Users\[Name]\AppRoaming etc etc...
It was an obscure path that was relative to my actual user account. I expected it to be more like ...
C:\Program Files\node\....
So can someone explain to me how this works? I am really confused.

It appears that .dotLess was installed only for your user account, while node.js was installed for all users. Typical installations will have an option for selecting one or the other.

Related

How to find the name of a HKLM subfolder using Inno Setup?

I wish to install an After Effects plugin on the end-users' system. To ascertain the location of installation, I must find out which version, or versions of After Effects are installed. Because the folder structure looks like this:
HKLM/SOFTWARE/Adobe/After Effects/(version)/key
It's not very simple. Most graphic designers install more than one version of After Effects. And I must present them with all of them in order to let them choose which version they with to install the plugin on.
Conversely, I wish to present the user with three options:
A key that contains the common install path
A key that contains the main install path
A custom path
How's that going to be possible given the abilities and limitations of Inno Setup?
Thanks.
You need to know which version is installed on the end user's PC.
It's a piece of cake. :-)
Look at "HKEY_CLASSES_ROOT.aep": It will rewrite every time the installation is executed. So you know the latest version.
For example, it is 4.0 version when the value of "HKEY_CLASSES_ROOT.aep" is "aftereffects.project.40". And then you can check out "HKEY_CLASSES_ROOT\AfterEffects.Project.40\shell\open\command". There is the installation path.
That's it.

how to install Go language on windows without admin rights?

I don't have admin rights on my Windows machine and I am trying to install Go whose installer needs admin rights to complete the installation.
Is there any way to install Go on Windows without admin rights?
Can you download the Windows ZIP archive and extract it to somewhere in your User folder?
You would then need to update the GOROOT and PATH environment variables accordingly.
The question is still relevant and the preceding answer is still correct, but the link should be updated to https://go.dev/dl/ to obtain a Windows zip archive and not the msi installer.
It is also worth noting that environment variables may be found and edited by using the search bar to find "Edit the system environment variables" in the control panel.

Inno setup page order

I have an Inno Setup which can perform 4 types of installation types
Full install
Server install
Client install
Custom install
When installing the client App i don't want to place files on the local machine but
connect the client with the server installation.
The user has in this case not to chose a destination for the installation but has to chose a directory where a server installation is already installed.
It would be less confusing for the user if he would first select the installation type and then the installation directory or the server directory.
Is there any way to perform a switch in the page order ?
I am thinking about something like this:
i am aware that this behavior is something that isn't directly build in inno setup and maybe not wished but it would be very helpfull for the user.
Maybe somebody has a different approach on this problem, i would appreciate that too
Since i haven't got an answer for this problem and i don't think that it is possible to change the order ,i disabled the DirPage in the Setup section and created a Page that does the same as the DirPage but put it at a different position in the Setup.
Here is how to disable the DirPage:
[Setup]
...
DisableDirPage=yes
I still would be happy if anyone has a more elegant solution, but so far it seems to be the only one.

Can you install a program for all users using ClickOnce VS2010?

Can you install a program for "All Users" using Visual Studio ClickOnce Publishing?
I ran setup and was not given the option "Install for All users" => then I inspected the actual install directory and it was in the folder:
C:\Users\Patrick\AppData\Local\Apps\2.0\Z5AWACYL.000\4EQB7LVJ.RXP\mapl..tion_0000000000000000_0001.0000_d31e4ada0d11807b\
So I think no other user will be allowed to run it. How does one create a project installer that installs a program to all users?
After a bunch of research the answer is No.
I figured out a really hack way to pull it off. But it caused problems in production, specifically, I got calls from this guy, and he's like "Do I have to install the app for every user?", Then later he would say, "User1 is running version X.X.X.1, but user2 is running X.X.X.2" So it was a lot of work for disappointing results.
Have you taken a look at this? http://msdn.microsoft.com/en-us/library/dd997001.aspx

What folder should I install Eclipse to on Windows?

I'm running Windows 7 with UAC enabled. I've always found it weird that Eclipse doesn't use an installer and doesn't use the AppData folder to store its data in Windows, but lately I've had to reinstall it a couple times (hard drive problems) and I've been wondering if I am really putting it in the best place.
I copy the eclipse folder to my C:\Program Files\ directory and make a shortcut on my start menu, and then pin it to my taskbar. However, eclipse has problems so I go to properties, the compatibility tab, and enable "Run as administrator". Then every time I open eclipse I have to hit yes on the UAC window, but everything works correctly, except for one side effect: my touchpad doesn't scroll any windows in eclipse. This is because the touchpad program is running as a normal user, so it can't modify eclipse running as administrator. So, then I have to close and reopen my touchpad software as an administrator.
Anyway, long story short... Where is the best place to put the eclipse folder in Windows, and why?
Edit: I just found a possible suggestion, feel free to comment. Sounds like I can just run it as administrator once the first time and set up all my plugins and such, and then run it as a normal user for my normal tasks (coding). I can't believe I never thought of doing this, but I may stick to the Program Files directory and give this approach a try unless I get a better answer here.
Ninite places Eclipse in C:\eclipse. Ever since asking this question, that has been my install location for Eclipse. Eclipse still does not properly handle permissions when run out of the Program Files folder.
I setup Eclipse in
c:\software\eclipse_{version}\
I keep all my open source packages (ANT, Maven, Apache, etc) in c:\software as well. Then I add the necessary directories to my $PATH variable (c:\software\ant\bin).
I also keep the Eclipse workspace under c:\software\eclipse_workspace.
The big plus behind this setup is portability. I can simply move the entire folder to a new drive, re-setup my path, and boom everything works. No interference from registry settings at all. Makes it very easy to backup.
This approached worked for XP, Windows7 RC1 and Windows7 Professional without issue.
You can install (unzip) an eclipse:
anywhere you want (meaning you don't have to install it on c:\Program Files (I install it for instance on c:\prog\java\eclipse, a directory tree I create
with a workspace set anywhere you want (for me: c:\prog\java\workspace, and I reference that workspace in my eclipse.ini.
This is important because the default location of a workspace (using user.home) is not always a good idea (see this SO question and its associated eclipse bug which will be solved only with the upcoming eclipse Helios 3.6)
with plugins set anywhere you want through a Dropins folder (also referenced in the eclipse.ini, for me: c:\prog\java\myplugins)
with a JVM installed anywhere you want (also referenced in the eclipse.ini, for me: c:\prog\java\jdks\jdk6u18, and I have installed several others jdks in c:\prog\java\jdks)
Eclipse shouldn't ever have to be in c:\Program Files, and the setting describe above works perfectly with:
Vista or Seven, UAC fully activated
XP, with no Administrator rights.
I usually install Eclipse to %LocalAppData%.
C:\Users\<username>\AppData\Local\Eclipse\<version>\
Common install path used by Google Chrome, Python, GitHub Desktop, Discord, and f.lux
Only installs Eclipse for the current user profile. (separate per-user settings)
Does not require administrator privileges
Accessible as a default Windows environment variable (%LocalAppData%)
Folder is designated specifically to hold application data
You could put it under your User folder or My Documents folder, so you don't have to worry about permissions. Then just add a link to your start menu / quick start / desktop and you will be good to go.
I have many different versions of Eclipse and related products installed. So I have them installed as C:\Eclipse\... for Windows and /Eclipse/... under Mac and Linux. Usually with the directory name as the base name of the zip - e.g. eclipse-rcp-helios-SR2-macosx-cocoa-x86_64... Some products, like those from IBM, have their own ideas and can often not be changed...
As for the workspaces - yes, I have one for each customer - they are placed under /Eclipse/Workspaces/... and friends.
And the target platforms are placed under /Eclipse/TargetPlatforms/... and friends.

Resources