Read-only attibute not set via InstallAware script
Read-only attibute not set via InstallAware script
We are trying to install/update files as read-only on target system. Corresponding check-box is set in InstallAware, but file is deployed as read-write. If the file (read-only) exists on the target system prior to installation, InstallAware renames it as<FileName>.0 (oh yes, mystery solved...). Note: this file is not removed on reboot as you've mentioned in viewtopic.php?f=2&t=10412.
How can we make InstallAware install/overwrite file as Read-only without any old files remain as *.0 on target system? I've done small project to demonstrate, see attachment.
How can we make InstallAware install/overwrite file as Read-only without any old files remain as *.0 on target system? I've done small project to demonstrate, see attachment.
- Attachments
-
- IA_Sample.png (44.85 KiB) Viewed 10711 times
Last edited by Galina on Wed Sep 16, 2015 12:41 pm, edited 2 times in total.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
could please post the Whole "sample" project as well?
Regards
could please post the Whole "sample" project as well?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
Posted
- Attachments
-
- A_Script.zip
- (1.73 MiB) Downloaded 355 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
#1 - for what concerns the "Read Only" attribute via Install Files command, unfortunately the attribute doesn't get applied as expected. The issue is limited to NATIVE ENGINE only and I'll report a note about the problem to our dev team. As workaround you can run the "ATTRIB dos command" to set the read only attribute for the target file (please see attached project).
#2- regarding the "<FileName>.0" that doesn't get removed on re-boot, this behavior seems to be limited to some OSes. For example I have been able to replicate the issue on WIN 7 while on WIN 10 it works fine. Even in this case, I'll report the problem to the dev team. As workaround, the only option is to force the deletion of such files.
Hope this helps you.
Regards
#1 - for what concerns the "Read Only" attribute via Install Files command, unfortunately the attribute doesn't get applied as expected. The issue is limited to NATIVE ENGINE only and I'll report a note about the problem to our dev team. As workaround you can run the "ATTRIB dos command" to set the read only attribute for the target file (please see attached project).
#2- regarding the "<FileName>.0" that doesn't get removed on re-boot, this behavior seems to be limited to some OSes. For example I have been able to replicate the issue on WIN 7 while on WIN 10 it works fine. Even in this case, I'll report the problem to the dev team. As workaround, the only option is to force the deletion of such files.
Hope this helps you.
Regards
- Attachments
-
- A_Script.zip
- (1.75 MiB) Downloaded 385 times
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
Thank you, Francesco! Could you upload it In zip format?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Done!
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
I'd like to add one more item to your list. It looks that InstallAware IDE changes the source file attribute just by compiling the script. Other words, if we have source file on the network, marked as Read-Only (example H:\A_Script\App file\ReadMe_ReadOnly.txt) and reference the file in the script via "Install Files", compiling this script via InstallAware IDE will change attribute of this file to Read-Write. You can use my original example to replicate this behavior. Just change \App file\ReadMe_ReadOnly.txt to Read-only.
It is a problem for us since InstallAware compilation changes the source files attributes (without notifying) and indirectly affects our deployment process.
It is a problem for us since InstallAware compilation changes the source files attributes (without notifying) and indirectly affects our deployment process.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
...item added!
Regards
...item added!
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
Thank you, Francesco! We tried to use your suggestion to use dos "Attrib" command in our real script and gotten problem with Windows 7 execution, script stops just after "Attrib" command executed. If you cancel - it deletes all the files from target folder.
Is there any timeframe, where the issues could be fixed/available?
Thanks,
Galina
Is there any timeframe, where the issues could be fixed/available?
Thanks,
Galina
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
unfortunately I cannot give you any time-frame at the moment.
For what concerns the use of the to use "Attrib" command, it's strange what you are reporting. I used and I am using, the same identical approach with some personal projects and it works perfectly with all systems ... and I am really sure of this.
Regards
unfortunately I cannot give you any time-frame at the moment.
For what concerns the use of the to use "Attrib" command, it's strange what you are reporting. I used and I am using, the same identical approach with some personal projects and it works perfectly with all systems ... and I am really sure of this.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
Thanks for the fast reply! I forgot to mention that folder name has space in it (example - "C:\My Company"), system is Windows7 machine.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
I don't see any problem with escaping double quotes with passed directory ... are you using the latest IA X3 version?
Regards
I don't see any problem with escaping double quotes with passed directory ... are you using the latest IA X3 version?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Read-only attibute not set via InstallAware script
We are using XE2.
Re: Read-only attibute not set via InstallAware script
Dear Francesco, we are using XE2 at the moment.
Could you confirm that the problem has been resolved in XE3? Do you have list of bugs fixed in XE3 you could share?
Unfortunately XE3 does have issues, I've mentioned in earlier posts, and we would like to know when they could be fixed. Do you have any updates?
Could you confirm that the problem has been resolved in XE3? Do you have list of bugs fixed in XE3 you could share?
Unfortunately XE3 does have issues, I've mentioned in earlier posts, and we would like to know when they could be fixed. Do you have any updates?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Read-only attibute not set via InstallAware script
Dear Galina,
I am sure that the "double quotes" get correctly passed to RUN PROGRAM parameters in IA X3 (latest version).
Due the fact this is the version that I'm currently using.
As I said previously, I cannot give you any time-frame at the moment and honestly for what I know, the only "possible and outstanding" issue in X3, it's limited to the one we discussed in this topic.
Regards
I am sure that the "double quotes" get correctly passed to RUN PROGRAM parameters in IA X3 (latest version).
Due the fact this is the version that I'm currently using.
As I said previously, I cannot give you any time-frame at the moment and honestly for what I know, the only "possible and outstanding" issue in X3, it's limited to the one we discussed in this topic.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 123 guests