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
- :
- Directory not found
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
Oct 01, 2010
01:01 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 04, 2010
01:12 AM
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
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