Read-only attibute not set via InstallAware script

Got a problem you cannot solve? Try here.
Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Read-only attibute not set via InstallAware script

Postby Galina » Wed Sep 16, 2015 11:48 am

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.
Attachments
IA_Sample.png
IA_Sample.png (44.85 KiB) Viewed 10715 times
Last edited by Galina on Wed Sep 16, 2015 12:41 pm, edited 2 times in total.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Wed Sep 16, 2015 12:13 pm

Dear Galina,

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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Wed Sep 16, 2015 1:44 pm

Posted
Attachments
A_Script.zip
(1.73 MiB) Downloaded 355 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Fri Sep 18, 2015 10:43 am

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
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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Fri Sep 18, 2015 11:19 am

Thank you, Francesco! Could you upload it In zip format?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Fri Sep 18, 2015 11:26 am

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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Fri Sep 18, 2015 2:25 pm

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Mon Sep 21, 2015 12:04 pm

Dear Galina,

...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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Mon Sep 21, 2015 1:44 pm

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Tue Sep 22, 2015 9:17 am

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
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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Tue Sep 22, 2015 1:44 pm

Thanks for the fast reply! I forgot to mention that folder name has space in it (example - "C:\My Company"), system is Windows7 machine.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Wed Sep 23, 2015 11:01 am

Dear Galina,

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

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Wed Sep 23, 2015 4:07 pm

We are using XE2.

Galina
Posts: 17
Joined: Thu Aug 27, 2015 3:02 pm

Re: Read-only attibute not set via InstallAware script

Postby Galina » Thu Sep 24, 2015 8:03 am

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?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Read-only attibute not set via InstallAware script

Postby FrancescoT » Thu Sep 24, 2015 2:03 pm

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
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 146 guests