Announcement

Collapse
No announcement yet.

Ask user if he wants to start installed application

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

  • Ask user if he wants to start installed application

    Hi

    Is it possible when the installation is finished the user gets a question if he wants to start the application

    Must i do this in the OnShutdown event and how?

  • #2
    Typically, I use a custom screen, offering the user to run the installed application. The checkbox on the screen sets a variable, whose value is checked in the On Shutdown event. The application is started via explorer.exe so it is run as the logged user instead of the admin account.

    Click image for larger version

Name:	SCRN-2022-07-27-01.png
Views:	65
Size:	68.3 KB
ID:	308975

    Ulrich

    Comment


    • #3
      Hi

      I know showing a Dialog on the On ShutDown event where the use can choose yes or no
      But how to check the result. If the result YES then launch application otherwise do noting

      Code:
      result = Dialog.Message("Vraagje", "Would you like to start the application ?", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
      
      how to check the result here? If the result is...
      if result = ....?
      
         File.Run(SessionVar.Expand("%AppFolder%\\myApplica toin.exe"), "", "", SW_SHOWNORMAL, false);

      Comment


      • #4
        You should read the product documentation. It explains clearly the meaning of the return values of Dialog.Message().

        Ulrich

        Comment

        Working...
        X