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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Installing File in Different Place depending on install Type

Hello,

I have question regarding multiple location for a single file depending on the installation type, that is for CurrentUser or AllUsers.

For Example:

My App needs to install a database file lets say test.mdb.

For CurrentUser Instalation:

This file needs to be installed in the instalation Directory as the other files so its ok.

For AllUsers:

This file needs to be installed in "ProgramData/MyAPP/database/test.mdb


How can i do this? Is it possible?


Thank You for your support.

Best Regards,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing File in Different Place depending on install Type

Hi Diego,

To achieve this you can follow the steps below:
- add the database file in the "Application Folder" from the "Files and Folders" page of your project
- copy it from there and paste it in the "Common Application Data/MyAPP/database" folder
- while the file is selected press the "F8" keyboard button to be redirected to its related component and set the appropriate condition for that component (i.e. InstallType = "AllUsers")
- select the component related to the database file from the "Application Folder" and set the appropriate condition for it, too
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Installing File in Different Place depending on install Type

Hello Eusebiu,


Thank You for Your Support. I will test this and give you feeback.


Best Regards,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing File in Different Place depending on install Type

You're welcome Diego. Glad to help.

Just let me know if you encounter any problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”