srg.goldman
Posts: 7
Joined: Sun Feb 17, 2013 3:15 pm

Shared folders

Hi,
I have a question regarding shared folders,
Is it possible to keep shared folder name on upgrade and not set it again?

Thanks in advance.
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared folders

Hi,

I'm afraid I don't fully understand what is your scenario. Can you please give us more details (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srg.goldman
Posts: 7
Joined: Sun Feb 17, 2013 3:15 pm

Re: Shared folders

Hi,
I have the following scenario, on installation the installer creates a shared folder with a name that based on a file that exists on the pc (the file comes beside the installer on "First time installation"), but not part of the installer.
On upgrade that file is not necessarily exists and thus the installer cannot assign name to the shared folder in the same way, In this case I want to be able to keep the previous share folder name.

Please let me know if it is still not clear.

Thanks
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared folders

Hi,

To achieve what you want you can go in the "Install Parameters" page, create a new property (i.e. SHARE_NAME) and check the "Set persistent property" option for it. Then store the name of your file into this property and use it as the name for your shared folder. This property will be preserved during the upgrade, so you can use it even if the file will not exist anymore.

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

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srg.goldman
Posts: 7
Joined: Sun Feb 17, 2013 3:15 pm

Re: Shared folders

I finally overcome it by creating custom action in c# that do the task.


Thanks for the help anyway.
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared folders

You're welcome. I'm glad you got this working.

Just let us know if there is anything else that we can help you with.

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

Return to “Building Installers”