We now know that in MSIX, environment variables are redefined in MSIX as App Execution Aliases.
The downside of #AppExecutionAlias is that, by default, only environment variables that point to executables can be referenced.
We noticed this inconvenience and added support to use any type of environment variable in your #MSIX package just like you would in a normal MSI package.
Let's have a look at how you can do this with Advanced Installer.
..............................................................................................................
To configure an environment variable in Advanced Installer, navigate to the Environment page.
Here you can add, edit or remove any environment variables from your package. In our case, we created a variable called "TESTVARIABLE", which points to C:\temp.
As a note, if you repackage an installation, all the environment variables detected during the operation will appear here.
If we look at the #EnvironmentVariable Edit Dialog, we can see that different operations and behaviors can be applied to an environment variable. If you have worked with MSI, the dialog and operations are certainly familiar.
We wanted to keep the same logic with MSIX as well, and all the operations and behaviors are applied here.
For example, if an Environment Variable is already present on the system, and we chose to update that variable, this will lead to an overwrite in the MSIX container.
Just as a note, environment variables on the system will not be modified. These will be overwritten only in the MSIX container.
If we create a normal MSIX package, add the above-mentioned variable and run the application, it will detect the environment variable.
However, if we search for this variable on the system, it will not be found.
..............................................................................................................
We must address the differences between App Execution Aliases and Environment Variables. Advanced Installer offers you the possibility to create standard Environment Variables by using an additional predefined fixup in our Package Support Framework.
The fixup is applied automatically when an environment variable is detected in the package, with no additional input required for the user.
During the launch of the application, we emulate the environment variable so that the executable can detect it.
However, the environment variable won't behave like the AppExecutionAlias. The AppExecutionAlias is declared globally on the system, meaning that external applications can access it.
For example, if an AppExecutionAlias is defined for a HelloWorld.exe, the application will launch when you open up CMD and type HelloWorld.exe.
This won't happen with the Environment Variables added through the Environment Page, the reason being that they are only emulated inside the MSIX container and cannot be accessed externally.
👉🏼Download 30-day fully-featured free trial: https://www.advancedinstaller.com/tri...
▬▬▬▬▬▬ MSI Packaging Training & Certification📚 ▬▬▬▬▬▬
Get Trained and Certified for FREE in MSI Packaging!
Learn everything about MSI Packaging with ⬇
MSI Packaging Training and Certification - a complete and free program powered by Advanced Installer, to help you master MSI Application Packaging.
The program resources you get are:
►196 pages of must know theoretical concepts
► 27 practical demos most commonly encountered in practice
► Free professional certification based on passing a 51-question exam.
Join our Application Packaging Training and get your Free Professional Certificate here:
https://www.advancedinstaller.com/hub...
▬▬▬▬▬▬ Ebooks & Resources 📚 ▬▬▬▬▬▬
Check out MSI Packaging Free Ebook: https://www.advancedinstaller.com/hub...
MSIX Packaging Fundamentals: https://www.advancedinstaller.com/msi...
▬▬▬▬▬▬ Follow us on✨ ▬▬▬▬▬▬
✔ T W I T T E R ‣ / advinst
✔ F A C E B O O K ‣ / advancedinstaller
✔ L I N K E D I N ‣ / advancedinstaller
✨Advanced Installer is an all-in-one Application Packaging Tool for Software Developers and IT Professionals.
Designed for building MSI, MSIX AppX, and App-V packages, deploying applications updates, repackaging, and MSI/MST editing.
▬▬▬▬▬▬ For more information 🚀 ▬▬▬▬▬▬
‣ Learn more: https://www.advancedinstaller.com
‣ Try it out: https://www.advancedinstaller.com/dow...
‣ User Guide: https://www.advancedinstaller.com/use...
‣ Contact us: https://www.advancedinstaller.com/con...
✨We hope you enjoyed this video! Thank you for watching!
Информация по комментариям в разработке