Groups | Blog | Home
all groups > visual studio .net setup > august 2006 >

visual studio .net setup : Error 1325 'MyProject' is not a valid short file name


Steve Smith
8/29/2006 2:32:02 PM
I have an installer project that correctly assembles the .msi, but when I try
to install, it returns an error that my project is not a valid short file
name. I ran Msiexec to get the verbose log, but it wasn't much more
informative:

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2835. The
arguments are: ErrorIcon, ErrorDialog,
Error 1325. 'OpsCreditBatch' is not a valid short file name.
MSI (c) (74:6C) [17:12:03:435]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (74:6C) [17:12:03:435]: Product: OpsCreditBatch -- Error 1325.
'OpsCreditBatch' is not a valid short file name.

I've also looked at the .msi directly with Orca, and it validates as
expected -- nothing returned as a warning, error or info along this line.
Orca's Summary Information also shows that the .msi is clearly set for long
file names.

Any ideas? I've already looked through a number of items related to error
Aaron M
10/18/2006 6:45:27 AM
I have also run across this with a different installer. I received the error when attempting to uninstall. And consequently, any places in code that was asking .NET for the "My Documents" file path would return invalid path.

In my case, the "Target" for "My Documents" was empty. Need to restore it.

1. Right Click “My Documents”
2. Select “Properties”
3. Select the “Target” tab on the dialog
4. Click the “Restore Default” button
5. Click the “Apply” button
6. Click the “Ok” button
---
AddThis Social Bookmark Button