My app does not display properly in Windows - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

JDMils
Posts: 50
Joined: Tue Aug 10, 2010 12:42 pm

My app does not display properly in Windows

When I first install my app, AI automatically launches it after installation. The app, when run, sets up an icon in the system tray from which the user can control it. The user has the ability to display a userform for further control. When the PC reboots and the user logs in, the app's userform shows but there is no tray icon. So my app is running, but I cannot see the tray icon. If I kill the process and run it manually, I can see the tray icon and the userform OK.

AI is set to run a scheduled task at user logon which run my app so it seems that this way of starting up the app does not work properly. The task's useraccount is set to Property Based User = [LogonUser]. Can I fix this or should I use another method to launch my app when the user logs on?

In Task Manager, and in both situations, the app is running in the same User Name context.

AI8 and Win7.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: My app does not display properly in Windows

Hi,
So my app is running, but I cannot see the tray icon. If I kill the process and run it manually, I can see the tray icon and the userform OK.
Advanced Installer simply sets the scheduled task which runs the .EXE responsible for adding the tray icon and displaying the userform for your application. The way this functionality manifests on the local machine depends on the custom .EXE you have set to run on system logon as a scheduled task. Since the userform appears means that the scheduled task was added correctly for the user account.

I recommend to debug your application's custom mechanism that should run through a scheduled task at logon and then manually add the scheduled task to test it. After assuring everything works as expected, you can set and add the scheduled task from the Advanced Installer project.
Can I fix this or should I use another method to launch my app when the user logs on?
You can also try to add a shortcut in Start Menu -> Startup folder.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”