Summary
SourceDir and SRCDIR Resolve to a Location Under Temp Directory when the installation is a compressed network image. You can instead use SETUPEXEDIRSymptoms
The SourceDir or SRCDIR directory variables resolve to a location under the system?s Temp directory, not where 'setup.exe' file is located, when the installation is a compressed network image. This article applies to Basic MSI and InstallScript MSI projects.
Cause
When you execute an installation that was built as a compressed network image, 'setup.exe' extracts the source files for the installation to a temporary location and launches the installation from that location. When the installation is executed, the source location (as specified by the variables SourceDir and SRCDIR) resolves to this temporary location because that is its current working directory.
Resolution
The SETUPEXEDIR property is set by setup.exe and can be used to resolve this issue. This property points to the location of the original setup.exe file, regardless if it is compressed or uncompressed. SETUPEXEDIR can be used in place of SourceDir or SRCDIR. SETUPEXEDIR must be retrieved using the MSI API MsiGetProperty. Sample code for this API can be found in the InstallShield Help Library topic "Getting and Setting Properties".
Additional Information
For more information on MsiGetProperty and SourceDir, see the Windows Installer Help Library topics MsiGetProperty and SourceDir Property.
Related Articles
SRCDIR does not Resolve to Location of MSI Package after First Time Install 12Number of Views "Error: The file exists." during inventory import if temp directory contains 65,535+ files using temporary file name pattern 4Number of Views What is a Temp directory? 3Number of Views Temporary Oracle audit evidence files under ...\Temp\FNMSAuditEvidence folders are not reliably cleaned up 4Number of Views FlexNet inventory agent may not return any Oracle inventory on Windows if the %TEMP% environment variable resolves to a pa… 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago