error appears if using property based folder - 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!

BoxCat
Posts: 1
Joined: Sun Jun 12, 2011 8:59 am

error appears if using property based folder

Hello. im currently stuck at the "could not access network location C:\Users\CurentUser\AppData\Local\Cherry\Pie" issue. this message show when i try to run my installer.

the problem appeared when i add a property based folder under Files and Folders with property settings:
Name: Settings
Value:[AppDataFolder]\Cherry\Pie

and seems like [AppDataFolder] causes the problem, cause if i type value like this: C:\Users\CurentUser\AppData\Local\Cherry\Pie
then its all fine, installer runs and no error messages.

this is the few text settings files that i need to install to 'Pie" folder.
the main installation is already set in the Install parameters application folder to the [ProgramFilesFolder]Crerry\Pie.

i figured that if i swich the values of the property and the application folder, then it gives me same error message just about "could not access network location [ProgramFilesFolder]Crerry\Pie" location. so is like, property value cant understand the "[ ]" thingy or what? Please help, im a starter.

oh and the OS is WIN 7
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: error appears if using property based folder

Hi,

Instead of a property-based folder you can try using the "Local Application Data" folder in the "Files and Folders" page. Simply create the "Cherry\Pie" folders under it and add your files. This folder will be automatically resolved during install.

If you still want to use a property-based folder, you can try making the following adjustments:
- use a public property instead of a private one
- properties cannot be initialized with other properties; so instead of using [AppDataFolder] in the property value you should use a Property Set with Formatted custom action to set your custom property to the path you want, for example:

Code: Select all

[LocalAppDataFolder]Cherry\Pie
- this custom action should be scheduled before InstallUISequence -> CostFinalize standard action

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”