This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How best to find another app’s install dir?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 18, 2007
11:56 AM
How best to find another app’s install dir?
I want to install and attach database files into the SQLExpress data directory as a work around to a directory permissions problem on XP SP2, (basically the SQLExpress service doesn’t have permission to write in my app’s install dir).
I can copy DB files into the directory I want and attach them. I know where to default directory location is and can test for it before copying.
My question is if the user has installed SQL Server/Express into a non-standard location pervious to running my installer, what's the best way to find the directory I want? Is using FindAllFiles(with some SQL default file) good enough or is there a better way?
I can copy DB files into the directory I want and attach them. I know where to default directory location is and can test for it before copying.
My question is if the user has installed SQL Server/Express into a non-standard location pervious to running my installer, what's the best way to find the directory I want? Is using FindAllFiles(with some SQL default file) good enough or is there a better way?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 22, 2007
11:21 AM
I generally use the 'App Paths' registry key to find program install paths. For instance, I do not have sql express installed here, but I do have regular sqlserver.exe installed, and to find out where the exe is located I would check this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe\Path
Hope that helps...
-putman
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe\Path
Hope that helps...
-putman
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)