I need my app to be installed to local app data of the active console session, or even to all the machine's users.
But when deploying via GPO, a system session is the one running the MSI.
So how can I create an MSI via WiX Toolset that achieves that purpose?
I tried using this guide: https://docs.microsoft.com/en-us/windows/win32/msi/msiinstallperuser
So I set these properties in the wxs file:
<Property Id='ALLUSERS' Value='2' />
<Property Id='MSIINSTALLPERUSER' Value='1' />
And the dir structure is:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="LocalAppDataFolder">
<Directory Id="APPLICATIONFOLDER" Name="MyApp">
Then, I ran the msi via system session using psexec, but as the log says:
PROPERTY CHANGE: Adding APPLICATIONFOLDER property. Its value is 'C:WINDOWSSysWOW64configsystemprofileAppDataLocalMyApp'.
And it tries to install to the default local app data
I've tried several other methods, like changing the APPLICATIONFOLDER via a c# custom action, or by modifying the database via c# custom action, but I still didn't find a working solution.
Any help will be greatly appreciated
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…