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
- :
- Re: how to get [INSTALLDIR] from external EXE file?
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
‎May 06, 2008
09:31 PM
how to get [INSTALLDIR] from external EXE file?
Hi,
I am trying to modify a INI file on the target system, I am going to do this by invoking a external EXE file using a Custom Action after all other installation finish.
But one thing It requires is the directory where the installation goes, i.e. [INSTALLDIR]. How can I know that? Is there a way this piece of information can be saved (say to a text file) or access?
This whole process bugs me for quite some time, your help us much appreciated.
Thanks,
I am trying to modify a INI file on the target system, I am going to do this by invoking a external EXE file using a Custom Action after all other installation finish.
But one thing It requires is the directory where the installation goes, i.e. [INSTALLDIR]. How can I know that? Is there a way this piece of information can be saved (say to a text file) or access?
This whole process bugs me for quite some time, your help us much appreciated.
Thanks,
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 07, 2008
02:26 AM
please try SRCDIR for uncompressed package, or PACKAGE_LOCATION for compressed package
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 07, 2008
07:32 AM
As an aside, can you use the INI File Changes view to write [INSTALLDIR] to your INI file?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 07, 2008
09:50 AM
I got the problem solved this afternoon.:) Actually by using the simple idea of searching, i managed to find out where the installed files go ([INSTALLDIR]). After i had this path information, I performed another search to find out where the target ini file is, and then modified the ini file with the [INSTALLDIR]. Sounds a bit complicated, but the logic is quite straight forward, much easier than to figure out how to achieve it using Installshield for a newbie like me.
But i am still interested to know how to use INI file changes to do it. I tried to use it but realize it might not possible, as the target location of the ini file is not static, for XP pro it is under ...\program files\application name\..; for XP 64bit, it is under ...\program files (x86)\application name\..; for Vista, it is under ...\user\...\local\Visual Store\appData\application name\.. I think INI file changes might not handle this?
Also i don't know how to use SRCDIR, is it the same thing as INSTALLDIR? when and how do we use these information, in VBScript?
Thansk for the answers
But i am still interested to know how to use INI file changes to do it. I tried to use it but realize it might not possible, as the target location of the ini file is not static, for XP pro it is under ...\program files\application name\..; for XP 64bit, it is under ...\program files (x86)\application name\..; for Vista, it is under ...\user\...\local\Visual Store\appData\application name\.. I think INI file changes might not handle this?
Also i don't know how to use SRCDIR, is it the same thing as INSTALLDIR? when and how do we use these information, in VBScript?
Thansk for the answers
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)