0

I have to set Environment variable where this installer will be installed, but I am unable to do that.

I have tried the suggestions found in the following links without luck:

So how can I set following environment on client system using WiX

<Environment Id="A_EXCELADDIN_LOG_PATH1" Name="A_EXCELADDIN_LOG_PATH" Value="%APPDATA%\A\logs" Permanent="no" Part="all" Action="set" System="no" />
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
vibhor Gupta
  • 103
  • 11

1 Answers1

0

That's generally how you do it. Only things that come to mind is first realize your specifying user profile so it'll only be for the person who installed the app and second Windows Installer doesn't update the environment variable if a reboot is pending. (Even if the pending reboot isn't from your MSI.)

Christopher Painter
  • 54,556
  • 6
  • 63
  • 100