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 access files from a single .exe?
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 21, 2009
12:19 PM
how to access files from a single .exe?
Hi,
I am looking for a way to access a .dll which will be in the same location of a single .exe as:
C:\setup.exe
C:\Mydll.dll
That .dll is not a part of the installer, it will be in same location of Media..
I am looking for a way to access a .dll which will be in the same location of a single .exe as:
C:\setup.exe
C:\Mydll.dll
That .dll is not a part of the installer, it will be in same location of Media..
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
12:31 PM
The builtin property [SETUPEXEDIR] will point to the location of your setup.exe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
12:34 PM
You can also access it via SRCDIR^\\MyDLL.dll
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
12:52 PM
abby27,
Thanks for your replay, i am getting blank value when i try to access SETUPEXEDIR using MsiGetProperty...
any reason? shall i have to declare or define it anywhere?
I tried SRCDIR, but it is pointing temp location 😞
Thanks for your replay, i am getting blank value when i try to access SETUPEXEDIR using MsiGetProperty...
any reason? shall i have to declare or define it anywhere?
I tried SRCDIR, but it is pointing temp location 😞
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
01:12 PM
[SETUPEXEDIR] apparently works only for MSI projects.
Take a look at this thread . I think you need to use PACKAGE_LOCATION property
http://community.installshield.com/showthread.php?t=137557&page=2
Take a look at this thread . I think you need to use PACKAGE_LOCATION property
http://community.installshield.com/showthread.php?t=137557&page=2
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
01:15 PM
The [SETUPEXEDIR] is valid for MSI projects only.
I am assuming yours is a InstallScript project.
Use PACKAGE_LOCATION, instead
I am assuming yours is a InstallScript project.
Use PACKAGE_LOCATION, instead
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
01:24 PM
Hi abby,
no use 😞
PACKAGE_LOCATION also showing blank value....
project type: Installscript MSI
can u sugest me any other idea?
fyi...
My project dont have any files, just a screen with inputs and edit a .xml base on this .dll(which i am trying to access)
no use 😞
PACKAGE_LOCATION also showing blank value....
project type: Installscript MSI
can u sugest me any other idea?
fyi...
My project dont have any files, just a screen with inputs and edit a .xml base on this .dll(which i am trying to access)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
01:37 PM
Hi abby,
Thanks now it is working...
for others information, the mistake i did is:
+ I declared nBuffer once and used twice...
+ the first MsiGetProperty changing nBuffer as 1
+ so for the second line nBuffer will be 1, this causing the issue.. so i re-declare nBuffer with 256
nBuffer = 256;
MsiGetProperty(ISMSI_HANDLE, "MyProperty", strProp, nBuffer);
MsiGetProperty(ISMSI_HANDLE, "SETUPEXEDIR", strPath, nBuffer);
abby once again thanks for your help 🙂
Thanks now it is working...
for others information, the mistake i did is:
+ I declared nBuffer once and used twice...
+ the first MsiGetProperty changing nBuffer as 1
+ so for the second line nBuffer will be 1, this causing the issue.. so i re-declare nBuffer with 256
nBuffer = 256;
MsiGetProperty(ISMSI_HANDLE, "MyProperty", strProp, nBuffer);
MsiGetProperty(ISMSI_HANDLE, "SETUPEXEDIR", strPath, nBuffer);
abby once again thanks for your help 🙂