Run Function on Deployed Application Install

1 visualizzazione (ultimi 30 giorni)
Brian
Brian il 16 Nov 2021
Modificato: Divyanshu il 29 Feb 2024
Is there a way to have a function run immediately upon install of a compiled/deployed application? Essentially I want to change the start menu shortcut location from C:\ProgramData\Microsoft\Windows\Start Menu\Programs\<APPNAME> to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\<FOLDER>\<APPNAME>.
I have several applications that I distribute and I'd like them all to appear in the same folder in the Start Menu.
  1 Commento
Divyanshu
Divyanshu il 29 Feb 2024
Modificato: Divyanshu il 29 Feb 2024
Hi Brian,
A possible way to trigger certain script or function on installation of an application is by writing a script to do the installation of application itself.
You can refer these steps->
  • Write a script which calls the executable of the program/application to install.
  • Next in the same script you can write the code to change the shortcut location or path.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by