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

Directory not found

Hi,
I am using InstallShield 2010 with Windows 2008. I have some dll custom actions, calling into c# code. One of the tasks in this code is to move the folders under c:\windows\system32\msmq to a different location (say c:\msmq).
I can do this fine out of InstallShield. But when I call this code from within InstallShield, I get the System.IO.DirectoryNotFoundException. Could not find a part of the path 'C:\Windows\System32\msmq' exception.
The path definitely exists. I am running the setup.exe as an administrator on the system.
I cannot figure out what the issue is. Any thoughts on why running the code through InstallShield could cause issues? Any ideas for debugging will be greatly appreciated.
Thanks
Labels (1)
0 Kudos
(1) Reply
Alex1969
Level 4

Hello gcshilpa,

may you should try to add a backslash at the end of the string or you try to quote the path. Have a look at the method LongPathToQuote(...).

HTH Alex
0 Kudos