Announcement

Collapse
No announcement yet.

Problem with Unzip files command and silent mode

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Unzip files command and silent mode

    I have a install progam that uses the unzip command. The install goes well, but if i try run the same install program with the command line /s (silent mode), the install program crash.

    To test that i have build a simple install program without screens, only with a unzip command on startup actions. The install goes well, but crash if i run the program with /s.

    I have test that install program on diferent machines with same results.
    I have SF version 6.0.1.0

  • #2
    Re: Problem with Unzip files command and silent mode

    Hi,

    What happens if you remove the Unzip command from your setup (as a test) does it still crash?

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Problem with Unzip files command and silent mode

      Without the unzip command, the install program run fine.

      I have build some intall programs and all crash if they have the unzip command. But without the unzip command, all goes well.

      Comment


      • #4
        Re: Problem with Unzip files command and silent mode

        I just wanted to post that it was confirmed and entered as a bug to be resolved in the next update.

        Comment


        • #5
          Re: Problem with Unzip files command and silent mode

          I am using SF 6.0.1.2 and still have a similar problem. If I use the %ShowActionProgressDlg% anywhere to hide the "flickering", then unzip files causes a program error (irsetup.exe). Only unzip files seems to have this problem. I am not using the /s command line option. Even if I set %ShowActionProgressDlg% = TRUE well before using unzip files or move %ShowActionProgressDlg% = FALSE to later into the setup, I still encounter the problems. Is this the same problem or a slightly different one?

          Comment


          • #6
            Re: Problem with Unzip files command and silent mode

            Can you replicate this problem on multiple machines? Can you replicate the problem in a new install with only those actions? If you can replicate this behaviour on multiple machines, could you send me a small ZIP file along with a sample project file that demonstrates this problem? You can send it to [email protected]

            Also what OS(s) does this occur on?

            Comment


            • #7
              Re: Problem with Unzip files command and silent mode

              I have completely uninstalled SF 6 (commercial and old original demo which was just "lying" around"). A clean re-install of the original 6.0 commercial was performed. I had the problems with that version (I did not ever try this in the demo version). I then performed the update to 6.0.1.2 (I don't have any of the updates from between). I still had the problems. I am able to reproduce this error on machines that have never had SF loaded on them (i.e. just running the setup program that I build). In my tests I've only been on various flavors of Win2K. The errors occur on them, however the messages are different. One is simply titled "Program Error" with "irsetup.exe has generated errors and will be closed by Windows". The other is simply titled "irsetup.exe - Application Error" with "The instruction at 0x0042757a referenced memory at 0x0000001c. The memory could not be read". I can reproduce this using the "File > New Project" from designer and simply adding a couple of actions to a screen. One example is to add actions to the after portion of the license agreement screen: assign value FALSE to %ShowActionProgressDlg%, unzip files (on error setting doesn't matter), assign value TRUE to %ShowActionProgressDlg%. When you run the setup.exe, do Next, I Agree / Next, Back, Back, Next, Next, and you get the error. Note that the first time through it does not show the "extracting files" progress. If the actions on the screen are changed: assign value TRUE, unzip, assign value FALSE; then it works every time no matter what you do in setup. Also using the same starting project, if the Welcome Screen's before actions assign value %ShowActionProgressDlg% to FALSE and any subsequent before/after actions that do an unzip will encounter the error (the first time through). I don't know how the resulting behavior differs from the first example where it's also FALSE one the first call to unzip... If I take this example and start out at some point with a %ShowActionProgressDlg% of FALSE and then on whichever screen do the assign of TRUE, unzip, assign of FALSE, then it seems to work every time. However, I'm still working with my original project and the assign of TRUE, unzip, assign of FALSE trick does not seem to cut it. One difference is that in this case there are roughly 123 commands on the after actions part of the screen (counting comments, end, and so forth). I worked with a couple different zip files (small and large, subfolders and no subfolders) in the testing and the zip files themselves did not seem to be a factor. I will keep working with my actual project to try to pin down something more concrete. I hope that the default project and additional details is helpful. I will post a followup to this after trying some more things with my project.

              Comment


              • #8
                Re: Problem with Unzip files command and silent mode

                A little more tinkering and here's the consistent behavior (across projects) that I've found. On any screen's before or after actions (and before any unzip files calls), if I have any commands (one or more) in addition to an "assign value of %ShowActionProgressDlg% to FALSE" (such that when that section is complete the end result of %ShowActionProgressDlg% is FALSE), then any calls to unzip files will result in the irsetup.exe failure. Even preceeding the unzip files call with an assign value of %ShowActionProgressDlg% to TRUE will not bypass the problem.

                Example: Welcome Screen / Before Actions:
                assign value %ShowActionProgressDlg% to FALSE
                Result: future calls to unzip files are ok provided %ShowActionProgressDlg% is TRUE when unzip files runs

                Example: Welcome Screen / Before Actions:
                assign value %ShowActionProgressDlg% to TRUE
                assign value %ShowActionProgressDlg% to FALSE
                Result: future calls to unzip files will fail even if %ShowActionProgressDlg% is TRUE when unzip files runs

                Example: Welcome Screen / Before Actions:
                assign value %ShowActionProgressDlg% to FALSE
                assign value %ShowActionProgressDlg% to TRUE
                Result: future calls to unzip files are ok provided %ShowActionProgressDlg% is TRUE when unzip files runs

                The type of page, or indeed whether it was the first or third page, and before or after section did not seem to matter. Only if an action section ended with %ShowActionProgressDlg% at FALSE and more than one command was in that section (even if it was just two calls to set %ShowActionProgressDlg% to FALSE). I can reproduce this quite easily using just the "default" project from File > New Project and adding the assign value and unzip files calls. Note that all of my unzip files calls are in subsequent screens/actions and are not in the same screen/actions where I'm turing off ShowActionProgressDlg.

                Something else I noticed. If unzip files runs and you click on the cancel button while it's "extracting files" and the "do you really want to abort?" screen comes up and you click "yes", the extract continues. Once it is completed then the setup program exits. Shouldn't it actually exit when you say yes (instead of continuing to run for the duration of the extract)? I had a zip file which pulls about 20M of stuff out which made some of these tests take a little while.

                Comment


                • #9
                  Re: Problem with Unzip files command and silent mode

                  Hi,

                  I'm sorry for the delayed response to your post. Thank you very much for all of the information you have provided concerning this issue. I tested it initially but couldn't find any problems, however I clearly wasn't testing it correctly because the second time I had no problems replicating the problem. I submitted a bug report for this issue as well as the "Cancel" during the unzipping. The developers will look into these issues.

                  Since this issue affects your install, another option is to create a small SF install to take care of the ZIP file functionality and launch it from your main installation. You could pass it the silent command line argument and then you should be able to suppress the actions dialog.

                  Thank you very much for bringing this to our attention.

                  Comment

                  Working...
                  X