Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Join Date
    Nov 2007
    Posts
    39

    install not replacing old DLLs

    I've got an install which refuses to replace old DLLs.

    e.g. I install a new version of our product over the top of an old one, and it doesn't replace or overwrite the DLLs of the old version.

    The files in the project are set to replace older versions (I wish there was an option for replace if the file version in the ver info resource was lower). Anyway I wonder if it's something to do with...

    When I look in the project, it shows me the included files, and has dates in there as well. These dates are the dates of the files that were originally added to the project (surely this is bogus, it should know the date on the file when it takes the actual files when it builds the actual project). The file path includes a session variable set by our build process, so all the files show as "missing".

    I'm wondering if when the installer is built it's not picking up the correct date of the files it is adding to the installer when it does that, so thinks the files in the installer are older than on the disk.

    In any case - does anyone know how to get it to replace the files?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by adrien View Post
    I've got an install which refuses to replace old DLLs.

    e.g. I install a new version of our product over the top of an old one, and it doesn't replace or overwrite the DLLs of the old version.

    The files in the project are set to replace older versions (I wish there was an option for replace if the file version in the ver info resource was lower). Anyway I wonder if it's something to do with...

    When I look in the project, it shows me the included files, and has dates in there as well. These dates are the dates of the files that were originally added to the project (surely this is bogus, it should know the date on the file when it takes the actual files when it builds the actual project). The file path includes a session variable set by our build process, so all the files show as "missing".

    I'm wondering if when the installer is built it's not picking up the correct date of the files it is adding to the installer when it does that, so thinks the files in the installer are older than on the disk.

    In any case - does anyone know how to get it to replace the files?

    As I understand it "replace older" really does two comparisions as needed..
    1) If there are file versions in BOTH target & source, the version is used to determine "older" status
    2) if one or both doe snot have a version; then last-modified date is used.

    What is the setting for "Supress In Use" checkbox? (checked or not) for the files in question?
    Have you examined the resulting install log?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Nov 2007
    Posts
    39
    Hi

    Thanks for your response.

    That setting is unchecked for all files. I'll need to check the logs.

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    And this is an installer that you're running -- so you know you're not hitting "skip" or something (ie: not a user-report)

    be sure your logging is set to "Extended Errors" just in case.....


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Nov 2007
    Posts
    39
    Hi

    It's just running through. I just tried an install, and all the file copies were marked as "Skipped" with reason "Existing file overwrite setting".

    Seems bogus to me. All these files have version info settings and the auto-incrementing build number is stamped into all the DLLs, so the version number should make it replace, as should the last modified date etc.

  6. #6
    Join Date
    Nov 2007
    Posts
    39
    p.s. when I look at the properties of the file in SF7, and click on the "Details" button on the General tab, nothing happens.

    I'm really suspicious it's something to do with all the files in the project showing as "missing".

  7. #7
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Quote Originally Posted by adrien View Post
    I'm really suspicious it's something to do with all the files in the project showing as "missing".
    So you are saying that the dlls you are trying to bundle into your installer to overwrite those the current installation are marked as missing? Yeah, that may "probably" be the motive why the current files aren't updated. I hope that you are kidding...

    Ulrich

  8. #8
    Join Date
    Nov 2007
    Posts
    39
    I'm not kidding. The files are marked as missing because they are in a folder that contains a session variable (Local folder contains a session variable), so only at build time does the path in the project resolve to a real correct path. E.g.

    #LOCALFOLDER#\Installs\Template\WinGate

    I did some more testing. If I select "always overwrite existing file", it replaces the file. If I select "Overwrite if existing file is same or older" it replaces it, but if I select "Overwrite if existing file is older" then it skips, even though the file it should be replacing has an earlier date stamp and a lower version number.

    So looks to me like a bug in SF.

  9. #9
    Join Date
    Nov 2007
    Posts
    39
    any ideas? Or should I raise this as a support ticket?

  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by adrien View Post
    any ideas? Or should I raise this as a support ticket?
    W/o the SF7 file and dll's in question; I have no ideas...
    Raising a support ticket would likely not do much good -- get he SUF8 eval & replicate.. THEN raise the issue


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  11. #11
    Join Date
    Nov 2007
    Posts
    39
    I have a licensed version of SF8 already - just haven't moved everything over to it.

    Reason we use session variables in paths is so we don't have to do all our installer development on the build machine.

  12. #12
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by adrien View Post
    I have a licensed version of SF8 already - just haven't moved everything over to it.
    Just open up the .sf7 file in sf8 -- 100% conversion.....

    Quote Originally Posted by adrien View Post
    Reason we use session variables in paths is so we don't have to do all our installer development on the build machine.
    I have no idea what that means..... session vars are not machine specific....


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  13. #13
    Join Date
    Nov 2007
    Posts
    39
    session vars aren't, but paths are (directory structures etc).

    So when I open the project in any SF editor, the files show as missing because the session variable isn't set. It's only when we run the build that it provides the variable.

  14. #14
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    IMO, you should map those folders (like #LOCALFOLDER#\Installs\Template\WinGate) properly on your local network. Then the inclusion of the files in those shared/mapped folders in the project wouldn't cause any problems, as SUF would be able to gather the file and version infos correctly at the start of the build, and they wouldn't show up as missing in the IDE. And by doing so, the installer could be built on any machine on the network.

    I was told that the code for version 7.0 is frozen, and no further modification will be made.

    Ulrich

  15. #15
    Join Date
    Nov 2007
    Posts
    39
    OK

    I migrated our build server to SF8, and did a build. Took a lot longer to generate the installer, but about 25% smaller, so can live with that.

    Anyway - same behaviour. I'm not surprised, since I doubt the code that evaluates whether to replace a file or not has been touched in years.

    I tested various things. including whether the file was signed or not (no difference). I'm pretty much convinced it's to do with the session variable.

    All I can suggest is this be expicitly tested there - should take about 5 minutes. We use a settings file to specify the variables.

    Otherwise if I'm to get rid of that sesson variable, I'll have a major issue whenever editing the file on my local machine. Will basically be forced to either

    a) replicate the entire directory structure of the build machine onto my dev machine
    b) do all the installer dev on the build machine
    c) try and get this bug (?) addressed.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  2. HOWTO: Abort an Install Conditionally
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-24-2002, 02:28 PM
  3. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  4. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  5. HOWTO: Create a Silent Install with Setup Factory 5.0
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-08-2002, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts