PublicDocumentsFolder problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

PublicDocumentsFolder problem

Hello,
i copied some files in [PublicDocumentsFolder]. My problem is that the files were copied to "C:\Program Files\<Companyname>\<Productname>\PublicDocumentsFolder\". Is that right or a bug?

I called it from a custumaction. The action looks like:

Code: Select all

"[#CopyDocs.bat]" "[SourceDir]" "[PublicDocumentsFolder]"
Why does it not install under

Code: Select all

C:\Users\Public\Documents\
on Vista?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: PublicDocumentsFolder problem

Hello,

Can you please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
glmdev
Posts: 14
Joined: Thu Aug 06, 2009 4:07 am
Location: Witten, Germany

Re: PublicDocumentsFolder problem

Hello,

I have also a problem with the Public Documents Folder, but only in combination with a Merge Module!
In my Setup I want to use a MergeModule to install some Files into the path 'C:\Users\Public\Documents\3-Dim\'. For this I put the files into the folder [PublicDocuments] in the MergeModule Projekt. But the files are installed to the folder : 'C:\Program Files\GLM\MergeModul test\PublicDocumentsFolder\3-Dim\'

In the VerboseLog I fond the following lines:
MSI (c) (08:DC) [17:37:43:374]: PROPERTY CHANGE: Adding PublicDocumentsFolder.5D477047_A53E_4EFA_9663_464A23994BB1 property. Its value is 'C:\Program Files\GLM\MergeModul test\PublicDocumentsFolder\'.
MSI (c) (08:DC) [17:37:43:374]: PROPERTY CHANGE: Adding New_Folder_DIR.5D477047_A53E_4EFA_9663_464A23994BB1 property. Its value is 'C:\Program Files\GLM\MergeModul test\PublicDocumentsFolder\3-Dim\'.

In the same Log File I see the following line, too:
MSI (c) (08:18) [17:37:43:234]: PROPERTY CHANGE: Adding PublicDocumentsFolder property. Its value is 'C:\Users\Public\Documents'.

So I think there is a Bug in handling the "PublicDocumentsFolder" comming from Merge Modules, because there is a GUID attached.

I am using AI Version 8.0.2 build 31861 with Windows 7.

Instead of [Public Documents] I could use this way (http://www.advancedinstaller.com/forums ... f=2&t=9704) but I would prefer to use the [Public Documents] Property.

Kind regards,
Christof Konstantinopoulos
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: PublicDocumentsFolder problem

Hi Christof,

Actually, this is caused by a bug in Advanced Installer. We are aware of it and a fix will be available in our next release which will be very soon. If this is an urgent matter, you can contact us via e-mail to support at advancedinstaller dot com and we can send you a RC containing the fix.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
glmdev
Posts: 14
Joined: Thu Aug 06, 2009 4:07 am
Location: Witten, Germany

Re: PublicDocumentsFolder problem

Hello Mihai,

many thanks to you and Bogdan for the link to the RC version. I have installed this version (8.1 RC) and then I have rebuilt my merge module and after this also the normal setup. Unfortunatedly my issue is not(!) solved. :(

The file from the merge module will not be installed to the public documents folder.

I have sent a sample project and the log files by e-mail.

Kind regards,
Christof Konstantinopoulos
glmdev
Posts: 14
Joined: Thu Aug 06, 2009 4:07 am
Location: Witten, Germany

Re: PublicDocumentsFolder problem

Installing files into the Public Documents folder from a merge module is not supported by AI at the moment. But it is possible!

Take a look into this article : http://www.advancedinstaller.com/forums ... 704#p25354

I have tested this way today with a Merge Module and it works well!
Of course this will still work in a normal setup project! :D

Kind regards,
Christof Konstantinopoulos
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: PublicDocumentsFolder problem

Hello,
I use your Hack, described in the earlier answer.
Take a look into this article : viewtopic.php?f=2&t=9704#p25354
But the mergemodule creates a folder which can not removed by my setup.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: PublicDocumentsFolder problem

Windows Installer should remove all the folders/files created during the installation, as long as the folders/files were not created by a custom action.

Can you please make sure you followed the exact steps from the post containing the workaround and also that you don't have any running processes that keep a handle open to that folder?

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

Return to “Common Problems”