joost
Posts: 3
Joined: Fri Apr 26, 2013 10:31 am

Change read-only attribute after file operation

Hi there,

Our installer gets shipped to customers on a CD with some user-specific files next to it. We use a File Copy operation to copy those file to the correct folder. Unfortunately, because the files come from CD, they have the Read-only attribute after installation. Is there any way to remove the Read-only attribute during the file operation, or do we have to build a custom action for it?

Thanks,

Joost van den Boom
Metrohm Autolab
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Change read-only attribute after file operation

Hi Joost and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

Unfortunately, we don't have predefined support for this, but indeed, you can create a simple custom action to achieve this.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
joost
Posts: 3
Joined: Fri Apr 26, 2013 10:31 am

Re: Change read-only attribute after file operation

Okay, solved it by launching attrib.exe in a custom action. Works fine!

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

Re: Change read-only attribute after file operation

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

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

Return to “Building Installers”