Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Defaultlocation property giving problem while installation
 

Defaultlocation property giving problem while installation

I am developing an installer using visual studio 2005, setup project. I am using an environment variable in the one of the defaultlocation propertes of one folder. But I am facing an error when I run the installer. The path looks something like [ENVIRONMENTVARIABLENAME]\foldername. When I give absolute path, installer is working fine. When I give only environmentvariable then also installer is working fine. Only when a folder name is followed by environmentvariable, I am getting an error saying "foldername" cannot be accessed on network location.
I tried with and without the backward slash between [ENVIRONMENTVARIABLENAME]\foldername
Any suggestions please?

Thanks in advance.
Murthy
Murthy_P  Friday, August 28, 2009 9:34 AM

The things that go in square brackets like that are Windows Installer property names, either standard ones or those that you define. You can't just put the name of a system environment variable in there.

If that really is an actual system environment variable name, you use the syntax:

[%ENVIRONMENTVARIABLENAME]

to tell Windows that this is not a MSI property name, it'san environment variable name.


Phil Wilson
PhilWilson  Friday, August 28, 2009 9:48 PM

The things that go in square brackets like that are Windows Installer property names, either standard ones or those that you define. You can't just put the name of a system environment variable in there.

If that really is an actual system environment variable name, you use the syntax:

[%ENVIRONMENTVARIABLENAME]

to tell Windows that this is not a MSI property name, it'san environment variable name.


Phil Wilson
PhilWilson  Friday, August 28, 2009 9:48 PM

You can use google to search for other answers

Custom Search

More Threads

• Linq to Entities : Error while installing a windows application installing by clickOnce of vs 2008
• FrameWork in Setup Project
• ClickOnce install not starting with beta 2
• ClickOnce error when referencing multiple executables
• Creating MSI which setups the publish site
• Stopping ClickOnce Updates when License Expires
• When I change manually the version number of setup project I want to modify the version number of all the projects automatically
• Deploy application with Web References
• ClickOnce download fails
• Is it possible to create a desktop icon using ClickOnce