Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A portion of the folder path '' is invalid error

171 views
Skip to first unread message

zsuzsa

unread,
Aug 18, 2008, 9:59:02 AM8/18/08
to
I am writing an installer package that is for plugins, thereofre the install
path changes accoring to the users host application. I have added a custom
dialog with four radio buttons where the user can choose form the most
popular host applications. the fourth option is simply 'Other' which I set
to be [ProgramFilesFolder]. When I choose this option and I try to naviget to
my choice of host application with the browse button I get the following
error:

A portion of the folder path '' is invalid. It is either empty or exceeds
the length allowed by the system.

If I change the path so that it is simply c:\ then there is no error.

Any suggestions?

Thanks
Zsuzsa

Sebastian Brand

unread,
Aug 18, 2008, 12:22:14 PM8/18/08
to

Just a guess. Have you tried ProgramFilesFolder without [] ?


Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com

zsuzsa

unread,
Aug 18, 2008, 12:51:04 PM8/18/08
to

"Sebastian Brand" wrote:

In Orca [ProgramFilesFolder] is a 'variable' or a 'property'. Without [] it
gives the error message'not network location found' or something similar.

Thanks,
Zsuzsa

Dennis Bareis

unread,
Aug 19, 2008, 3:33:26 AM8/19/08
to
Hi,

On Mon, 18 Aug 2008 09:51:04 -0700, zsuzsa <zsu...@discussions.microsoft.com> wrote:


>"Sebastian Brand" wrote:
>
>In Orca [ProgramFilesFolder] is a 'variable' or a 'property'. Without [] it
>gives the error message'not network location found' or something similar.
>
>Thanks,
>Zsuzsa


Either way create a vebose log to diagnose this (or any) problem:

http://makemsi-manual.dennisbareis.com/logging.htm

Bye,
Dennis
Dennis Bareis [Microsoft MVP] (dba...@KillSpam.gmail.com)
http://dennisbareis.com/
Freeware Windows Installer creation tool (+ "ORCA automation"):
http://makemsi.dennisbareis.com/

zsuzsa

unread,
Aug 19, 2008, 7:12:11 AM8/19/08
to

"Dennis Bareis" wrote:

Hello.

Yes, I have turned the logging on before, however it did not give me a clue
as for what is going wrong. I included below some part of it as the whole log
is very long.
Maybe more experienced eyes can pick the problem up.
The link you gave Dennis took me to a website where somebody suggested that
the buffer is too small. this error is caused by the return value being twice
the needed value, then dividing by two. When the return value is an odd
number, the result is less than what is required.
But where do i set the buffersize in Orca?

Thanks
Zsuzsa


Action 12:01:58: FolderForm. Dialog created
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2205 2: 3: _RemoveFilePath
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: TypeLib 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: Class 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: Extension 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: DuplicateFile 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: ReserveCost 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: PROPERTY CHANGE: Modifying CostingComplete
property. Its current value is '0'. Its new value: '1'.
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: BindImage 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: ProgId 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: PublishComponent 3:
-2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: SelfReg 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: Extension 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: Font 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2262 2: Class 3: -2147287038
MSI (c) (B4:68) [12:01:58:718]: Note: 1: 2727 2:
MSI (c) (B4:68) [12:01:59:156]: Note: 1: 2727 2:
MSI (c) (B4:68) [12:01:59:656]: Note: 1: 2727 2:
MSI (c) (B4:68) [12:02:00:156]: Note: 1: 2727 2:
MSI (c) (B4:68) [12:02:00:375]: PROPERTY CHANGE: Adding
SelectFolderDialog_Property property. Its value is 'TARGETDIR'.
Action 12:02:00: SelectFolderDialog. Dialog created
MSI (c) (B4:68) [12:02:02:187]: PROPERTY CHANGE: Modifying TARGETDIR
property. Its current value is 'C:\Program Files\'. Its new value:
'C:\Program Files\Adobe\'.
MSI (c) (B4:68) [12:02:09:375]: PROPERTY CHANGE: Modifying TARGETDIR
property. Its current value is 'C:\Program Files\Adobe\'. Its new value:
'C:\Program Files\Adobe\Photoshop 7.0\'.
MSI (c) (B4:68) [12:02:10:750]: PROPERTY CHANGE: Modifying TARGETDIR
property. Its current value is 'C:\Program Files\Adobe\Photoshop 7.0\'. Its
new value: 'C:\Program Files\Adobe\Photoshop 7.0\Plug-Ins\'.
MSI (c) (B4:68) [12:02:12:062]: PROPERTY CHANGE: Modifying TARGETDIR
property. Its current value is 'C:\Program Files\Adobe\Photoshop
7.0\Plug-Ins\'. Its new value: 'C:\Program Files\Adobe\Photoshop
7.0\Plug-Ins\FixerLabs\'.
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Desktop\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Start Menu\Programs\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Start Menu\Programs\FixerLabs V2\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\All Users\Application Data\eSellerate\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Application Data\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Application Data\FixerLabs V2\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2335 2: C:\Program Files\ 3:
C:\Documents and Settings\zsuzsa\Application Data\FixerLabs V2\Common\
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 1322 2:
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (B4:68) [12:02:13:421]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2835: The control ErrorIcon was not found on dialog ErrorDialog
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 1322. A portion of the folder path '' is invalid. It is either empty

or exceeds the length allowed by the system.

MSI (c) (B4:68) [12:02:17:171]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (B4:68) [12:02:17:171]: Product: FixerBundle V2 -- Error 1322. A

Jeff Henkels

unread,
Aug 19, 2008, 8:01:05 AM8/19/08
to
"zsuzsa" <zsu...@discussions.microsoft.com> wrote in message
news:B514EE63-0CFD-45BB...@microsoft.com...

>
>
> Yes, I have turned the logging on before, however it did not give me a
> clue
> as for what is going wrong. I included below some part of it as the whole
> log
> is very long.

If you're not doing so already, use WiLogUtl (one of the tools in the SDK)
to analyze your log files; it will help you weed out the true error messages
from the verbosity. It also offers a pretty complete listing of MSI
error/warning codes, so you can get some handle on what all those Note:
messages are about.

It's been a while since I've worked with MSI, and I'm not familiar with your
application, but it looks like MSI is complaining about paths -- the Note:
2335 messages are saying that "c:\program files\" is not a parent of the
various "c:\documents and settings" directories, which may be of some
importance. The Note: 2262 errors indicate that the stream "" does not
exist (in what file, I don't know), and that some Windows API returned a
STG_E_FILENOTFOUND error when trying to open that stream.

If I had to guess, I'd say there's some custom logic that is acting on the
path settings, and failing. If it's your code, you should be able to debug
& fix it. If it's not your code, it's a bit harder, but not necessarily
impossible, to fix.


Dennis Bareis

unread,
Aug 21, 2008, 4:29:28 AM8/21/08
to
Hi,


On Tue, 19 Aug 2008 04:12:11 -0700, zsuzsa <zsu...@discussions.microsoft.com> wrote:

>
>
>"Dennis Bareis" wrote:
>>
>> On Mon, 18 Aug 2008 09:51:04 -0700, zsuzsa <zsu...@discussions.microsoft.com> wrote:
>>
>>
>> >"Sebastian Brand" wrote:
>> >
>> >In Orca [ProgramFilesFolder] is a 'variable' or a 'property'. Without [] it
>> >gives the error message'not network location found' or something similar.
>> >
>> >Thanks,
>> >Zsuzsa
>>
>>
>> Either way create a vebose log to diagnose this (or any) problem:
>>
>> http://makemsi-manual.dennisbareis.com/logging.htm
>>
>> Bye,
>> Dennis
>

>Yes, I have turned the logging on before, however it did not give me a clue
>as for what is going wrong. I included below some part of it as the whole log
>is very long.
>Maybe more experienced eyes can pick the problem up.
>The link you gave Dennis took me to a website where somebody suggested that
>the buffer is too small. this error is caused by the return value being twice
>the needed value, then dividing by two. When the return value is an odd
>number, the result is less than what is required.
>But where do i set the buffersize in Orca?

I'd start with the theory the path really is '' an then examine your dialog closer...

I assume its the 4th button "other" thats failing and that the other 3 work, what are they set to?

0 new messages