zoukankan      html  css  js  c++  java
  • .RRA files

    View Full Version : .rra files. How to prevent?


    kallen

    04-17-2002, 07:28 PM

    Help... Has anyone had this problem.
    Our InstallShield program is 2 fold.
    The 2 options are:
    Install or Upgrade.
    If they select upgrade the basic intention is to laydown new application files in a specified app folder, then run database upgrade scripts.
    The laydown of the app files is where we sometimes see problems.
    The directory is pre-existing and contains files athat are going to be overwritten with newer files. The problem is that sometimes it creates .rra files instead of overwriting the files that are already there. Why are the .rra files being created and how can I force the files to be overwrite the existing app files no matter what?

    Sometimes it overwrites them with no problem, and sometimes it creates .rra files and does not replace the existing files.

    Thanks;
    Kevin


    Happy Days

    04-18-2002, 08:09 AM

    Hi,

    These rra files are nothing but the files that are created in the Temporary directory when the setup is extracted. These probably affects you since the files that needs to be overwritten are in use at that time.

    To Overwrite the already existing files, make the 'Overwrite' property of the file-group containing that file to 'ALWAYS OVERWRITE.....'.

    Also, if you are not sure that the files that are going to be overwritten will be in Use at that time, then make the 'Potentially Locked' property of that file group to 'Yes'.

    Thanx.


    kallen

    04-18-2002, 08:25 AM

    I already have the Always overwrite flag set, but did not have the potentially locked set to yes. Would this cause this behavior?
    Also, could this behaviour happen if the files to overwrite were set read only?


    Happy Days

    04-18-2002, 08:33 AM

    Hi,

    Yes i think......if the files are Read only it is difficult for IS to overwrite on it.

    To remove the Read Only tag from the sile, you can use the function SetFileInfo to mark that file as Normal. After this, try the setup again and see......

    Thanx.


    RyanHart

    07-18-2003, 09:27 AM

    I have seen the exact same behavior as kallen, the author of this thread.

    A number of our customers are seeing this bug, and I don't know how to dupe it. It's happening to files that are never locked (or set to read-only): basically, the file isn't updated, and then an "intermediate" file, which looks like the original, but has the extension .rra, is placed in the same directory. I don't know why InstallShield thinks these files are locked, but they are provably NOT locked.

    If anyone knows how to dupe this problem (and I don't think it's the "Potentially Locked" value) please help me. I GOTSTA KNOW!

    Ry


    yatest5

    07-24-2003, 10:13 AM

    set the Potentially Locked thing to TRUE for all your file groups, that should fix the problem, IS will update these files after the next reboot.


    aratj9

    05-03-2007, 03:45 PM

    Though this topic is way too old now, thought it might be of some help to others so quoting my experiences here.

    An RRA file is a file that is created for every locked file with the name as initial four letters of the locked file name and a random number. These .rra files are created when any file is found to be locked by InstallShield. And following are the reasons for InstallShield to find a file as locked:

    File is really locked due to being open or referred by a service or program
    File is read only and SetFileInfo is not called or failed prior to accessing the file using InstallScript
    File is referencd by a Setup process or components such as STATUS with INDVFILESTATUS on.



    The ALWAYS_OVERWRITE and POTENTIALLY_LOCKED operations are documented to solve this issue but in some scenarios I have found this to be failing.

    I have not yet found a good solution to prevent .rra files from being created. In my project what I am doing is I am deleting them as I find them after/before my mass file operations. :)


    vBulletin® v3.6.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.

  • 相关阅读:
    Mysql case when 根据数字排序 返回 string类型问题
    .NET Core 面试题
    一个人如何完成一整个网站的开发(推荐好文,看完绝对让你回味无穷)转载
    (转)实现C#中等价于的Javascript中的Math.Random()的函数,以得到一个随机数,double类型的,大于0小于1的,17位精度的
    brew安装指定版本的软件
    服务器被植入挖矿木马的心酸过程
    我把双系统的win10抹除了现在开机只按option还是会出现双系统选择,怎么把那个win10给取消了或删除掉
    java.lang.Exception: The server rejected the connection: None of the protocols were accepted
    Linux 技巧:让进程在后台可靠运行的几种方法
    jenkins backup and migration
  • 原文地址:https://www.cnblogs.com/BeyondTechnology/p/1931528.html
Copyright © 2011-2022 走看看