Ian Hutty

Hi

We have application which is launched by Activex and works fine on Windows XP - but we are having problems with this on Vista.

We have looked at many MSDN articles which suggest using manifest files. We have implemented manifest in resource section of correct .exe file using MSVS. We have also read some articles regarding the use of MT.exe tool (v5) from the Vista SDK to embedd the manifest file, which seems to complete the embedding process ok.

Using this example from MSDN:-

<trustInfo xmlns="urnchemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevellevel="requireAdministrator"
uiAccess="true"/>;
</requestedPrivileges>;
</security>
</trustInfo>


Unfortunately when the Activex is launched Windows Vista seems to ignore the manifest and copy the files from website to the virtualized folder and not the real folder.

The real destination folder is "c:\users\%username%\documents\%appname%"

- But the files keep being copied to the virtualised folder:-
"c:\users\%username%\appdata\local\micrsoft\windows\temporary internet files\virtualized\c\users\%username%\documents\%appname%\"

after copying files to the virtualized folder, the application attempts to launch but we get "Error Access Denied" and cannot launch.

Also:-

It seems that "manifest" files are for System folders and not user folders, so we are unsure why this is happening with the users profiles folders also.

If files are manually copied to correct location, the application can be manually launched (but not from activex)

Any help would be greatly appreciated to overcome this problem and get our application running from activex like it does successfully in windows xp.

Regards

Ian



Re: Visual C++ General ActiveX on Vista

Damien Watkins - MSFT

Hello

Re: ActiveX on Vista

Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups.

OTP

Thanks

Damien