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!

bvk
Posts: 3
Joined: Mon Aug 06, 2018 3:30 pm

Unable to get "Prevent auto Pin to Start" to work on Windows 10...

Hello,
I recently purchased the Enterprise edition of Advanced Installer project for our company. I'm currently using AI version 15.1 running on Windows 10.
I have setup a Windows project that has two modules, a Windows Forms application and a Windows service application. Currently when I generate an .msi and install the software the application and the service work well. However, we also see the Service application listed in the Start menu in Windows 10. In my AI project, I have clicked the checkbox that says "Prevent auto Pin to Start" for the executable corresponding to the service in the "Files and Folders" -> "Application Shortcut Folder" but the service appears in the Start menu anyway. In addition, I have also tried setting "Pin to taskbar" to both "enabled" and "disabled". Still no success.
Could you please help? We have a product release coming up very soon and this is a show stopper for us.

Regards.
An AI customer.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to get "Prevent auto Pin to Start" to work on Windows 10...

Hello and welcome to our forums,

First of all, thank you for your interest in Advanced Installer.
However, we also see the Service application listed in the Start menu in Windows 10.
Please keep in mind that if you have added a shortcut under the "Application Shortcut Folder", it will always be displayed under the "All Apps" section from the Start Menu, because the SHORTCUTDIR property (the property name of the Application Shortcut Folder) is resolved as default to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Your Application", that meaning the shortcut will always be installed in the Start Menu folder.

In what regards the "Prevent auto Pin to Start" option, it prevents the creation of the shortcut in the Start Layout section from Start Menu, but if you place your shortcut under "Application Shortcut Folder", it will always appear under the "All Apps" section from the "Start Menu".

For more details about the Windows 10 Start Menu design, you can have a look on the "Manage Windows 10 Start and taskbar layout" article.

If you do not want to display a shortcut in Start Menu for you service, you can simply remove the shortcut to the service from the "Application Shortcut Folder" (Files and Folders page).

Let me know if this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bvk
Posts: 3
Joined: Mon Aug 06, 2018 3:30 pm

Re: Unable to get "Prevent auto Pin to Start" to work on Windows 10...

Hello Catalin,

Thanks. Your feedback provided me with some avenues to pursue. I did end up fixing the issue but the solution was not my preferred way. Seems like the real issue is that when I add a service module as a "primary output" through the Advanced Installer extension for Visual Studio 2017, the service *always* gets added to the Shortcut folder. Note that my AIP and the service module all live in the same Visual Studio solution.

What I ended up doing was to create a new folder elsewhere (in Windows Volume) and copy over the service executable and associated DLLs. This solution seems to work and the service is not added to the Start menu. However, as I said earlier this is not the best solution for me because every time I change and recompile the service, I need to manually copy over all the files.

If I can solve the issue of connecting the primary output of the service module to the "Windows Volume" directory, that'll get me eveything I need. Is that possible at all or is that a shortcoming of the Advance Installer Extension that you have no control over?

Regards.
bvk
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to get "Prevent auto Pin to Start" to work on Windows 10...

Hello,

Indeed, this is the default behavior. Every time you build the Advanced Installer Setup Project from your Visual Studio solution, we automatically create a shortcut in the Application Shortcut Folder.

I have added an improvement in this regard on our TODO list. Thank you for bringing this to our attention! We will update this thread when such improvement will be done.

In the meantime, as a workaround, you can manually add your files in the Advanced Installer project by using the "Edit in Advanced Installer" button, instead of adding the project primary output within our VS Extension.

Hope this helps!

Regards,
Catlain
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bvk
Posts: 3
Joined: Mon Aug 06, 2018 3:30 pm

Re: Unable to get "Prevent auto Pin to Start" to work on Windows 10...

Hello Catalin,

Thanks for your confirmation.


"I have added and improvement in this regard on our TODO list."

Yes, that'll be a great feature to have. It'll make a good product even better!


Regards.
bvk
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Unable to get "Prevent auto Pin to Start" to work on Windows 10...

You're always welcome!

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

Return to “Building Installers”