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
- :
- "Keep Unused directories" issue
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
‎Mar 16, 2010
08:31 PM
"Keep Unused directories" issue
If the above mentioned flag is set to "No" ( in the Releases=>Build tab), installshield drops directories that are unused in the project. However, if
a directory( eg: MY_XML_DIR) is set in the Directory table and is ONLY used to pass value (of MY_XML_DIR) to a helper dll (launched by Installshield project), then [MY_XML_DIR] basically contains an empty string ( as it is not
set at run time ). This looks like a bug in Installshield. Please confirm.
a directory( eg: MY_XML_DIR) is set in the Directory table and is ONLY used to pass value (of MY_XML_DIR) to a helper dll (launched by Installshield project), then [MY_XML_DIR] basically contains an empty string ( as it is not
set at run time ). This looks like a bug in Installshield. Please confirm.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
11:42 AM
my understanding is that it determines a directory to be unused when there are no components associated with it and will remove it from the project at build time. If you need an empty directory to exist, then associate a component with that directory.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
01:38 PM
In this particular use case, I just need the directory value to be passed on to the DLL that does the actual creation of the directory and its contents. As you suggested I can create a Component without any files and it might work - However, it sounds more like a hack. To me, a directory variable is "In Use" if it is reffered anywhere in the .ism file. Anway, my 2 cents.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
01:49 PM
if you just need a value, and not the creation of a directory by the installer, you should just use a Property instead of a Directory entry.
if you need the property to reflect a relative path to another specified directory you can set the property value to include that directory value. (i.e.: [INSTALLDIR]\mypath).
if you need the property to reflect a relative path to another specified directory you can set the property value to include that directory value. (i.e.: [INSTALLDIR]\mypath).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
05:37 PM
That's resonable. I will give it a try. Thanks
