File Virtualization in IE7+ Protected Mode breaking my ActiveX Con

Posted: 05-30-2006, 11:11 PM
Hello,

I have just started working with Beta 2 of Vista and have been trying to fix
a problem I've found with the ActiveX control I'm developing that only
happens when running IE in Protected Mode and after some debugging, I believe
is related to the file virtualization feature.

A quick overview first -- we're a game company and the goal is to host our
games in the web browser. We've got a control that downloads a cab file
containing the game, lets the user verify the signature on the game, then
extracts the CAB and runs the game contained within it.

Under IE6 and IE7 on earlier platforms (XP, 2000, 98SE) this works just
fine, but under Vista I'm seeing two problems:

1) The verify signature dialog does display for the game, but it does not
display the publisher information (it shows as untrusted)
2) About half of the cab extraction succeeds and then I get an error code 3
(this is from SetupIterateCabinetA). I think it is possible this is
happening once the virtualized file names approach MAX_PATH, but that's just
a guess so far.

Turning off protected mode fixes both of these problems.

I can give a link to the control if necessary, but I would prefer not to
post it on the newsgroup. Please contact me at <first initial last name at
mind-control.com>

Any help would be appreciated!

Thanks,
Matthew Douglass
Mind Control Software, Inc.
Reply With Quote

Responses to "File Virtualization in IE7+ Protected Mode breaking my ActiveX Con"

Josh
Guest
Posts: n/a
 
Re: File Virtualization in IE7+ Protected Mode breaking my ActiveX Con
Posted: 05-31-2006, 02:44 AM
Matthew,

I would highly recommend you revaluate your use of ActiveX. It is a sunset
technology that Microsoft is de-emphasising. It is also inherintly insecure
and is trying to write to areas like C:\windows\downloaded program files
that in the future users will be less likely to write too. This, if i am
not mistaken, will also not qualify for "logo".

anyway, Part of the "protected mode" IE is probably your problem. With
Protected mode enabled you are restricted to writing to only the TIF
(trusted internet files) folder. So your setup if probably failing to write
to a location and is unable to handle the event. I also beive IE is
compiled so as to not VERT (a manifest)


Josh
http://windowsconnected.com



"Matthew Douglass" <MDouglassMCS@nospam.nospam> wrote in message
news:949B5BC3-4EFD-421A-AFC3-AE6CC7031500@microsoft.com...
> Hello,
>
> I have just started working with Beta 2 of Vista and have been trying to
> fix
> a problem I've found with the ActiveX control I'm developing that only
> happens when running IE in Protected Mode and after some debugging, I
> believe
> is related to the file virtualization feature.
>
> A quick overview first -- we're a game company and the goal is to host our
> games in the web browser. We've got a control that downloads a cab file
> containing the game, lets the user verify the signature on the game, then
> extracts the CAB and runs the game contained within it.
>
> Under IE6 and IE7 on earlier platforms (XP, 2000, 98SE) this works just
> fine, but under Vista I'm seeing two problems:
>
> 1) The verify signature dialog does display for the game, but it does not
> display the publisher information (it shows as untrusted)
> 2) About half of the cab extraction succeeds and then I get an error code
> 3
> (this is from SetupIterateCabinetA). I think it is possible this is
> happening once the virtualized file names approach MAX_PATH, but that's
> just
> a guess so far.
>
> Turning off protected mode fixes both of these problems.
>
> I can give a link to the control if necessary, but I would prefer not to
> post it on the newsgroup. Please contact me at <first initial last name
> at
> mind-control.com>
>
> Any help would be appreciated!
>
> Thanks,
> Matthew Douglass
> Mind Control Software, Inc.
Reply With Quote
Josh
Guest
Posts: n/a
 
Re: File Virtualization in IE7+ Protected Mode breaking my ActiveX Con
Posted: 05-31-2006, 03:25 AM
http://msdn.microsoft.com/ie/default...tectedMode.asp


Q: Does UAP file and registry Virtualization apply to Protected Mode?

A: No, UAP Virtualization does not apply to Protected Mode and, therefore,
write access to Protected Mode extensions that write to sensitive areas will
not be redirected.

Protected Mode also does not have write access to the redirected or virtual
store for system areas. Extensions running in Protected Mode get an Access
Denied error when they attempt to write to sensitive system areas.

Q: Are there specific locations in the USER PROFILE or HKEY_CURRENT_USER
registry location that an extension in Protected Mode Internet Explorer can
not write to?

A: Yes, Internet Explorer-specific locations in the following USER PROFILE
folders or HKEY_CURRENT_USER registry locations will return an Access Denied
error:

Documents and Settings\%USER PROFILE%...
....\Local Settings\Temporary Internet Files
....\Local Settings\Temp
....\Local Settings\History
....\%USER PROFILE%\Favorites
....\%USER PROFILE%\Cookies

HKCU\Software\...
....\Classes
....\Microsoft\Windows
....\Microsoft\Internet Explorer

Furthermore, extensions that attempt to gain write access to securable
objects by using an API function in one of the following binaries will
receive Access Denied errors.


Internet Explorer binaries
BrowseUI.dll IEFrame.dll MsHtmlEd.dll ShDocVw.dll
DxtMsft.dll InetCpl.dll MsTime.dll UrlMon.dll
DxTrans.dll MsHtml.dll Peers.dll WinInet.dll
Other Binaries
AdvApi.dll CorPol.dll NtDll.dll WinTrust.dll
ComCtl32.dll Crypt32.dll SChannel.dll
ComDlg32.dll Kernel32.dll Secure32.dll

Josh
http://windowsconnected.com


"Josh" <josh@nospam.windowsconnected.com> wrote in message
news:E08331C0-351F-40CE-BC39-A822868F50AA@microsoft.com...
> Matthew,
>
> I would highly recommend you revaluate your use of ActiveX. It is a
> sunset technology that Microsoft is de-emphasising. It is also inherintly
> insecure and is trying to write to areas like C:\windows\downloaded
> program files that in the future users will be less likely to write too.
> This, if i am not mistaken, will also not qualify for "logo".
>
> anyway, Part of the "protected mode" IE is probably your problem. With
> Protected mode enabled you are restricted to writing to only the TIF
> (trusted internet files) folder. So your setup if probably failing to
> write to a location and is unable to handle the event. I also beive IE is
> compiled so as to not VERT (a manifest)
>
>
> Josh
> http://windowsconnected.com
>
>
>
> "Matthew Douglass" <MDouglassMCS@nospam.nospam> wrote in message
> news:949B5BC3-4EFD-421A-AFC3-AE6CC7031500@microsoft.com...
>> Hello,
>>
>> I have just started working with Beta 2 of Vista and have been trying to
>> fix
>> a problem I've found with the ActiveX control I'm developing that only
>> happens when running IE in Protected Mode and after some debugging, I
>> believe
>> is related to the file virtualization feature.
>>
>> A quick overview first -- we're a game company and the goal is to host
>> our
>> games in the web browser. We've got a control that downloads a cab file
>> containing the game, lets the user verify the signature on the game, then
>> extracts the CAB and runs the game contained within it.
>>
>> Under IE6 and IE7 on earlier platforms (XP, 2000, 98SE) this works just
>> fine, but under Vista I'm seeing two problems:
>>
>> 1) The verify signature dialog does display for the game, but it does not
>> display the publisher information (it shows as untrusted)
>> 2) About half of the cab extraction succeeds and then I get an error code
>> 3
>> (this is from SetupIterateCabinetA). I think it is possible this is
>> happening once the virtualized file names approach MAX_PATH, but that's
>> just
>> a guess so far.
>>
>> Turning off protected mode fixes both of these problems.
>>
>> I can give a link to the control if necessary, but I would prefer not to
>> post it on the newsgroup. Please contact me at <first initial last name
>> at
>> mind-control.com>
>>
>> Any help would be appreciated!
>>
>> Thanks,
>> Matthew Douglass
>> Mind Control Software, Inc.
>

Reply With Quote
Matthew Douglass
Guest
Posts: n/a
 
Re: File Virtualization in IE7+ Protected Mode breaking my ActiveX
Posted: 05-31-2006, 03:57 AM
Well if you've got another way I can host a DirectX-based game in the web
browser, please let me know -- I certainly wouldn't mind ditching ActiveX.

Anyway, I should have said this in my email, but my program is very careful
to only write to areas that it reasonably ought to have access to.
Specifically, only underneath CSIDL_APPDATA. And the writes are partially
successful -- about half the files written in that folder are able to be
extracted from the CAB before SetupIterateCabinetA fails with an error code 3.

--
Matthew Douglass
Mind Control Software, Inc.


"Josh" wrote:
> Matthew,
>
> I would highly recommend you revaluate your use of ActiveX. It is a sunset
> technology that Microsoft is de-emphasising. It is also inherintly insecure
> and is trying to write to areas like C:\windows\downloaded program files
> that in the future users will be less likely to write too. This, if i am
> not mistaken, will also not qualify for "logo".
>
> anyway, Part of the "protected mode" IE is probably your problem. With
> Protected mode enabled you are restricted to writing to only the TIF
> (trusted internet files) folder. So your setup if probably failing to write
> to a location and is unable to handle the event. I also beive IE is
> compiled so as to not VERT (a manifest)
>
>
> Josh
> http://windowsconnected.com
>
>
>
> "Matthew Douglass" <MDouglassMCS@nospam.nospam> wrote in message
> news:949B5BC3-4EFD-421A-AFC3-AE6CC7031500@microsoft.com...
> > Hello,
> >
> > I have just started working with Beta 2 of Vista and have been trying to
> > fix
> > a problem I've found with the ActiveX control I'm developing that only
> > happens when running IE in Protected Mode and after some debugging, I
> > believe
> > is related to the file virtualization feature.
> >
> > A quick overview first -- we're a game company and the goal is to host our
> > games in the web browser. We've got a control that downloads a cab file
> > containing the game, lets the user verify the signature on the game, then
> > extracts the CAB and runs the game contained within it.
> >
> > Under IE6 and IE7 on earlier platforms (XP, 2000, 98SE) this works just
> > fine, but under Vista I'm seeing two problems:
> >
> > 1) The verify signature dialog does display for the game, but it does not
> > display the publisher information (it shows as untrusted)
> > 2) About half of the cab extraction succeeds and then I get an error code
> > 3
> > (this is from SetupIterateCabinetA). I think it is possible this is
> > happening once the virtualized file names approach MAX_PATH, but that's
> > just
> > a guess so far.
> >
> > Turning off protected mode fixes both of these problems.
> >
> > I can give a link to the control if necessary, but I would prefer not to
> > post it on the newsgroup. Please contact me at <first initial last name
> > at
> > mind-control.com>
> >
> > Any help would be appreciated!
> >
> > Thanks,
> > Matthew Douglass
> > Mind Control Software, Inc.
>
Reply With Quote
Josh
Guest
Posts: n/a
 
Re: File Virtualization in IE7+ Protected Mode breaking my ActiveX
Posted: 05-31-2006, 01:27 PM
I am not a coder, so can't give you a direct replacement, I have seen some
cool click once apps though...something to look into...

My recommendation would be to redo your setup as an MSI, that way you are
running as local system. You will lose the automation that ActiveX has
today on many systems, but you would lose that anyway as Microsoft
transitions to the more secure Windows Vista platform. Infact you will
probably end up with fewer prompts by going MSI.


Josh


"Matthew Douglass" <MDouglassMCS@nospam.nospam> wrote in message
news:E2C9F61E-EC31-413E-9567-C02C53E3C756@microsoft.com...
> Well if you've got another way I can host a DirectX-based game in the web
> browser, please let me know -- I certainly wouldn't mind ditching ActiveX.
>
> Anyway, I should have said this in my email, but my program is very
> careful
> to only write to areas that it reasonably ought to have access to.
> Specifically, only underneath CSIDL_APPDATA. And the writes are partially
> successful -- about half the files written in that folder are able to be
> extracted from the CAB before SetupIterateCabinetA fails with an error
> code 3.
>
> --
> Matthew Douglass
> Mind Control Software, Inc.
>
>
> "Josh" wrote:
>
>> Matthew,
>>
>> I would highly recommend you revaluate your use of ActiveX. It is a
>> sunset
>> technology that Microsoft is de-emphasising. It is also inherintly
>> insecure
>> and is trying to write to areas like C:\windows\downloaded program files
>> that in the future users will be less likely to write too. This, if i am
>> not mistaken, will also not qualify for "logo".
>>
>> anyway, Part of the "protected mode" IE is probably your problem. With
>> Protected mode enabled you are restricted to writing to only the TIF
>> (trusted internet files) folder. So your setup if probably failing to
>> write
>> to a location and is unable to handle the event. I also beive IE is
>> compiled so as to not VERT (a manifest)
>>
>>
>> Josh
>> http://windowsconnected.com
>>
>>
>>
>> "Matthew Douglass" <MDouglassMCS@nospam.nospam> wrote in message
>> news:949B5BC3-4EFD-421A-AFC3-AE6CC7031500@microsoft.com...
>> > Hello,
>> >
>> > I have just started working with Beta 2 of Vista and have been trying
>> > to
>> > fix
>> > a problem I've found with the ActiveX control I'm developing that only
>> > happens when running IE in Protected Mode and after some debugging, I
>> > believe
>> > is related to the file virtualization feature.
>> >
>> > A quick overview first -- we're a game company and the goal is to host
>> > our
>> > games in the web browser. We've got a control that downloads a cab
>> > file
>> > containing the game, lets the user verify the signature on the game,
>> > then
>> > extracts the CAB and runs the game contained within it.
>> >
>> > Under IE6 and IE7 on earlier platforms (XP, 2000, 98SE) this works just
>> > fine, but under Vista I'm seeing two problems:
>> >
>> > 1) The verify signature dialog does display for the game, but it does
>> > not
>> > display the publisher information (it shows as untrusted)
>> > 2) About half of the cab extraction succeeds and then I get an error
>> > code
>> > 3
>> > (this is from SetupIterateCabinetA). I think it is possible this is
>> > happening once the virtualized file names approach MAX_PATH, but that's
>> > just
>> > a guess so far.
>> >
>> > Turning off protected mode fixes both of these problems.
>> >
>> > I can give a link to the control if necessary, but I would prefer not
>> > to
>> > post it on the newsgroup. Please contact me at <first initial last
>> > name
>> > at
>> > mind-control.com>
>> >
>> > Any help would be appreciated!
>> >
>> > Thanks,
>> > Matthew Douglass
>> > Mind Control Software, Inc.
>>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Virtualization (VirtualStore) Non-functional Brent Windows Vista File Management 1 03-23-2007 02:31 PM
IE7 Protected Mode while UAC is disabled? Synapse Syndrome Windows Vista File Management 21 03-21-2007 01:10 AM
Deleting a file when ACTIVEX is damaged dzanes Windows Vista File Management 1 03-20-2007 12:18 AM
File Locations to Avoid Virtualization Wayne Hartell Windows Vista File Management 6 01-28-2007 01:30 AM
ActiveX Download Issue in Vista's IE 7+ Jorn Windows Vista Performance & Maintenance 0 06-13-2006 07:58 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90