I'm using Microsoft Visual Studio 2019 and Microsoft Visual Studio Installer Projects V1.0.2.
I'm aware how to generate a system wide installer:
InstallAllUsers
property of the setup project is set to true.InstallAllUserVisible
property of theInstallation Folder
user interface is set to false.- The
DefaultLocation
of theApplication Folder
is set to[ProgramFilesFolder][Manufacturer]\[ProductName]
.
and I'm as well aware how to generate a user installer where no admin elevation is needed:
InstallAllUsers
property of the setup project is set to false.InstallAllUserVisible
property of theInstallation Folder
user interface is set to false.- The
DefaultLocation
of theApplication Folder
is set to[LocalAppDataFolder]\Programs\[Manufacturer]\[ProductName]
. - PostBuildEvent:
"%ProgramFiles%\Windows Kits\10\bin\x86\MsiInfo.exe" "$(BuiltOuputPath)" /w 10
See https://stackoverflow.com/a/55700346/7556646 and https://superuser.com/a/1633474/738960.
Now I'm asking myself the following questions:
is the possibility to have the system installer and the user installer in the same msi-file and in the same setup project?
Is it possible that the
DefaultLocation
of theApplication Folder
is set based on theInstallAllUsers
property? TheInstallAllUsers
property can be changed in theInstallation Folder
user interface when theInstallAllUserVisible
property is set to true.Would the above post build event a problem for system wide install?