Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preprocessor dynamic environment variable support #4213

Closed
wixbot opened this issue Nov 28, 2013 · 1 comment
Closed

Preprocessor dynamic environment variable support #4213

wixbot opened this issue Nov 28, 2013 · 1 comment

Comments

@wixbot
Copy link

wixbot commented Nov 28, 2013

The preprocessor can read all static environment variables (%SystemDrive%, ...), but lacks support of the dynamic ones (%DATE%, ...). Compiling

<Property Id="BuildDate" Value="$(env.DATE)" />

results in

CNDL0150: Undefined preprocessor variable '$(env.DATE)'.

For the time being, the best workaround is to implement a custom preprocessor extension (see accepted answer to this stackoverflow question), but it would be great if the preprocessor would support dynamic environment variables from scratch.

Originally opened by hannes

@wixbot
Copy link
Author

wixbot commented Dec 5, 2013

cmd.exe provides "fake" variables that aren't actually OS environment variables. WiX cannot support those fake variables.

Originally posted by barnson
Resolution set to wontfix
Status changed from Untriaged to Resolved

@wixbot wixbot added this to the v3.x milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant