How to move property based folder to APPDIR? - 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!

Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

How to move property based folder to APPDIR?

Hello,

I have created a setup with Product Name “Time Management”.
All files/contents added in Application folder and created a folder “Images” under Application Folder, and shortcuts to Application shortcut folder and Desktop. Setup is working fine, when I build and run setup it install folder at path
C:\Program Files\Time Management
If I want to add a property (XYZFOLDER_PATH) based folder, say “xyzFolder” with few files added, and when I install setup I want “xyzFolder” under “Time Management”, like Images folder is added.
C:\Program Files\Time Management\Images
What value I should assign to the property “XYZFOLDER_PATH” ?
What steps I should follow to create xyzFolder under “Time Management”?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to move property based folder to APPDIR?

Hello and welcome to the Advanced Installer Forums,
What value I should assign to the property “XYZFOLDER_PATH” ?
You should assign a formatted value:

Code: Select all

[APPDIR]\xyzFolder
Note that a property used by a property-based folder must contain a valid path. If this is not the case and the path cannot be resolved, the installation will fail.
What steps I should follow to create xyzFolder under “Time Management”?
Please follow the indications from our user guide article in the "Creating new folders" section.

Since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products.This will also help you better understand support team's suggestions now and in the future. The Simple and Professional tutorials are especially important.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

Re: How to move property based folder to APPDIR?

Thanks for the response.
I tried with property value

"[APPDIR]\xyzFolder" And "[APPDIR]xyzFolder "

but installation failed with errors

“Could not access network location C:\Program Files\Time Management\\xyzFolder”
“Could not access network location C:\Program Files\Time Management\xyzFolder”

I have added two Features Time A, Time B with properties:

Time A
Identifier: Time A, Description: Description, Feature tree: Display extended, Directory: APPDIR

Time B
Identifier: Time B, Description: Description, Feature tree: Display extended, Directory: APPDIR

Time A contains Application folder contents and Time B contains xyzFolder contents, If I delete property based folder "xyzFolder", rest of the setup installs and working, but I need to add some file in "xyzFolder"

I have read tutorials and many forums.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to move property based folder to APPDIR?

Hello,

This is probably happening because your folder's public property is not initialized with a valid path in the Install Parameters Page.
Also, its value must be changed to the folder intended path after the CostFinalize standard action, if you are using a "Property set with Formatted" custom action.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

Re: How to move property based folder to APPDIR?

its value must be changed to the folder intended path after the CostFinalize standard action, if you are using a "Property set with Formatted" custom action.
No, I'm not using "Property set with Formatted" custom action.

I have set Application folder path to [ProgramFilesFolder]\[ProductName] and folder's public property value is [APPDIR]\xyzFolder. So when I run setup, installation fails becuase [Productname] is not created yet.
If I set folder's public property value to C:\, setup installs all "xyzFolder" files on C drive.

Is there any other way to do this without using custom action?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to move property based folder to APPDIR?

Hello,

Please note that you can't assign a property with a formatted value from the Install Parameters Page. The only way to do this is with a "Property set with Formatted" custom action set after the CostFinalize standard action.
Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it?

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Niyo
Posts: 6
Joined: Thu Feb 03, 2011 8:00 am

Re: How to move property based folder to APPDIR?

I'm bit confused using "Property Set with Formatted" custom action.

I have sent TestSetup.aip (Project) file.

Return to “Common Problems”