Warnings when using Windows App Certification Kit - Advanced Installer Community
mswarna
Posts: 4
Joined: Wed May 28, 2014 7:39 am

Warnings when using Windows App Certification Kit

Hi,

We are using Advanced Installer 9.3.
The installation Type is per-user only(administrator rights required).
When ran through WACK (Windows App Certification Kit), following warning was given out:
WARNING : Install to Program Files
•Warning: Writing to Windows directory, and or root directories test detected the following errors:

◦File C:\Windows\SysWOW64\AI_RecycleBin\{45DD3964-4F7C-4981-BBBF-EDC90C224C48} was written to an incorrect location.
◦File C:\Windows\SysWOW64\AI_RecycleBin\{777359F6-2E14-48A4-9FD4-877158D6C7DF} was written to an incorrect location.


Impact if not fixed: Apps mustn’t store data in system folders, such as %SystemDrive% or %WinDir%. Storing app and user data in a system folder can cause access and security problems for the user. Using the Known Folder APIs ensures that you are always able to get to your data.

•How to fix: Write the files to the correct folders. See link below for more information:



Is there any way to follow to get rid of this warning?
Any kind of help will be highly appreciated.
Thanks in advance.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Warnings when using Windows App Certification Kit

Hi,

The folder "AI_RecycleBin" is a special folder created by the setup packages if you have changed the default settings in "Operations" tab. (right click on a folder and select "Properties" to see this tab). For backup and restore purposes during the install and uninstall process.

Can you attach the project to see how you have it configured?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mswarna
Posts: 4
Joined: Wed May 28, 2014 7:39 am

Re: Warnings when using Windows App Certification Kit

We are using Advanced Installer 9.3 can't see any "Operations" tab. Instead, there is a "Remove" tab.
I have attached the project file.
Attachments
AsitecBIMViewer_QA_x64.aip
(280.49 KiB) Downloaded 349 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Warnings when using Windows App Certification Kit

Hi,

Indeed, in that version of AI the tab was called "Remove", the functionality was expanded and we tried using a more generic name for it.

Since there were multiple changes in this support from Advanced Installer, I will recommend two options for you to try:

1) Try building the package with a newer version of AI and test it.

2) Or, in the current version, go to Table Editor page, in table InstallExecuteSequence locate the actions "AI_AiRemoveFilesImmediate" and "AI_AiRemoveFilesRollback" and
set the this condition for them:

Code: Select all

REMOVE="ALL"
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mswarna
Posts: 4
Joined: Wed May 28, 2014 7:39 am

Re: Warnings when using Windows App Certification Kit

Went for the second solution and this worked. Thanks.
What are the consequences of this change? Any chances of ending up in a problem by doing this?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Warnings when using Windows App Certification Kit

You should not have any problems. All you did was to condition the action that handle the folder removal to run only on uninstall, not all the time.

These action had no condition because the support from Files and Folders page can be used to remove folder also on install or maintenance(modify/repair).
But that is not the case for your project.

Also, removal of the folder and the files installed by the package is done automatically by Windows Installer on uninstall. This action is here to help you with removal
in the case where additional resource appear in this folder, due to various reasons, and Windows will skip removing it (because Windows Installer does not remove files during uninstall if the files were not created at install time).

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”