Application data - 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!

bschooly
Posts: 5
Joined: Mon Mar 22, 2010 6:28 pm

Application data

Very very basic question. How do you create a non hard coded application data path on a target machine?

I want a path like so:

AppDataFolder\[Manufacturer]\[ProductName]

Seems like this would be easy. But I can't seem to stumble on the solution. The Files and Folder
options don't seem to allow for providing Properties under any of the App Data nodes.

Thanks in advance for your replies.

Bill
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Application data

Hi Bill,

I am not sure I understand what you are trying to do.
What you see on the Install Parameters page is a default path:

Code: Select all

[ProgramFilesFolder][Manufacturer]\[ProductName]
for the application folder. This folder is a property based folder, which means it will install its contents to the path contained in the property it is based on.
The application folder is based on the APPDIR property, meaning it will install in the path contained in APPDIR.

What you see on the Install Parameters page is the default value APPDIR contains. During install, on the FolderDlg dialog, you have an input box associated with APPDIR. Changing the content of that
input box effectively changes the APPDIR property and the location to which the files in the application folder are installed at, implicitly.

This means the application data path is not hardcoded. It can be changed by changing the APPDIR property.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
hhale21
Posts: 26
Joined: Thu Apr 01, 2010 10:21 pm

Re: Application data

I think I have the same question as in the orginal post.
I added some folders to the "Application Data" folder
When installed I expect them to appear in AppDataFolder\[Manufacturer]\[ProductName]
but they appear in directly AppDataFolder

i.e. C:\Documents and Settings\user\Application Data\FOLDER

I expected.

C:\Documents and Settings\user\Application Data\Manfacturer\ProductName\FOLDER
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Application data

Hello,

Not sure why you are encountering this behavior.
I have created a blank project, with:

Code: Select all

[AppDataFolder][Manufacturer]\[ProductName]
in the Application Folder field on the Install Parameters page, tested it on a Vista machine and worked fine.

Please send your .aip project file or a sample that accurately reproduces this behavior to support at advancedinstaller dot com so we can further investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”