Shilpa_nad

Hi,

I am running an application on windows vista.

This application is developed in VB 6.0 and is used as an Addin for MS Office Excel. I hav office 2003 installed on my machine. I login as a standard user ( UAC enabled). As part of the functioning of this Addin, 2 .avi files are created at runtime and a Debug folder is also created which will at runtime create file(s) containing debug info.

When i run this application on windows vista, these avi files and debug folder is not created. And an error "File not found" is given for avi files. (VB error # 53).

It also gives permission error for debug option as it cannot create Debug folder.

Can anyone (especially microsoft guys) suggest a solution for this please. I need immediate solution for this on windows vista.

Do i have to change some settings on Vista or do some code changes in the VB project

Pls reply soon.

Note: I need UAC enabled to run this AddIn.



Re: Application Compatibility for Windows Vista Excel Addin does not create folders/Files at runtime on windows vista

santir

Shilpa_Nad,

Please let me know where(location) are you trying to create the files/folder.

In vista, creating files/directory in certain locations can be only by trusted installers, or as Administrator.

example C:\program files. And there are WRP protects critical folders. A folder containing only WRP-protected files may be locked so that only the Windows trusted installer is able to create files or subfolders in the folder. A folder may be partially locked to enable Administrators to create files and subfolders in the folder.

Try to run your application as an administrator.

If the virtualization is on, these file would have been created in

c:\users\user_name\appdata\local\virtualstore.

regards

Santhi





Re: Application Compatibility for Windows Vista Excel Addin does not create folders/Files at runtime on windows vista

Shilpa_nad

Hi Santhi,

Thanks for ur reply.

Yes. My application is installed under C:\Program Files and it creates these files/folders under this directory. So i guess since its a restricted folder it must not be creating the files in it.

But "Virtualization" is enabled on my machine. But i dont see any files being created there. How is it Do i have to manually create a directory structure over there first

From vista documentation available on the net, i came to know that vista automatically creates these files in VirtualStore if Virtualization is enabled. Then how come on my machine it doesnt happen Any more settings are required

One more thing is my windows login has got administrative privileges. But the application login is not my windows login but a separate customer login.

Please reply.

Regards,

Shilpa.





Re: Application Compatibility for Windows Vista Excel Addin does not create folders/Files at runtime on windows vista

santir

Whatever the Login is, it should be elevated.

Any Standard user can not create a file/directory to "C:\program files", until standard user run the application in elevated mode.

And Virtualization is off in the following cases.

1. Virtualization does not apply to applications that are elevated and run with a full administrative access token
2. Virtualization will not be supported on native Windows 64-bit applications. These applications are required to be UAC aware and to write data into the correct locations
3. Virtualization is disabled for an application if a program includes an application manifest with a requested execution level attribute.

You can go through this link

http://technet2.microsoft.com/WindowsVista/en/library/00d04415-2b2f-422c-b70e-b18ff918c2811033.mspx mfr=true