Groups | Blog | Home
all groups > visual studio .net setup > may 2004 >

visual studio .net setup : Can enviroment variables be used in paths to product files in a VS setup proj


joe_goeke NO[at]SPAM hotmail.com
5/19/2004 1:55:07 PM
I have several Visual Studio setup projects that reference product
output folders which of course include the sub dirs "debug" and
"release".

The VS installed doesn't provide any mechanism to reference files via
environment vars. Is there a way to specify an environment variable
in the setup .vdproj file such that VS will find the files?

I really don't want to have to clone and maintain two setups just to
differentiate between a debug and release product files.

Thanks in advance!
Phil Wilson
5/19/2004 5:32:14 PM
I don't believe so. I think you mean VS macros that refer to solution and
project locations, not environment variables. The only option I know of
that's close to that is to set the setup project's input to be the output of
another project.Right-click on the project name and choose Add Project
Output. If they are in the same solution I think that debug/release choice
hgappens for you.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

joe_goeke NO[at]SPAM hotmail.com
5/20/2004 11:29:33 AM
I have explored both the VS macro's and environment vars, and VS will
not resolve the paths for either in the vdproj file, which is pretty
pathetic since the .vcproj files are full of VS macro references.

I am aware of the direct link to the project output when the setup app
is part of the project solution. In my case the setup projects have
there own solution and references the files via the "file" link cause
the "primary output" link is not available when outside the product
solution. This is by design such that the setup work needs to be
indepenant from the project solution work.

Sounds like I'm screwed. I just knew using the VS installer would be
trouble some and a half baked solution....

---JHG

[quoted text, click to view]
AddThis Social Bookmark Button