cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Peter_Kosenko
Level 7

InstallShield 2008 rips out Directory table records during compile

Annoying InstallShield 2008 directory table compile behavior

I need to have a NETWORKPATH Directory table variable for when users are connecting to an instance of our program on a network.

In the Properties, I define it as an indirect, for the browse dialog

_NetworkClientBrowse NETWORKPATH

In the Directory table I define its default as the INSTALLDIR

NETWORKPATH INSTALLDIR .

INSTALLDIR itself is defined with a default value equal to the default installation value of the installer. I understand that directories need defaults. So why is InstallShield ripping out NETWORKPATH when it should recognize that it resolves to the normal installation default?

When the installer compiles, it RIPS OUT the NETWORKPATH record from the Directory table.

This is annoying because the installer works fine if I go back into the table and HAND EDIT the NETWORKPATH directory back in.

It seems that InstallShield has been programmed to DUMP any directory variable that is not DIRECTLY being used as the default of a component or a feature.

EVEN WHEN THE VARIABLE HAS BEEN PUT THERE ON PURPOSE.

This did not happen in IS 9.0. The NETWORKPATH record stayed put in the Directory table when compiled.

Anyone have any suggestions for ways around this. Define all such variables in the Properties table?
Labels (1)
0 Kudos

(2) Replies
Not applicable

Directory tables that are left unused in the project are assumed to be unnecessary and are dropped during the build. This is documented in the InstallShield 2008 Release Notes.

If you don't want this behavior to occur, you can disable it by going to the Releases view and changing the "Keep Unused Directories" from "No" to "Yes".
0 Kudos
Peter_Kosenko
Level 7

Thank you. I hadn't noticed that new setting -- "Keep Unused Directories".

That makes the whole issue very easy to resolve.

Thank you much for pointing it out.

Not all of us have eagle eyes for everything.
0 Kudos