Skip to content

Add optional launch after install #2803

@tzucker02

Description

@tzucker02

What is the problem or limitation you are having?

Image

I apparently posted this in the incorrect thread. Here is the post edited for this new request.

I ended up editing the wix installer to implement optional launch after install on a windows box. I wanted to have a checkbox that launches the app when the install is finished. The checkbox in the installer is checked for launching by default, but the user can uncheck it. I made the following changes (the image shows how this looks after implementation) :

Define the Checkbox Property and Text:

<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch <insert your appname>" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />

Create the Custom Action:

<CustomAction
    Id="LaunchApplication"
    Directory="INSTALLFOLDER"
    ExeCommand='"[INSTALLFOLDER]<insert your appname>.exe"'
    Return="asyncNoWait"
    Impersonate="yes" />

Wire the Action to the Exit Dialog:

<Publish
    Dialog="ExitDialog"
    Control="Finish"
    Event="DoAction"
    Value="LaunchApplication"
    Order="1"
    Condition='WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND NOT Installed' />

Describe the solution you'd like

I would rather have the ability to do this in the briefcase build. It took a lot of reading of the wix docs to figure out how to implement this one. so something like a hook that one could use like start_after_install = on (checkbox is checked by default) would be nice

Describe alternatives you've considered

I've tried making this work within the briefcase install, but this seems to be a wix only option. I did get it to display a launch checkbox, but it didn't do anything.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.
    No fields configured for issues without a type.

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions