Change read-only attribute after file operation - 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!

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: 4971
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: 4971
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”