Page 1 of 1
[SOLVED] Starting an application after installation
Published: March 28, 2018 - 3:43 PM
by mart03
Hello,
I'm creating a package and I'd like my application to launch automatically after installation.
How can I do this?
I tried using `run(r...)` but I realized it closes the application afterward.
Thank you for your help.
Martin
Re: Starting an application after installation
Published: March 28, 2018 - 4:00 PM
by htouvet
The installation is done in the system account, so the application you launch will also launch in that context.
Is that what you want? Or do you want to launch the application in the user session?
One solution could be to launch your process via the Windows Task Scheduler.
Re: Starting an application after installation
Published: March 28, 2018 - 4:54 PM
by mart03
Thank you for your reply.
The application installs normally, so there's no problem there. I would then like a command to simply start the program (for your information, the program is called Stickies). So, I want to launch it within the user session.
Thank you.
Martin
Re: Starting an application after installation
Published: March 30, 2018 - 8:04 PM
by dcardon
Good evening Martin,
mart03 wrote: ↑March 28, 2018 - 4:54 PM
Thank you for your reply.
The application installs normally, so there's no problem there. I would then like a command to simply start the program (for your information, the program is Stickies). So, to launch it within the user session.
As Hubert mentioned, the installation is done using the LOCAL SYSTEM account, and there's no generic way to perform an action within the user's session from the SYSTEM account. In fact, it's not even certain that a session will be open when the installation runs (e.g., the installation at the time of waptexit).
If you absolutely must do it, you could look into creating a scheduled task with permission to interact with the desktop and having it run directly. But that's more of a Windows issue than a WAPT issue.
Happy Easter weekend!
Denis
Re: [SOLVED] Starting an application after installation
Published: April 3, 2018 - 2:46 PM
by mart03
Okay, I see, thank you for your solution!