Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's wrong with my vbscript for MSI installer?
    primarykey
    data
    text
    <p>I'm writing a custom script to go with my installer so that users have the option to install a toolbar if they wish. Here's what the layout will look like:</p> <p><a href="http://i47.tinypic.com/2v92csl.png" rel="nofollow">http://i47.tinypic.com/2v92csl.png</a></p> <p>And the code accompanying it:</p> <pre><code>' Set Executable Set WshShell = CreateObject("WScript.Shell") ' Set booleans for what features to enabled/disable Dim Feature1 As Boolean Dim Feature2 As Boolean Dim Feature3 As Boolean Dim Feature4 As Boolean Feature1 = False Feature2 = False Feature3 = False Feature4 = False If Session.Property("RADIO") = "RadioFeatureA" Then Feature1 = True Feature2 = False ElseIf Session.Property("RADIO") = "RadioFeatureB" Then Feature2 = True Feature1 = False End If ' Set the checkbox1 feature if ticked If Session.Property("CHECK1") = "install" Then Feature3 = True Else Feature3 = False End If ' Set the checkbox2 feature if ticked If Session.Property("CHECK2") = "install" Then Feature4 = True Else Feature4 = False End If ' Execute the file If Feature1 = True Then WshShell.Run (""APPDIR\file.exe"" /SILENT /INSTALL) ElseIf Feature2 = True And Feature3 = True Then WshShell.Run (""APPDIR\file.exe"" /SILENT) ElseIf Feature2 = True And Feature4 = True Then WshShell.Run (""APPDIR\file.exe"" /SILENT) ElseIf Feature2 = True And Feature3 = True And Feature4 = True Then WshShell.Run (""APPDIR\file.exe"" /SILENT /INSTALL) End If </code></pre> <p>But for some reason the installer crashes. The code looks fine to me and executes externally?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload