Groups | Blog | Home
all groups > visual studio .net general > february 2004 >

visual studio .net general : Setting a component's attribute.


Prab_kar NO[at]SPAM hotmail.com
2/26/2004 12:37:19 PM
Hello all,
In my .msi I need to make Foo.txt "Leave installed on uninstall" and
"Never Overwrite if already exists".
For this I need to set the attribute of the component to 144.

I can see no way of doing this from Visual Studio 2003 .NET.
How does one set attributes, properties from .NET?
Is ORCA the only way out?

I made up a transform which sets the component's attribute to 144 and
apply this transform everytime the .msi is recompiled. This is
cumbersome and it'd be great if .NET could allow setting attributes.
Any way out of this?

Thanks,
Phil Wilson
2/27/2004 10:03:04 AM
You can use the Permanent property in the VS IDE - that translates to the
msidbComponentAttributesPermanent bit. There doesn't seem to be a way to set the
never overwrite bit.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

Dennis Bareis
2/27/2004 1:34:17 PM
Hi,

[quoted text, click to view]

You can write some script to do this or use my MAKEMSI tool.

Bye,
Dennis

----------------------------
Dennis Bareis (dbareis@KillSpam.labyrinth.net.au)
http://www.labyrinth.net.au/~dbareis/index.htm

Free MSI automation/creation tool:
http://www.labyrinth.net.au/~dbareis/makemsi.htm
AddThis Social Bookmark Button