You are here

Is there a way to track environment variable changes made by an installer?

5 posts / 0 new
Last post
dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
Is there a way to track environment variable changes made by an installer?

I'm working on a Qt Creator Portable, but I am having some difficulty getting Qt Creator for find the files on the portable drive.

I've run RegShot to track file and registry changes. Qt Creator doesn't appear to use the registry at all, instead it uses an INI file. I've set up QtCreatorPortable.exe to modify the INI file to point to the portable installation, but it still doesn't find it. Where else might a program put settings information?

I'm thinking that there might be an environment variable, but looking at the environment variables under my computer's System Properties, I don't see any environment variables with the Qt Creator directories. Is there a program similar to RegShot that tracks changes to environment variables?

Any help would be greatly appreciated.

Thanks you,

Andy

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
RegShot

RegShot is useful for many things... and it can be used to track what environment variables get changed at the system level (i.e. permanently, not just for the process and subprocesses). It's in the registry somewhere, HK(CU|LM)\Software\Microsoft\Windows\Environment or something like that (can't verify it ATM as registry access is locked down here).

Try looking at qtcreator.exe in Dependency Walker; you may find something useful there (or more to the point, you might find what it's failing to find).

The PATH environment variable may well need to have something added to it.

I've got Qt Creator installed on my laptop at home, I'll also check up on it for you and offer suggestions if I remember to.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
I didn't realize that

I didn't realize that Environment Variables got saved to the registry as well. That makes sense, but I just never put 2 and two together.

I'll take a look at Dependency Walker, but I don't know how useful it will be. Qt Creator runs, so it is not failing to find a dependent module. It just that it can't find the examples directory or recognize the directory with qmake.exe. I don't know how much you have looked at Qt Creator, but it is possible to use it with multiple version of Qt, and there is a config in the program to point to the other versions. With my Qt Creator portable, even when I point it at the right directory, it still does not recognize it as an installation of Qt.

I even downloaded the source and poked through that. I haven't had the time to sort it out yet, but it looks like it determines a valid installation of Qt by looking for qmake.exe, so I don't know why it refuses to recognize the portable version.

I've also looked to see where it gets the information for the installation of Qt, and that appears to be in the environment variables, but I don't see it anywhere, which is why I started this thread.

I tried Adding the portable Qt directory to the PATH environment variable, but that didn't work. *shrug*

Anyway, that's where I'm at. Thank you for your response and for looking into this if you have the time.

Andy

dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
User headspace error

Oops, when I did a search for the Qt Creator install directory in the registry, I found registry references for Nokia and Trolltech. I'm not sure how I missed that in RegShot, but Qt Creator apparently does use the registry. So, I at least know where I need to look.

It's about time that I figured out registry stuff for PortableApps.

Thanks,

Andy

dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
Nope

The registry entries weren't the problem. I still can't figure out why Qt Creator cannot find or rejects the Qt on the portable drive.

Log in or register to post comments