0

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 the Installation Folder user interface is set to false.
  • The DefaultLocation of the Application 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 the Installation Folder user interface is set to false.
  • The DefaultLocation of the Application 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:

  1. is the possibility to have the system installer and the user installer in the same msi-file and in the same setup project?

  2. Is it possible that the DefaultLocation of the Application Folder is set based on the InstallAllUsers property? The InstallAllUsers property can be changed in the Installation Folder user interface when the InstallAllUserVisible property is set to true.

  3. Would the above post build event a problem for system wide install?

Wollmich
  • 1,434
  • 1
  • 16
  • 39

0 Answers0