NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Run process at system startup.

Hello,

I am facing some problems that I would like to solve.

My application needs to run as administrator. To prevent the UAC screen from being displayed at each login, I create a task and launch the process.

So far so good. But I have a problem, in some clients I never see the tasks created. I do not know why.

I have tried to run it from "Software\Microsoft\Windows\CurrentVersion\Run" but at the beginning the screen jumps to allow it, so I discard this.

I have created a service to launch my executable, I have also configured it so that it can interact but the process never runs.

I see that from a service you cannot interact with the interface, so I need to know some way to solve this or through some type of service.

If I need to create a service and enter the login user data, I have no idea since each user can have a different name and password and I am not interested in knowing either. Just being able to run my application without any problem.
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Run process at system startup.

?
Catalin
Posts: 7528
Joined: Wed Jun 13, 2018 7:49 am

Re: Run process at system startup.

Hello,
So far so good. But I have a problem, in some clients I never see the tasks created. I do not know why.
The approach is indeed correct (i.e. to create a scheduled task).

However, if the task is not created, then most likely you will need to further investigate this with your customers. To do so, you can use Event Viewer which as a dedicated section for scheduled tasks.

How do you create the Scheduled Task? Is it through our predefined support?

If so, you can try to create the task through a Custom Action for the customers where this does not work and see how that goes.

The first thing I can think of is admin privileges which are required in order for the task to be created. Are the users where this is failing administrators?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Run process at system startup.

Thanks for your reply.

I'll have to investigate why this happens.
Is it possible that future updates can include Advanced Installer that can create a directory and create our tasks within this directory?

Within Windows scheduled tasks, you can create a folder and there you can create scheduled tasks.

I see that advanced installer does not have this, is it possible that I can do it in the future?
Catalin
Posts: 7528
Joined: Wed Jun 13, 2018 7:49 am

Re: Run process at system startup.

You are always welcome!

Regarding your request, please note that this has already been added in version 21.3 of Advanced Installer.
Screenshot_170.png
Screenshot_170.png (11.98 KiB) Viewed 4066 times

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Run process at system startup.

Thanks for your reply. I had not seen it and just yesterday looking at the options in tasks I saw the "Folder" field and I was able to do it correctly, since my application has quite a few tasks and I wanted to organize it.

About the main question, maybe you need some kind of driver and certificate that can run the application on startup
Catalin
Posts: 7528
Joined: Wed Jun 13, 2018 7:49 am

Re: Run process at system startup.

Hello,
Thanks for your reply. I had not seen it and just yesterday looking at the options in tasks I saw the "Folder" field and I was able to do it correctly, since my application has quite a few tasks and I wanted to organize it.
Glad you managed to find it.
About the main question, maybe you need some kind of driver and certificate that can run the application on startup
Not quite sure what you mean by this, I'm afraid. Could you please elaborate?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Run process at system startup.

There are some programs like av that run at startup, but I don't see them run with an interface, or from RUN or from a task.
Catalin
Posts: 7528
Joined: Wed Jun 13, 2018 7:49 am

Re: Run process at system startup.

Hello,
There are some programs like av that run at startup, but I don't see them run with an interface, or from RUN or from a task.
If that's not the case, then perhaps the app is added in the Startup folder - this is a folder designed to start an app when the windows starts.

Add an app to run automatically at startup in Windows 10

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”