Reply to Thread

Post a reply to the thread: Run setup.exe in silent mode and provide responses to dialogs

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 02-12-2010, 02:18 PM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    True, but this topic did not come up when searching the Help for "silent install". I did not know enough to look up the Loop Wizard documentation.
  • 02-02-2010, 02:03 AM
    linder

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Svetlana,

    Well, the following is from the help file

    Loop Wizard documentation:

    Remarks

    All code within a Loop Wizard structure is not executed when running in silent mode!


    Friedrich
  • 02-01-2010, 03:34 PM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Thanks Friedrich!!

    That was the answer. After pulling the "run program" statement outside of the Wizard Loop, I finally had a successful silent install.

    If this could be more fully documented in the Help - something that states the Wizard Loop is not executed at all during a silent installation - it would help others avoid the same kind of headaches.

    Thanks again,

    Svetlana
  • 01-29-2010, 08:59 AM
    linder

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Svetlana,

    We reviewed your script. I think we know what your problem is. Please note that the "Wizard Loop" is NOT executed at all in a silent mode install! But you are doing a lot of stuff in this first "Wizard Loop" function and this code is never executed because the dialogs are not displayed

    Does this help?

    Friedrich
  • 01-28-2010, 12:04 PM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Please see the attached DemoInstaller.zip for the .sb7 script. Thanks for all your help!

    Svetlana
  • 01-28-2010, 10:13 AM
    linder

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Because you can't send us the project (you told in a previous message that "due to intellectual property issues" you can't provide us with the .sb7), I am running out of ideas. The problem is that I can only guess what you are doing. It's definitely caused by your code, but I don't know what you are doing, so I can't tell you what you are doing wrong <g>

    But if you create a simple "dummy" script that has the same behaviour, you can send us this demo and we can tell you what you are doing wrong.

    Friedrich
  • 01-28-2010, 09:37 AM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Tried this but it's still not working in silent mode. There is only one other dialog with a user supplied value, but that is already being initialized to the value we need so it should not be an issue. I'm not sure what else to try at this point.
  • 01-28-2010, 07:09 AM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Perfect, I will try that, thanks!
  • 01-28-2010, 04:14 AM
    linder

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Svetlana,

    What about this solution (see attached screenshot) If it is running in silent mode, the License Agreement dialog is not displayed.

    Friedrich
  • 01-27-2010, 01:23 PM
    Svetlana

    Re: Run setup.exe in silent mode and provide responses to dialogs

    Hello Friedrich,

    That was very helpful, thank you!

    I added the message box as you suggested and all the variables are being displayed with the correct values. However, the silent install is still not going through.

    After tinkering with this for a while, the only possibility I can think of is that the EULA dialog is breaking the silent install because we have the "I do not accept" option pre-selected. We do not explicitly mention this dialog in the script so I'm not sure how the silent installation handles it but I would assume it takes the default "I do not accept" value so the code after that point is simply not executed.

    So I would need something like this:

    If %_SB_DIALOGID% Equals "$DLG_EULA$" And %_SB_INSTALLERFLAG%Equals "1" on Position "$SB_SILENTMODEFLAG$" Then
    Set Variable %MY_VARIABLE% to "I accept"

    I am not sure what the variable name and value should be in the above example. Is there a way to expose the code for the EULA dialog? All I have been able to access is the GUI editor under Setup Appearance - Dialogs. It seems the EULA dialog does not have the "Store selection in variable" capability of the standard Radio Button dialog. So if I am not mistaken, in order to use the code above, I would need to rewrite our License agreement dialog to use the Radio Button template rather than the EULA. Does that make sense?

    Thanks in advance,

    Svetlana
This thread has more than 10 replies. Click here to review the whole thread.

Posting Permissions

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