AlexanderK
Posts: 12
Joined: Thu May 31, 2012 9:04 pm

Having the option to install an .exe?

Hi everyone,

I'm using the trial edition of AI9.2 (Enterprise Edition). What is the best way to go about having the option to install a separate .exe? I can see how to have an .exe launch at the end of the installation but not as a feature.
For example:
After selecting Custom or Typical installation, having a dialogue that says would you also like to have X software installed as well? (A separate program not a redistributable).
At the moment the best way I see to do it is:
Create a new dialogue>Create two radial buttons>Create a next button>If one of the radial buttons is selected, install X software, if the other is selected, do NOT install X software.
I'm not sure where I can set this behavior though? I can imagine creating a code for an IF function, but I'm sure there must be another way to do it?

Thanks!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Having the option to install an .exe?

Hello and welcome to Advanced Installer forums,

In order to achieve what you want you should add your EXE file in "Files and Folders" view. Then, from "Organization" page you should move your EXE component in a separate new feature.

Now the user will be able to select if the EXE feature will be installed or not from "CustomizeDlg" dialog.

If you want to use radio buttons to select if the EXE feature will be installed or not, please take a look on our "Show a custom feature selection dialog" article.

If you have any questions let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AlexanderK
Posts: 12
Joined: Thu May 31, 2012 9:04 pm

Re: Having the option to install an .exe?

Daniel.Radu wrote:Hello and welcome to Advanced Installer forums,

In order to achieve what you want you should add your EXE file in "Files and Folders" view. Then, from "Organization" page you should move your EXE component in a separate new feature.

Now the user will be able to select if the EXE feature will be installed or not from "CustomizeDlg" dialog.

If you want to use radio buttons to select if the EXE feature will be installed or not, please take a look on our "Show a custom feature selection dialog" article.

If you have any questions let me know.

All the best,
Daniel
I followed the instructions exactly but for some reason the argument menu is blank:
Untitled.png
Untitled.png (77.27 KiB) Viewed 7793 times
Any idea why this might be?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Having the option to install an .exe?

Hello,

Please keep in mind that in order to launch a custom action from UI through a "Do Action" control event, then you should add it as a custom action without sequence.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AlexanderK
Posts: 12
Joined: Thu May 31, 2012 9:04 pm

Re: Having the option to install an .exe?

Daniel.Radu wrote:Hello,

Please keep in mind that in order to launch a custom action from UI through a "Do Action" control event, then you should add it as a custom action without sequence.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Thanks, I missed that option. So would this work? I'm about to purchase an Enterprise License but since I can't build anymore I'd just like to make sure it works:
Capture.PNG
Capture.PNG (56.05 KiB) Viewed 7784 times

Code: Select all

' Set Executable
Set WshShell = WScript.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

' Set the features enabled depending on 
If Session.Property("RADIO") = "RadioFeatureA" Then
  Feature1 = True
  CHECK1.Enabled = False
  CHECK2.Enabled = False
ElseIf Session.Property("RADIO") = "RadioFeatureB" Then
  Feature2 = True
  CHECK1.Enabled = True
  CHECK2.Enabled = True
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 "myprogram.exe -A -B -C"
ElseIf Feature2 = True And Feature3 = True Then
  WshShell.Run "myprogram.exe -D -E -F"
ElseIf Feature2 = True And Feature4 = True Then
  WshShell.Run "myprogram.exe -G -H -I"
ElseIf Feature2 = True And Feature3 = True And Feature4 = True Then
  WshShell.Run "myprogram.exe -J -K -L"
End If
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Having the option to install an .exe?

Hello,

If your Advanced Installer trial period has expired, then you can install Advanced Installer on another machine (even virtual machine) to benefit of another 30 days trial period. Also, if you don't have another machine, then we can offer you an extension trial period for another 30 days. In order to obtain this please contact us at support at advancedinstaller dot com.

Also, please keep in mind that we don't offer support for testing purposes. You should extend the Advanced Installer trial period in order to test your scenario.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”