Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, September 5, 2012 2:18 AM
After I run a third party msi installer I need to know the path of install location to where the installer installed its files.. Where I can find the information?
- Rajesh K http://thoughtsontechies.blogspot.com/
All replies (11)
Wednesday, September 5, 2012 4:29 AM
1) Was the third party installer built by you, If yes then you can set the install location
2) If you are installing a copy, installer will ask the location where you want to install this should not be a problem
3) If you are building the installer using Visual Studio, there is an option where you can set the application install folder.
Wednesday, September 5, 2012 5:34 AM
You actually cant know that, unless if you installed it by your self. Else, check "manually" where it is installed, by default programs are installed into C:\Program Files folder, but this is not always necessary.
In case if you only know the folder name, them you can search through the hard disc, to find the full path on it.
Mitja
Monday, September 10, 2012 8:54 AM
I am installing 3rd party msi which I dont have any control over it... I want to know where it got installed.
- Rajesh K http://thoughtsontechies.blogspot.com/
Wednesday, September 12, 2012 8:55 AM
Does the installer not tell you during installing?
Wednesday, September 12, 2012 9:21 AM
nope.. how i can get that data from installer?
- Rajesh K http://thoughtsontechies.blogspot.com/
Wednesday, September 12, 2012 11:15 AM | 1 vote
run your msi in log mode ..in log you will get the installation path.
Tuesday, September 18, 2012 8:40 AM
how to run the msi in log mode. It comes from a third party.
- Rajesh K http://thoughtsontechies.blogspot.com/
Tuesday, September 18, 2012 9:27 AM | 1 vote
on command prompt cmd>msiexec /i <msipath> /l*v <logfile>
Monday, September 24, 2012 10:40 AM
my logic is such that many times I will not be launching the installer. There is an another third party App which does that. My application's work is to find if an installer is already installed, go to its install location and launch the main executable. This install location how to get? I know the installers and the location from where they are launched. But I dont know where those installlers installs their binaries... will this install location is there in registry? How to match and search?
- Rajesh K http://thoughtsontechies.blogspot.com/
Monday, September 24, 2012 1:56 PM | 1 vote
There are in fact many ways. All depend on how your particular installer behaves.
Approach-1
Do you know the name of the application - more precisely the executable name, for example IEXPLORE.EXE for Internet Explorer?
If so, read the full path to execute this application from the following registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
OR
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths
Under this Registry Hive, you can find one entry per each application installed in your system.
Of course, you can do this only if your installer behaves properly as per Windows recommendations as you can find here.
Approach-2
You can obtain similar information if you know the MSI GUID using MsiGetProductInfo.
Approach-3
You can obtain similar information if you know the MSI GUID from the following path also:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
OR
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
So, the answer is unfortunately "IT DEPENDS ON YOUR INSTALLER". It indirectly means that there may be other ways too.
Hope it helps for your case. All the best!
Wednesday, October 3, 2012 10:52 AM
Now it depends on your app which approach is better to implement.
I will suggest to go for Approach-2 which is less error prone. You can find Microsoft library API which will make easy your work.
All the best..