pakman
Posts: 11
Joined: Wed Apr 26, 2006 7:41 pm

logout after installing

Is there a way to have the installer log out, rather then rebooting the system?
pakman
Posts: 11
Joined: Wed Apr 26, 2006 7:41 pm

idea

In the Windows 2000 resource kit, there is an executable called "shutdown.exe" which I could include in the installer with the -l flag, which forces a logout.

However, I could not find a way how to execute something, once the user presses "Finish" on the installer.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In the next version of Advanced Installer (which will by available soon) Full UI customization will be available and then you can execute Custom Actions on Dialog buttons. Until then here some workaround: Go to "Dialogs" page and select "Installation Complete" dialog. On the "After Finishing Actions" view use the "Launch Application" action to launch a batch file. The batch file (include it in the package) is used to launch the shutdown.exe with command line.

This workaround works only if you don't use the "Launch Application" action to run the application after install.

The batch file looks like this:

Code: Select all

@echo off
START SHUTDOWN -l
Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”