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

Problem with square brackets in directory name

I am using FLEXnet AdminStudio 7.5 for Zenworks to repackage an InstallShield install as an MSI. When I try to build the project, I get an "unknown error occured" message while it is "Creating components for the files captured". I found that the problem is due to a couple of directories that have square brackets in their names. The related entries from the .inc file are as follows:

InstallFileList('%ProgramFilesFolder%\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF')
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi|33|960512||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_chs.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_cht.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_deu.mst|33|29184||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_fra.mst|33|28160||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_jpn.mst|33|27136||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\EulaDepot.msi_kor.mst|33|22528||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi|33|738816||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_chs.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_cht.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_deu.mst|33|29184||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_fra.mst|33|28160||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_jpn.mst|33|27136||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport.msi_kor.mst|33|22528||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport1.cab|33|6326822||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]\MDF\MDFSupport_mft.cab|33|1563||
EndProc/U
InstallFileList('%ProgramFilesFolder%\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU')
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi|33|950784||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_chs.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_cht.mst|33|18944||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_deu.mst|33|29184||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_fra.mst|33|28160||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_jpn.mst|33|27136||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller.msi_kor.mst|33|22528||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstaller_mft.cab|33|1110||
%ScriptFolder%\ProgramFilesFolder\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]\MU\MetaUninstallerR1.cab|33|429137||
EndProc/U

MakeDir('%ProgramFilesFolder%\National Instruments\Shared\ProductCache\NI MDF Support [2.1.81]')
MakeDir('%ProgramFilesFolder%\National Instruments\Shared\ProductCache\NI Uninstaller [2.1.81]')


If I remove the brackets, the package builds successfully. My question is, is there a way to work around this other than removing the brackets? I know the square brackets are special characters to InstallShield but I'm assuming there is some way to make it treat them as just characters if they are part of a file or directory name.

Thanks in advance for any help,

- Joshua
(2) Replies
I had the same problem, the only way I got it to work was by doing a little script renaming the files at install and uninstall 😞
I remember reading another post on this. I think it was a bug that the developers were working on. I'd call support.